minix/lib/libsys/sys_padconf.c
Thomas Cort 4593804bf0 kernel: add padconf kernel call
On the AM335X, writes to the padconf registers must be done in privileged
mode. To allow userspace drivers to dynamically change the padconf at
runtime, a kernel call has been added.

Change-Id: I4b25d2879399b1785a360912faa0e90b5c258533
2013-08-28 12:53:05 -04:00

14 lines
250 B
C

#include <stdint.h>
#include "syslib.h"
int sys_padconf(u32_t padconf, u32_t mask, u32_t value)
{
message m;
m.PADCONF_PADCONF = padconf;
m.PADCONF_MASK = mask;
m.PADCONF_VALUE = value;
return(_kernel_call(SYS_PADCONF, &m));
}