]> git.dujemihanovic.xyz Git - u-boot.git/commit
sifive: reset: add DM based reset driver for SiFive SoC's
authorSagar Shrikant Kadam <sagar.kadam@sifive.com>
Wed, 29 Jul 2020 09:36:13 +0000 (02:36 -0700)
committerAndes <uboot@andestech.com>
Tue, 4 Aug 2020 01:19:41 +0000 (09:19 +0800)
commitd04a46426b92cc175a73e5d2c5220503c428fc6c
tree5b718cefde728238b5e4de22ebe77afb56316421
parentea4e9570ebed70c785e0076c65c5490cbd2c947b
sifive: reset: add DM based reset driver for SiFive SoC's

PRCI module within SiFive SoC's has register with which we can
reset the sub-systems within the SoC. The resets to DDR and ethernet
sub systems within FU540-C000 SoC are active low, and are hold low
by default on power-up. Currently these are directly asserted within
prci driver via register read/write.
With the DM based reset driver support here, we bind the reset
driver with clock (prci) driver and assert the reset signals of
both sub-system's appropriately.

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>
arch/riscv/include/asm/arch-fu540/reset.h [new file with mode: 0644]
drivers/clk/sifive/fu540-prci.c
drivers/reset/reset-sifive.c [new file with mode: 0644]