diff options
author | Wolfgang Denk <wd@denx.de> | 2010-08-10 22:20:51 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-08-10 22:20:51 +0200 |
commit | 9844d027b52cc89264f6bf7686e26d9dc50134fd (patch) | |
tree | e1e89eeab5e44dc91fe3a4a3a497f1d1e178f925 /board/ti/panda/panda.c | |
parent | 201532a69cf7e7a84bff354fdab45947425d22b4 (diff) | |
parent | 1b03eede4fed47c6af7df84b0f7b621ff3e3bb40 (diff) | |
download | u-boot-imx-9844d027b52cc89264f6bf7686e26d9dc50134fd.zip u-boot-imx-9844d027b52cc89264f6bf7686e26d9dc50134fd.tar.gz u-boot-imx-9844d027b52cc89264f6bf7686e26d9dc50134fd.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-ti
Diffstat (limited to 'board/ti/panda/panda.c')
-rw-r--r-- | board/ti/panda/panda.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c index 917bbec..1b8153b 100644 --- a/board/ti/panda/panda.c +++ b/board/ti/panda/panda.c @@ -24,6 +24,8 @@ #include <common.h> #include <asm/arch/sys_proto.h> +#include "panda.h" + DECLARE_GLOBAL_DATA_PTR; const struct omap_sysinfo sysinfo = { @@ -61,3 +63,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)); +} |