diff options
author | Marek Vasut <marex@denx.de> | 2015-07-09 00:51:56 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 12:14:06 (GMT) |
commit | a71df7aa4fa775199280bba19072bd232cc35cb1 (patch) | |
tree | 2259821f344ae727734790145bf50eecb46fdecc /arch/arm/mach-socfpga/spl.c | |
parent | bdfc2ef64a4df550a4090c31dae9a133c92ac5ca (diff) | |
download | u-boot-a71df7aa4fa775199280bba19072bd232cc35cb1.tar.xz |
arm: socfpga: reset: Replace ad-hoc reset functions
Replace all those ad-hoc reset functions, which were all copies
of the same invocation of clrbits_le32() anyway, with one single
unified function, socfpga_per_reset(), with necessary parameters.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/mach-socfpga/spl.c')
-rw-r--r-- | arch/arm/mach-socfpga/spl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-socfpga/spl.c b/arch/arm/mach-socfpga/spl.c index f994658..400e463 100644 --- a/arch/arm/mach-socfpga/spl.c +++ b/arch/arm/mach-socfpga/spl.c @@ -175,9 +175,9 @@ void spl_board_init(void) /* freeze all IO banks */ sys_mgr_frzctrl_freeze_req(); - socfpga_sdram_enable(); - socfpga_uart0_enable(); - socfpga_osc1timer_enable(); + socfpga_per_reset(SOCFPGA_RESET(SDR), 0); + socfpga_per_reset(SOCFPGA_RESET(UART0), 0); + socfpga_per_reset(SOCFPGA_RESET(OSC1TIMER0), 0); timer_init(); |