diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2015-06-04 11:12:33 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-12 17:02:05 (GMT) |
commit | 1f68451ca0d3a5faca49f44cc24cd3b7420bacb8 (patch) | |
tree | 831abb079747f402e8e05d64adc780030f8fe0a1 /board/ti | |
parent | ee4dc2590f00d0109bcdb282ad86fd3dce567e50 (diff) | |
download | u-boot-fsl-qoriq-1f68451ca0d3a5faca49f44cc24cd3b7420bacb8.tar.xz |
ARM: DRA7: Make do_set_mux32() generic
do_set_mux32() is redefined in dra7xx and beagle_x15 boards.
IO delay recalibration sequence also needs this.
Making it generic to avoid duplication.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r-- | board/ti/beagle_x15/board.c | 10 | ||||
-rw-r--r-- | board/ti/dra7xx/evm.c | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/board/ti/beagle_x15/board.c b/board/ti/beagle_x15/board.c index f25e75e..4ee02f2 100644 --- a/board/ti/beagle_x15/board.c +++ b/board/ti/beagle_x15/board.c @@ -261,16 +261,6 @@ int board_late_init(void) return 0; } -static void do_set_mux32(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++) - writel(pad->val, base + pad->offset); -} - void set_muxconf_regs_essential(void) { do_set_mux32((*ctrl)->control_padconf_core_base, diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index d464855..1b05150 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -107,16 +107,6 @@ int board_late_init(void) return 0; } -static void do_set_mux32(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++) - writel(pad->val, base + pad->offset); -} - void set_muxconf_regs_essential(void) { do_set_mux32((*ctrl)->control_padconf_core_base, |