[U-Boot] [PATCH v2 0/4] driver: ti_qspi: Use a SYSCON device to map the ctrl_mod_mmap register

Jean-Jacques Hiblot jjhiblot at ti.com
Mon Feb 13 15:17:46 UTC 2017


This series allows the ti_qspi driver to use the same dts description as the
linux kernel. In Linux since 4.6 the ctrl_mod_mmap is described in the DTS as a
syscon. It used to be the 3rd memory range in "reg".

The first two patches of this series are generic ones:
 * Allow the SPL version of fdtdec_get_addr_size_fixed() to perform address
   translation
 * change the regmap initialization to take in account the required address
   translation by using fdtdec_get_addr_size_fixed().

The third patch adds the mechanism in the ti_qspi driver to get the address
of ctrl_mod_mmap from the syscon

The last patch simply enable the SYSCON feature in the default config for the
dra7xx and am57xx evms.

changes since v1:
 * rebased on top of Lokesh's series enabling support for SPL_DM][1][2]
 * Added a patch to enable address translation in fdtdec_get_addr_size_fixed()
 * use CONFIG_IS_ENABLED(XXX) instead of CONFIG_XXX and CONFIG_SPL_XXX to
   simplify the conditional code.
 

[1] https://www.mail-archive.com/u-boot@lists.denx.de/msg238751.html
[2] https://www.mail-archive.com/u-boot@lists.denx.de/msg238964.html

Jean-Jacques Hiblot (4):
  libfdt: Allow the SPL to perform fdt address translation
  regmap: use fdt address translation
  drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register
  configs: dra7x/am57x: Enable the SYSCON and REGMAP features

 configs/am57xx_evm_defconfig    |  6 ++++++
 configs/am57xx_hs_evm_defconfig |  6 ++++++
 configs/dra7xx_evm_defconfig    |  6 ++++++
 configs/dra7xx_hs_evm_defconfig |  6 ++++++
 drivers/core/regmap.c           | 14 ++++++------
 drivers/spi/ti_qspi.c           | 47 ++++++++++++++++++++++++++++++++++++-----
 lib/fdtdec.c                    |  2 +-
 7 files changed, 75 insertions(+), 12 deletions(-)

-- 
1.9.1



More information about the U-Boot mailing list