diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2015-06-04 16:42:33 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-12 13:02:05 -0400 |
commit | 1f68451ca0d3a5faca49f44cc24cd3b7420bacb8 (patch) | |
tree | 831abb079747f402e8e05d64adc780030f8fe0a1 /arch/arm/cpu | |
parent | ee4dc2590f00d0109bcdb282ad86fd3dce567e50 (diff) | |
download | u-boot-1f68451ca0d3a5faca49f44cc24cd3b7420bacb8.tar.gz |
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 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/omap5/hwinit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap5/hwinit.c b/arch/arm/cpu/armv7/omap5/hwinit.c index 03c2b97856..222540f9c1 100644 --- a/arch/arm/cpu/armv7/omap5/hwinit.c +++ b/arch/arm/cpu/armv7/omap5/hwinit.c @@ -40,6 +40,15 @@ static struct gpio_bank gpio_bank_54xx[8] = { const struct gpio_bank *const omap_gpio_bank = gpio_bank_54xx; +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); +} + #ifdef CONFIG_SPL_BUILD /* LPDDR2 specific IO settings */ static void io_settings_lpddr2(void) |