mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-22 16:48:14 +01:00
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>
This commit is contained in:
parent
f37a126692
commit
c877eaa8a0
@ -110,6 +110,6 @@ void socfpga_spim_enable(void)
|
|||||||
{
|
{
|
||||||
const void *reset = &reset_manager_base->per_mod_reset;
|
const void *reset = &reset_manager_base->per_mod_reset;
|
||||||
|
|
||||||
clrbits_le32(reset, 1 << RSTMGR_PERMODRST_SPIM0_LSB);
|
clrbits_le32(reset, (1 << RSTMGR_PERMODRST_SPIM0_LSB) |
|
||||||
clrbits_le32(reset, 1 << RSTMGR_PERMODRST_SPIM1_LSB);
|
(1 << RSTMGR_PERMODRST_SPIM1_LSB));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user