Fix error: shifting a negative signed value is undefined
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
908bade7a7
commit
ffda739704
@ -163,8 +163,8 @@ void stm32_selectlcd(void)
|
||||
|
||||
/* Bank1 NOR/SRAM timing register configuration */
|
||||
|
||||
putreg32(FSMC_BTR_ADDSET(1) | FSMC_BTR_ADDHLD(0) |
|
||||
FSMC_BTR_DATAST(2) | FSMC_BTR_BUSTURN(0) |
|
||||
putreg32(FSMC_BTR_ADDSET(1) | FSMC_BTR_ADDHLD(1) |
|
||||
FSMC_BTR_DATAST(2) | FSMC_BTR_BUSTURN(1) |
|
||||
FSMC_BTR_CLKDIV(1) | FSMC_BTR_DATLAT(2) |
|
||||
FSMC_BTR_ACCMODA, STM32_FSMC_BTR1);
|
||||
|
||||
|
@ -115,8 +115,8 @@ void stm32_selectlcd(void)
|
||||
|
||||
/* Bank4 NOR/SRAM timing register configuration */
|
||||
|
||||
putreg32(FSMC_BTR_ADDSET(1) | FSMC_BTR_ADDHLD(0) |
|
||||
FSMC_BTR_DATAST(2) | FSMC_BTR_BUSTURN(0) |
|
||||
putreg32(FSMC_BTR_ADDSET(1) | FSMC_BTR_ADDHLD(1) |
|
||||
FSMC_BTR_DATAST(2) | FSMC_BTR_BUSTURN(1) |
|
||||
FSMC_BTR_CLKDIV(1) | FSMC_BTR_DATLAT(2) |
|
||||
FSMC_BTR_ACCMODA, STM32_FSMC_BTR4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user