Atish Patra
8304ee9424
Disable all interrupts during warm irqchip init.
...
M mode is not expected to recieve any interrupts.
S mode interrupts shouldn't be enabled in M mode.
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-21 22:11:21 -08:00
Atish Patra
88b173b33b
Introduce hart disabled parameter in platform.
...
As of now, uboot doesn't have support for SMP.
Moreover, unleashed board has a E51 hart which
doesn't not support S mode.
We should only boot only 1 non-zero hart.
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-21 22:11:21 -08:00
Atish Patra
95fbe7d495
Move hardcoded uart constant to macros.
...
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-21 16:00:28 -08:00
Atish Patra and Anup Patel
f003787455
lib: Hang in sbi_hart_boot_next() if next mode is not supported
...
We should not jump to next stage if next mode (S-mode or U-mode)
is not supported by HART.
Signed-off-by: Atish Patra <atish.patra@wdc.com >
Signed-off-by: Anup Patel <anup.patel@wdc.com >
2018-12-21 11:09:47 +05:30
Atish Patra
1d4e36edf8
Support unsigned long in sbi_printf
...
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-20 15:55:32 -08:00
Atish Patra
84971c0bc0
Use wfi for coldboot finish call.
...
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-20 15:55:27 -08:00
Atish Patra
e0a660ec5b
Fix baud rate divisor computation for U540.
...
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-20 15:38:43 -08:00
Atish Patra
3250fe7299
Support /r/n as newline character.
...
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-20 15:38:43 -08:00
Atish Patra
5adf2fdc9e
HiFive Unleashed has 5 harts. Fix the config to reflect that.
...
Signed-off-by: Atish Patra <atish.patra@wdc.com >
2018-12-20 15:38:43 -08:00