From: Stefan Roese Date: Sun, 16 Nov 2014 11:46:59 +0000 (+0100) Subject: arm: socfpga: Use only one clrbits_le32 call to deassert SPI reset bits X-Git-Tag: v2025.01-rc5-pxa1908~14161^2~6 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c877eaa8a04858c23ce7ebb82c59f7cf838545ef;p=u-boot.git 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 Cc: Chin Liang See Cc: Dinh Nguyen Cc: Vince Bridgers Cc: Marek Vasut Acked-by: Pavel Machek --- diff --git a/arch/arm/cpu/armv7/socfpga/reset_manager.c b/arch/arm/cpu/armv7/socfpga/reset_manager.c index af9db850fe..25921e76c4 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)); }