diff options
author | Lokesh Vutla | 2015-06-04 16:42:33 +0530 |
---|---|---|
committer | Tom Rini | 2015-06-12 13:02:05 -0400 |
commit | 1f68451ca0d3a5faca49f44cc24cd3b7420bacb8 (patch) | |
tree | 831abb079747f402e8e05d64adc780030f8fe0a1 /board | |
parent | ee4dc2590f00d0109bcdb282ad86fd3dce567e50 (diff) |
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')
-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 f25e75eddab..4ee02f28ebd 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 d4648558ec3..1b051509a65 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, |