diff options
author | Steve Sakoman <steve@sakoman.com> | 2010-07-15 13:43:10 -0700 |
---|---|---|
committer | Sandeep Paulraj <s-paulraj@ti.com> | 2010-08-05 10:11:14 -0400 |
commit | 2ad853c3485e08612bb7725ba50d35b679978ebc (patch) | |
tree | 98fed499c3fb97e11919765af05a3742e8928ed6 /board/ti/sdp4430/sdp.c | |
parent | 9efac4a1eb99d9c5539aa6992025eeacab7980c6 (diff) | |
download | u-boot-imx-2ad853c3485e08612bb7725ba50d35b679978ebc.zip u-boot-imx-2ad853c3485e08612bb7725ba50d35b679978ebc.tar.gz u-boot-imx-2ad853c3485e08612bb7725ba50d35b679978ebc.tar.bz2 |
ARMV7: Add pad mux support for OMAP4
Add functional multiplexing support for OMAP4 pads.
Configure all the pads for the OMAP4430 SDP
and OMAP4 Panda boards
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/ti/sdp4430/sdp.c')
-rw-r--r-- | board/ti/sdp4430/sdp.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c index 8ed7873..7039bd5 100644 --- a/board/ti/sdp4430/sdp.c +++ b/board/ti/sdp4430/sdp.c @@ -25,6 +25,8 @@ #include <common.h> #include <asm/arch/sys_proto.h> +#include "sdp.h" + DECLARE_GLOBAL_DATA_PTR; const struct omap_sysinfo sysinfo = { @@ -62,3 +64,27 @@ int misc_init_r(void) { return 0; } + +void do_set_mux(u32 base, struct pad_conf_entry const *array, int size) +{ + int i; + struct pad_conf_entry *pad = (struct pad_conf_entry *) array; + + for (i = 0; i < size; i++, pad++) + writew(pad->val, base + pad->offset); +} + +/** + * @brief set_muxconf_regs Setting up the configuration Mux registers + * specific to the board. + */ +void set_muxconf_regs(void) +{ + do_set_mux(CONTROL_PADCONF_CORE, core_padconf_array, + sizeof(core_padconf_array) / + sizeof(struct pad_conf_entry)); + + do_set_mux(CONTROL_PADCONF_WKUP, wkup_padconf_array, + sizeof(wkup_padconf_array) / + sizeof(struct pad_conf_entry)); +} |