mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-24 13:09:58 +01:00
sunxi: Fix clock_twi_onoff for sun9i
Fix a copy and paste error which caused us to use the uart rather then the twi reset bits in clock_twi_onoff for sun9i. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
a93b0fe3fd
commit
1da598208d
1 changed files with 2 additions and 2 deletions
|
|
@ -43,10 +43,10 @@ int clock_twi_onoff(int port, int state)
|
|||
setbits_le32(&ccm->apb1_gate,
|
||||
CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT + port));
|
||||
setbits_le32(&ccm->apb1_reset_cfg,
|
||||
1 << (APB1_RESET_UART_SHIFT + port));
|
||||
1 << (APB1_RESET_TWI_SHIFT + port));
|
||||
} else {
|
||||
clrbits_le32(&ccm->apb1_reset_cfg,
|
||||
1 << (APB1_RESET_UART_SHIFT + port));
|
||||
1 << (APB1_RESET_TWI_SHIFT + port));
|
||||
clrbits_le32(&ccm->apb1_gate,
|
||||
CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT + port));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue