]> git.baikalelectronics.ru Git - uboot.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)
commit2aac42671ddf30ad9c70f08b932bf498038848e6
tree5b718cefde728238b5e4de22ebe77afb56316421
parent25d25a5a396dae60dd92dcf4b3205d60fd9c75cf
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]