]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: reset: fu540: enable dm reset framework for SiFive
authorSagar Shrikant Kadam <sagar.kadam@sifive.com>
Wed, 29 Jul 2020 09:36:14 +0000 (02:36 -0700)
committerAndes <uboot@andestech.com>
Tue, 4 Aug 2020 01:19:41 +0000 (09:19 +0800)
Add necessary defconfig and Kconfig entries to enable SiFive SoC's
reset driver so as to utilise U-Boot's reset framework.

Signed-off-by: Sagar Shrikant Kadam <sagar.kadam@sifive.com>
Reviewed-by: Pragnesh Patel <Pragnesh.patel@sifive.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
configs/sifive_fu540_defconfig
drivers/reset/Kconfig
drivers/reset/Makefile

index 59804062d9fc899f27365bb42b7b2754b96a62da..070ef664464ebad51b4bf44d285561067a885109 100644 (file)
@@ -25,3 +25,5 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_SPL_CLK=y
 CONFIG_DM_MTD=y
+CONFIG_SPL_DM_RESET=y
+CONFIG_DM_RESET=y
index 6d5356122343b81d1d539a429e9084d7a3424cad..253902ff574a27291d463a55da9d54885076a549 100644 (file)
@@ -148,6 +148,15 @@ config RESET_IMX7
        help
          Support for reset controller on i.MX7/8 SoCs.
 
+config RESET_SIFIVE
+       bool "Reset Driver for SiFive SoC's"
+       depends on DM_RESET && CLK_SIFIVE_FU540_PRCI && TARGET_SIFIVE_FU540
+       default y
+       help
+         PRCI module within SiFive SoC's provides mechanism to reset
+         different hw blocks like DDR, gemgxl. With this driver we leverage
+         U-Boot's reset framework to reset these hardware blocks.
+
 config RESET_SYSCON
        bool "Enable generic syscon reset driver support"
        depends on DM_RESET
index 8e0124b8dee3af9c2be466dbe5fdd9080425b955..3c7f066ae39dec9860a224e161b86d642b68e813 100644 (file)
@@ -23,5 +23,6 @@ obj-$(CONFIG_RESET_MTMIPS) += reset-mtmips.o
 obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o
 obj-$(CONFIG_RESET_HISILICON) += reset-hisilicon.o
 obj-$(CONFIG_RESET_IMX7) += reset-imx7.o
+obj-$(CONFIG_RESET_SIFIVE) += reset-sifive.o
 obj-$(CONFIG_RESET_SYSCON) += reset-syscon.o
 obj-$(CONFIG_RESET_RASPBERRYPI) += reset-raspberrypi.o