]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: mbv: Align DT with QEMU
authorMichal Simek <michal.simek@amd.com>
Wed, 23 Oct 2024 06:06:40 +0000 (08:06 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 29 Oct 2024 10:11:49 +0000 (18:11 +0800)
Align U-Boot with QEMU amd-microblaze-v-virt platform to be able to wire
it with CI.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Padmarao Begari <padmarao.begari@amd.com>
arch/riscv/dts/xilinx-mbv32.dts
board/xilinx/mbv/Kconfig
configs/xilinx_mbv32_defconfig

index 48ee115495661fedffaba18bba7f310fe82344d7..4050ce2f051d58d1e4eac9a1e2a0026dda192396 100644 (file)
@@ -20,7 +20,7 @@
        cpus: cpus {
                #address-cells = <1>;
                #size-cells = <0>;
-               timebase-frequency = <102000000>;
+               timebase-frequency = <100000000>;
                cpu_0: cpu@0 {
                        compatible = "amd,mbv32", "riscv";
                        device_type = "cpu";
@@ -28,7 +28,7 @@
                        riscv,isa = "rv32imafdc";
                        i-cache-size = <32768>;
                        d-cache-size = <32768>;
-                       clock-frequency = <102000000>;
+                       clock-frequency = <100000000>;
                        cpu0_intc: interrupt-controller {
                                compatible = "riscv,cpu-intc";
                                interrupt-controller;
                stdout-path = "serial0:115200n8";
        };
 
-       memory@20000000 {
+       memory@80000000 {
                device_type = "memory";
-               reg = <0x20000000 0x20000000>;
+               reg = <0x80000000 0x40000000>;
        };
 
-       clk102: clock {
+       clk100: clock {
                compatible = "fixed-clock";
                #clock-cells = <0>;
-               clock-frequency = <102000000>;
+               clock-frequency = <100000000>;
        };
 
        axi: axi {
                        compatible = "xlnx,xps-timer-1.00.a";
                        reg = <0x41c00000 0x1000>;
                        interrupt-parent = <&axi_intc>;
-                       interrupts = <1 2>;
-                       bootph-all;
-                       xlnx,one-timer-only = <0>;
-                       clock-names = "s_axi_aclk";
-                       clocks = <&clk102>;
-               };
-
-               xlnx_timer1: timer@41c20000 {
-                       compatible = "xlnx,xps-timer-1.00.a";
-                       reg = <0x41c20000 0x1000>;
-                       interrupt-parent = <&axi_intc>;
                        interrupts = <0 2>;
+                       bootph-all;
                        xlnx,one-timer-only = <0>;
                        clock-names = "s_axi_aclk";
-                       clocks = <&clk102>;
+                       clocks = <&clk100>;
                };
 
                uart0: serial@40600000 {
                        compatible = "xlnx,xps-uartlite-1.00.a";
                        reg = <0x40600000 0x1000>;
                        interrupt-parent = <&axi_intc>;
-                       interrupts = <2 2>;
+                       interrupts = <1 2>;
                        bootph-all;
-                       clocks = <&clk102>;
+                       clocks = <&clk100>;
                        current-speed = <115200>;
                        xlnx,data-bits = <8>;
                        xlnx,use-parity = <0>;
index a3a6f21257703fc2619be3479ba78c124d837de5..c52ba1870b0ba1c61ba900b39910074265d9ff3f 100644 (file)
@@ -10,14 +10,14 @@ config SYS_CPU
        default "generic"
 
 config TEXT_BASE
-       default 0x21200000
+       default 0x81200000
 
 config SPL_TEXT_BASE
-       default 0x20000000
+       default 0x80000000
 
 config SPL_OPENSBI_LOAD_ADDR
        hex
-       default 0x20200000
+       default 0x80200000
 
 config BOARD_SPECIFIC_OPTIONS
        def_bool y
index 3983b20c2d806261037ad2d3bf112b6c473b6255..7333413267ec143f71bdf59e2420b5b555750b56 100644 (file)
@@ -2,17 +2,17 @@ CONFIG_RISCV=y
 CONFIG_SYS_MALLOC_LEN=0xe00000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
-CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x21200000
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x81200000
 CONFIG_ENV_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="xilinx-mbv32"
-CONFIG_SPL_STACK=0x20200000
-CONFIG_SPL_BSS_START_ADDR=0x24000000
+CONFIG_SPL_STACK=0x80200000
+CONFIG_SPL_BSS_START_ADDR=0x84000000
 CONFIG_SPL_BSS_MAX_SIZE=0x80000
-CONFIG_SYS_LOAD_ADDR=0x20200000
+CONFIG_SYS_LOAD_ADDR=0x80200000
 CONFIG_SPL_SIZE_LIMIT=0x40000
 CONFIG_SPL=y
 CONFIG_DEBUG_UART_BASE=0x40600000
-CONFIG_DEBUG_UART_CLOCK=1000000
+CONFIG_DEBUG_UART_CLOCK=100000000
 CONFIG_SYS_CLK_FREQ=100000000
 CONFIG_BOOT_SCRIPT_OFFSET=0x0
 CONFIG_DEBUG_UART=y
@@ -20,7 +20,7 @@ CONFIG_TARGET_XILINX_MBV=y
 # CONFIG_SPL_SMP is not set
 CONFIG_REMAKE_ELF=y
 CONFIG_FIT=y
-CONFIG_SPL_LOAD_FIT_ADDRESS=0x20200000
+CONFIG_SPL_LOAD_FIT_ADDRESS=0x80200000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y