Skip to content
Snippets Groups Projects
Commit c877eaa8 authored by Stefan Roese's avatar Stefan Roese Committed by Marek Vasut
Browse files

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: default avatarStefan 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: default avatarPavel Machek <pavel@denx.de>
parent f37a1266
Branches
Tags
No related merge requests found
......@@ -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));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment