riscv: k210: Rename airam to aisram
authorSean Anderson <seanga2@gmail.com>
Fri, 9 Apr 2021 02:13:11 +0000 (22:13 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 14 May 2021 08:20:49 +0000 (16:20 +0800)
This is more consistent with the naming of other ram banks, and matches
what Linux is doing.

Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
arch/riscv/dts/k210.dtsi
board/sipeed/maix/maix.c

index a735beb..2032f1e 100644 (file)
                reg = <0x80000000 0x400000>,
                      <0x80400000 0x200000>,
                      <0x80600000 0x200000>;
-               reg-names = "sram0", "sram1", "airam";
+               reg-names = "sram0", "sram1", "aisram";
                clocks = <&sysclk K210_CLK_SRAM0>,
                         <&sysclk K210_CLK_SRAM1>,
                         <&sysclk K210_CLK_PLL1>;
-               clock-names = "sram0", "sram1", "airam";
+               clock-names = "sram0", "sram1", "aisram";
                u-boot,dm-pre-reloc;
        };
 
index 6e58291..52e4fee 100644 (file)
@@ -17,7 +17,7 @@ phys_size_t get_effective_memsize(void)
 static int sram_init(void)
 {
        int ret, i;
-       const char * const banks[] = { "sram0", "sram1", "airam" };
+       const char * const banks[] = { "sram0", "sram1", "aisram" };
        ofnode memory;
        struct clk clk;