mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-19 18:30:17 +00:00
sw: picorvspi: fix invalid constant in main.c
The previous picorvspi code used an incorrect constant when examining the CFM_EN bit. As a result, this mode would never work. Use the correct constant, in case anyone builds foboot using a picorvspi hardware block. This addresses #333. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
46556c1edf
commit
dfa09fc84b
@ -54,7 +54,7 @@ static void riscv_reboot_to(const void *addr, uint32_t boot_config) {
|
|||||||
}
|
}
|
||||||
if (boot_config & 0x00000002) // DDR_EN
|
if (boot_config & 0x00000002) // DDR_EN
|
||||||
picorvspi_cfg3_write(picorvspi_cfg3_read() | 0x40);
|
picorvspi_cfg3_write(picorvspi_cfg3_read() | 0x40);
|
||||||
if (boot_config & 0x00000002) // CFM_EN
|
if (boot_config & 0x00000004) // CFM_EN
|
||||||
picorvspi_cfg3_write(picorvspi_cfg3_read() | 0x10);
|
picorvspi_cfg3_write(picorvspi_cfg3_read() | 0x10);
|
||||||
#endif
|
#endif
|
||||||
rgb_mode_error();
|
rgb_mode_error();
|
||||||
|
Loading…
Reference in New Issue
Block a user