4593804bf0
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
20 lines
611 B
C
20 lines
611 B
C
#include "kernel/system.h"
|
|
#include <minix/endpoint.h>
|
|
|
|
#if USE_PADCONF
|
|
|
|
/* get arch specific arch_padconf_set() */
|
|
#if defined(AM335X) || defined(DM37XX)
|
|
#include "omap_padconf.h"
|
|
#endif
|
|
|
|
/*===========================================================================*
|
|
* do_padconf *
|
|
*===========================================================================*/
|
|
int do_padconf(struct proc *caller_ptr, message *m_ptr)
|
|
{
|
|
return arch_padconf_set(m_ptr->PADCONF_PADCONF, m_ptr->PADCONF_MASK,
|
|
m_ptr->PADCONF_VALUE);
|
|
}
|
|
|
|
#endif /* USE_PADCONF */
|