[U-Boot] [PATCH] sifive: riscv: streamline HiFive Unleashed configuration infrastructure

Sagar Shrikant Kadam sagar.kadam at sifive.com
Mon Jul 29 12:42:24 UTC 2019


This patch is intended to update the current configuration implementation of HiFive
Unleashed board so that it is as per the guidelines provided in U-boot's doc/README.kconfig.
The board has a FU540-C000 SoC built around U54-MC Core complex.

This patch is based on the commit 75551c8bfc95 ("Merge branch '2019-07-26-ti-imports'")
in master branch of repo[1] and is tested with OpenSBI to use the dtb passed as argument 
in FW_PAYLOAD_FDT_PATH from the mainline kernel and boot's linux image over tftp.
The patch is available for testing at dev/sagark/sifive_u540defconfig branch here [2].

[1] http://git.denx.de/u-boot-riscv.git
[2] https://github.com/sagsifive/u-boot

Summary:
-Update TARGET in board select menu.
-Update SYS_CPU from generic to u54-mc.
-Added SYS_SOC.
-Update SYS_BOARD from fu540 to hifive_unleashed.
-Update SYS_CONFIG_NAME from sifive-u540 to hifive_unleashed .
-Update MAINTAINERS file with relevant entries corresponding to the above changes.

This patch will conflict with few patches which are already submitted for review,
it would be good if U-boot folks would suggest something accordingly.

Sagar Shrikant Kadam (1):
  sifive: riscv: update Hifive Unleashed configuration infrastructure

 arch/riscv/Kconfig                           |   6 +-
 arch/riscv/cpu/generic/Kconfig               |  12 ---
 arch/riscv/cpu/generic/Makefile              |   6 --
 arch/riscv/cpu/generic/cpu.c                 |  35 -------
 arch/riscv/cpu/generic/dram.c                |  37 -------
 arch/riscv/cpu/u54-mc/Kconfig                |  12 +++
 arch/riscv/cpu/u54-mc/Makefile               |   6 ++
 arch/riscv/cpu/u54-mc/cpu.c                  |  35 +++++++
 arch/riscv/cpu/u54-mc/dram.c                 |  37 +++++++
 arch/riscv/include/asm/arch-fu540-c000/clk.h |  14 +++
 arch/riscv/include/asm/arch-generic/clk.h    |  14 ---
 board/sifive/fu540/Kconfig                   |  49 ----------
 board/sifive/fu540/MAINTAINERS               |   9 --
 board/sifive/fu540/Makefile                  |   5 -
 board/sifive/fu540/fu540.c                   | 139 ---------------------------
 board/sifive/hifive_unleashed/Kconfig        |  52 ++++++++++
 board/sifive/hifive_unleashed/MAINTAINERS    |   9 ++
 board/sifive/hifive_unleashed/Makefile       |   5 +
 board/sifive/hifive_unleashed/fu540.c        | 139 +++++++++++++++++++++++++++
 configs/hifive_unleashed_defconfig           |  11 +++
 configs/sifive_fu540_defconfig               |  11 ---
 include/configs/hifive_unleashed.h           |  47 +++++++++
 include/configs/sifive-fu540.h               |  47 ---------
 23 files changed, 370 insertions(+), 367 deletions(-)
 delete mode 100644 arch/riscv/cpu/generic/Kconfig
 delete mode 100644 arch/riscv/cpu/generic/Makefile
 delete mode 100644 arch/riscv/cpu/generic/cpu.c
 delete mode 100644 arch/riscv/cpu/generic/dram.c
 create mode 100644 arch/riscv/cpu/u54-mc/Kconfig
 create mode 100644 arch/riscv/cpu/u54-mc/Makefile
 create mode 100644 arch/riscv/cpu/u54-mc/cpu.c
 create mode 100644 arch/riscv/cpu/u54-mc/dram.c
 create mode 100644 arch/riscv/include/asm/arch-fu540-c000/clk.h
 delete mode 100644 arch/riscv/include/asm/arch-generic/clk.h
 delete mode 100644 board/sifive/fu540/Kconfig
 delete mode 100644 board/sifive/fu540/MAINTAINERS
 delete mode 100644 board/sifive/fu540/Makefile
 delete mode 100644 board/sifive/fu540/fu540.c
 create mode 100644 board/sifive/hifive_unleashed/Kconfig
 create mode 100644 board/sifive/hifive_unleashed/MAINTAINERS
 create mode 100644 board/sifive/hifive_unleashed/Makefile
 create mode 100644 board/sifive/hifive_unleashed/fu540.c
 create mode 100644 configs/hifive_unleashed_defconfig
 delete mode 100644 configs/sifive_fu540_defconfig
 create mode 100644 include/configs/hifive_unleashed.h
 delete mode 100644 include/configs/sifive-fu540.h

-- 
2.7.4



More information about the U-Boot mailing list