(opensbi): Init branch sg200x-dev
Change-Id: If4dd4f7d55a714cff21c4ead4376a4137ee03330
This commit is contained in:
1
lib/utils/serial/fdt_serial_uart8250.c
Normal file → Executable file
1
lib/utils/serial/fdt_serial_uart8250.c
Normal file → Executable file
@@ -26,6 +26,7 @@ static int serial_uart8250_init(void *fdt, int nodeoff,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct fdt_match serial_uart8250_match[] = {
|
static const struct fdt_match serial_uart8250_match[] = {
|
||||||
|
{ .compatible = "snps,dw-apb-uart" },
|
||||||
{ .compatible = "ns16550" },
|
{ .compatible = "ns16550" },
|
||||||
{ .compatible = "ns16550a" },
|
{ .compatible = "ns16550a" },
|
||||||
{ },
|
{ },
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ int uart8250_init(unsigned long base, u32 in_freq, u32 baudrate, u32 reg_shift,
|
|||||||
uart8250_in_freq = in_freq;
|
uart8250_in_freq = in_freq;
|
||||||
uart8250_baudrate = baudrate;
|
uart8250_baudrate = baudrate;
|
||||||
|
|
||||||
bdiv = uart8250_in_freq / (16 * uart8250_baudrate);
|
bdiv = (uart8250_in_freq + 8 * uart8250_baudrate) / (16 * uart8250_baudrate);
|
||||||
|
|
||||||
/* Disable all interrupts */
|
/* Disable all interrupts */
|
||||||
set_reg(UART_IER_OFFSET, 0x00);
|
set_reg(UART_IER_OFFSET, 0x00);
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ else
|
|||||||
# This needs to be 2MB aligned for 64-bit system
|
# This needs to be 2MB aligned for 64-bit system
|
||||||
FW_JUMP_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x200000)))
|
FW_JUMP_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x200000)))
|
||||||
endif
|
endif
|
||||||
FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x2200000)))
|
#set FDT_ADDR 0xB0000000
|
||||||
|
FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x30000000)))
|
||||||
FW_PAYLOAD=y
|
FW_PAYLOAD=y
|
||||||
ifeq ($(PLATFORM_RISCV_XLEN), 32)
|
ifeq ($(PLATFORM_RISCV_XLEN), 32)
|
||||||
# This needs to be 4MB aligned for 32-bit system
|
# This needs to be 4MB aligned for 32-bit system
|
||||||
|
|||||||
Reference in New Issue
Block a user