diff options
author | Stefan Roese <sr@denx.de> | 2014-11-16 12:46:59 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-12-06 13:52:47 +0100 |
commit | c877eaa8a04858c23ce7ebb82c59f7cf838545ef (patch) | |
tree | e9ac41777ad36914c4fcaea68a0d94d76ff4f21b | |
parent | f37a126692bf97bd77f49252db927f68ec45db43 (diff) | |
download | u-boot-imx-c877eaa8a04858c23ce7ebb82c59f7cf838545ef.zip u-boot-imx-c877eaa8a04858c23ce7ebb82c59f7cf838545ef.tar.gz u-boot-imx-c877eaa8a04858c23ce7ebb82c59f7cf838545ef.tar.bz2 |
arm: socfpga: Use only one clrbits_le32 call to deassert SPI reset bits
As suggested by Pavel, lets combine the two calls into one.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Vince Bridgers <vbridger@altera.com>
Cc: Marek Vasut <marex@denx.de>
Acked-by: Pavel Machek <pavel@denx.de>
-rw-r--r-- | arch/arm/cpu/armv7/socfpga/reset_manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/socfpga/reset_manager.c b/arch/arm/cpu/armv7/socfpga/reset_manager.c index af9db85..25921e7 100644 --- a/arch/arm/cpu/armv7/socfpga/reset_manager.c +++ b/arch/arm/cpu/armv7/socfpga/reset_manager.c @@ -110,6 +110,6 @@ void socfpga_spim_enable(void) { const void *reset = &reset_manager_base->per_mod_reset; - clrbits_le32(reset, 1 << RSTMGR_PERMODRST_SPIM0_LSB); - clrbits_le32(reset, 1 << RSTMGR_PERMODRST_SPIM1_LSB); + clrbits_le32(reset, (1 << RSTMGR_PERMODRST_SPIM0_LSB) | + (1 << RSTMGR_PERMODRST_SPIM1_LSB)); } |