]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive: Rename fu540 board to unleashed
authorBin Meng <bmeng.cn@gmail.com>
Wed, 17 Mar 2021 03:10:58 +0000 (11:10 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 8 Apr 2021 07:37:29 +0000 (15:37 +0800)
In preparation to add SiFive Unmatched board support, let's rename
the existing fu540 board to unleashed.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
14 files changed:
arch/riscv/Kconfig
arch/riscv/dts/Makefile
board/sifive/unleashed/Kconfig [moved from board/sifive/fu540/Kconfig with 91% similarity]
board/sifive/unleashed/MAINTAINERS [moved from board/sifive/fu540/MAINTAINERS with 50% similarity]
board/sifive/unleashed/Makefile [moved from board/sifive/fu540/Makefile with 87% similarity]
board/sifive/unleashed/spl.c [moved from board/sifive/fu540/spl.c with 100% similarity]
board/sifive/unleashed/unleashed.c [moved from board/sifive/fu540/fu540.c with 100% similarity]
common/spl/Kconfig
configs/sifive_unleashed_defconfig [moved from configs/sifive_fu540_defconfig with 95% similarity]
doc/board/sifive/index.rst
doc/board/sifive/unleashed.rst [moved from doc/board/sifive/fu540.rst with 100% similarity]
drivers/ram/sifive/Kconfig
drivers/reset/Kconfig
include/configs/sifive-unleashed.h [moved from include/configs/sifive-fu540.h with 100% similarity]

index 55eaee2da63dd9f830ef02628ae76f35859f3dcb..e8494c2a496e4562d80c470e5f3f61846cf8ca49 100644 (file)
@@ -17,8 +17,8 @@ config TARGET_MICROCHIP_ICICLE
 config TARGET_QEMU_VIRT
        bool "Support QEMU Virt Board"
 
-config TARGET_SIFIVE_FU540
-       bool "Support SiFive FU540 Board"
+config TARGET_SIFIVE_UNLEASHED
+       bool "Support SiFive Unleashed Board"
 
 config TARGET_SIPEED_MAIX
        bool "Support Sipeed Maix Board"
@@ -55,7 +55,7 @@ config SPL_SYS_DCACHE_OFF
 source "board/AndesTech/ax25-ae350/Kconfig"
 source "board/emulation/qemu-riscv/Kconfig"
 source "board/microchip/mpfs_icicle/Kconfig"
-source "board/sifive/fu540/Kconfig"
+source "board/sifive/unleashed/Kconfig"
 source "board/sipeed/maix/Kconfig"
 
 # platform-specific options below
index 01331b0aa19b0bda1d057eb752b32ad7c0f78758..8138d89d841fc19100f07f5cc95f4e978046adce 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0+
 
 dtb-$(CONFIG_TARGET_AX25_AE350) += ae350_32.dtb ae350_64.dtb
-dtb-$(CONFIG_TARGET_SIFIVE_FU540) += hifive-unleashed-a00.dtb
+dtb-$(CONFIG_TARGET_SIFIVE_UNLEASHED) += hifive-unleashed-a00.dtb
 dtb-$(CONFIG_TARGET_SIPEED_MAIX) += k210-maix-bit.dtb
 dtb-$(CONFIG_TARGET_MICROCHIP_ICICLE) += microchip-mpfs-icicle-kit.dtb
 
similarity index 91%
rename from board/sifive/fu540/Kconfig
rename to board/sifive/unleashed/Kconfig
index 64fdbd44b4ad51ea4bcf7c03e1d22632d180d6a6..dbffd59c98ed1bc57ff5152eb7de0af0eb2fb196 100644 (file)
@@ -1,7 +1,7 @@
-if TARGET_SIFIVE_FU540
+if TARGET_SIFIVE_UNLEASHED
 
 config SYS_BOARD
-       default "fu540"
+       default "unleashed"
 
 config SYS_VENDOR
        default "sifive"
@@ -10,7 +10,7 @@ config SYS_CPU
        default "fu540"
 
 config SYS_CONFIG_NAME
-       default "sifive-fu540"
+       default "sifive-unleashed"
 
 config SYS_TEXT_BASE
        default 0x80200000 if SPL
similarity index 50%
rename from board/sifive/fu540/MAINTAINERS
rename to board/sifive/unleashed/MAINTAINERS
index 27620727bd9bf3591a0cd39283ab2f2ab6e30ed5..2ea00749cb571f8aa94d1d8fb69d5cf9fabe7d62 100644 (file)
@@ -1,10 +1,10 @@
-SiFive FU540 BOARD
+SiFive HiFive Unleashed BOARD
 M:     Paul Walmsley <paul.walmsley@sifive.com>
 M:     Palmer Dabbelt <palmer@dabbelt.com>
 M:     Anup Patel <anup.patel@wdc.com>
 M:     Atish Patra <atish.patra@wdc.com>
 S:     Maintained
-F:     board/sifive/fu540/
-F:     doc/board/sifive/fu540.rst
-F:     include/configs/sifive-fu540.h
-F:     configs/sifive_fu540_defconfig
+F:     board/sifive/unleashed/
+F:     doc/board/sifive/unleashed.rst
+F:     include/configs/sifive-unleashed.h
+F:     configs/sifive_unleashed_defconfig
similarity index 87%
rename from board/sifive/fu540/Makefile
rename to board/sifive/unleashed/Makefile
index b05e2f58078d6de2882535a1bfd614be4607ce2b..5821679dd92a2d8527a8251a6e7b3b8d02370a56 100644 (file)
@@ -2,7 +2,7 @@
 #
 # Copyright (c) 2019 Western Digital Corporation or its affiliates.
 
-obj-y  += fu540.o
+obj-y  += unleashed.o
 
 ifdef CONFIG_SPL_BUILD
 obj-y += spl.o
index 0711cbf9517233b68a6f12ba6ff4366207811c67..0f528f346f35b8afb55f8ba2a323006138c211c3 100644 (file)
@@ -330,7 +330,8 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
                     ARCH_MX6 || ARCH_MX7 || \
                     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
                     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
-                    OMAP44XX || OMAP54XX || AM33XX || AM43XX || TARGET_SIFIVE_FU540
+                    OMAP44XX || OMAP54XX || AM33XX || AM43XX || \
+                    TARGET_SIFIVE_UNLEASHED
        help
          Use sector number for specifying U-Boot location on MMC/SD in
          raw mode.
@@ -347,7 +348,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
        default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
                         OMAP54XX || AM33XX || AM43XX || ARCH_K3
        default 0x4000 if ARCH_ROCKCHIP
-       default 0x822 if TARGET_SIFIVE_FU540
+       default 0x822 if TARGET_SIFIVE_UNLEASHED
        help
          Address on the MMC to load U-Boot from, when the MMC is being used
          in raw mode. Units: MMC sectors (1 sector = 512 bytes).
similarity index 95%
rename from configs/sifive_fu540_defconfig
rename to configs/sifive_unleashed_defconfig
index cabd3b17782358e0aed1937d5a50a08cc121be1a..62416a7c1d83f8eb60f16232854e8ef5d933fa44 100644 (file)
@@ -8,7 +8,7 @@ CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00"
-CONFIG_TARGET_SIFIVE_FU540=y
+CONFIG_TARGET_SIFIVE_UNLEASHED=y
 CONFIG_ARCH_RV64I=y
 CONFIG_RISCV_SMODE=y
 CONFIG_DISTRO_DEFAULTS=y
index ad614c9bf2a23129abdd52873525b96c3bb49b57..ed7eacfb54d3b55198b23f52f5ed003d8504d45a 100644 (file)
@@ -6,4 +6,4 @@ SiFive
 .. toctree::
    :maxdepth: 2
 
-   fu540
+   unleashed
index 6aca22ab2ab400c7a46ae7ac44b4e176c385424c..08de692e026e424c07e4266e9152e6b55ebc9041 100644 (file)
@@ -8,6 +8,6 @@ config RAM_SIFIVE
 config SIFIVE_FU540_DDR
        bool "SiFive FU540 DDR driver"
        depends on RAM_SIFIVE
-       default y if TARGET_SIFIVE_FU540
+       default y if TARGET_SIFIVE_UNLEASHED
        help
          This enables DDR support for the platforms based on SiFive FU540 SoC.
index f5b3f8826fbad915cc77b785fb75e24134cca58c..019565f9796d6df692fd732c4cb32c5d5c544093 100644 (file)
@@ -166,7 +166,7 @@ config RESET_IPQ419
 
 config RESET_SIFIVE
        bool "Reset Driver for SiFive SoC's"
-       depends on DM_RESET && CLK_SIFIVE_FU540_PRCI && TARGET_SIFIVE_FU540
+       depends on DM_RESET && CLK_SIFIVE_FU540_PRCI && TARGET_SIFIVE_UNLEASHED
        default y
        help
          PRCI module within SiFive SoC's provides mechanism to reset