mbox series

[U-Boot,0/5] arm: socfpga: implement proper peripheral reset handling

Message ID 20190125203051.10943-1-simon.k.r.goldschmidt@gmail.com
Headers show
Series arm: socfpga: implement proper peripheral reset handling | expand

Message

Simon Goldschmidt Jan. 25, 2019, 8:30 p.m. UTC
This series implements peripheral reset handling for socfpga gen5.

It moves from enabling all peripherals during SPL startup to using the
socfpga reset driver from all peripherals and enabling peripherals when
they are used.

As Linux cannot even handle this in 4.20, a Kconfig option is added to
keep the old behaviour of just enabling all peripherals from SPL. This
option is default 'y' for now but should be moved to default 'n' in the
near future once a Linux kernel supports reset handling for all drivers.


Simon Goldschmidt (5):
  arm: socfpga: gen5: add reset handles to devicetrees
  arm: socfpga: move SDR reset handling to driver
  mtd: rawnand: denali: add reset handling
  spi: cadence_qspi: add reset handling
  arm: socfpga: implement proper peripheral reset

 arch/arm/dts/socfpga_arria5_socdk-u-boot.dtsi |  6 ++
 arch/arm/dts/socfpga_cyclone5_dbm_soc1.dts    |  5 ++
 .../socfpga_cyclone5_de0_nano_soc-u-boot.dtsi |  6 ++
 arch/arm/dts/socfpga_cyclone5_de10_nano.dts   |  5 ++
 arch/arm/dts/socfpga_cyclone5_de1_soc.dts     |  5 ++
 arch/arm/dts/socfpga_cyclone5_is1.dts         |  5 ++
 .../dts/socfpga_cyclone5_socdk-u-boot.dtsi    |  6 ++
 .../dts/socfpga_cyclone5_sockit-u-boot.dtsi   |  6 ++
 .../dts/socfpga_cyclone5_socrates-u-boot.dtsi | 10 +++
 arch/arm/dts/socfpga_cyclone5_sr1500.dts      |  5 ++
 .../socfpga_cyclone5_vining_fpga-u-boot.dtsi  |  6 ++
 arch/arm/dts/socfpga_u-boot.dtsi              | 61 +++++++++++++++++++
 arch/arm/mach-socfpga/Kconfig                 | 10 +++
 arch/arm/mach-socfpga/misc_gen5.c             |  2 +
 arch/arm/mach-socfpga/spl_gen5.c              | 11 +++-
 drivers/ddr/altera/sdram_gen5.c               |  4 ++
 drivers/mtd/nand/raw/denali_dt.c              |  8 +++
 drivers/spi/cadence_qspi.c                    |  9 +++
 18 files changed, 169 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/socfpga_u-boot.dtsi