[U-Boot] [RESEND PATCH v7 00/10] Add VID support for QDS and RDB platforms

Rajesh Bhagat rajesh.bhagat at nxp.com
Thu Nov 30 06:30:47 UTC 2017


Adds LTC3882 voltage regulator chip support in common VID driver.
And adds VID support for LS1088A QDS and RDB platforms.

Rajesh Bhagat (10):
  armv8: lsch3: Add serdes and DDR voltage setup
  board: common:vid: Add LS1088A VID Supported voltage values
  board: common: vid: Add board specific vdd adjust API
  board: common: vid: Move IR chip specific code in flag
  Kconfig: Add LTC3882 voltage regulator config
  board: common: vid: Add support for LTC3882 voltage regulator chip
  ddr: fsl: set cdr1 first in case 0.9v VDD is enabled for some SoCs
  ls1088a: ddr: configure DDR for 0.9v for VID support
  common: board_f: vid: Add VID specific API to adjust core voltage
  ls1088a: Add VID support for QDS and RDB platforms

 .../cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c    | 286 +++++++++++++++++++++
 arch/arm/cpu/armv8/fsl-layerscape/soc.c            |  39 +++
 arch/arm/cpu/armv8/fsl-layerscape/spl.c            |   3 +
 .../include/asm/arch-fsl-layerscape/fsl_serdes.h   |   2 +-
 .../include/asm/arch-fsl-layerscape/immap_lsch3.h  |  43 +++-
 arch/arm/include/asm/arch-fsl-layerscape/soc.h     |   1 +
 board/freescale/common/Kconfig                     |  16 ++
 board/freescale/common/Makefile                    |   2 +-
 board/freescale/common/vid.c                       | 129 +++++++++-
 board/freescale/ls1088a/ddr.c                      |  21 ++
 board/freescale/ls1088a/ls1088a.c                  | 127 ++++++++-
 common/board_f.c                                   |  10 +
 drivers/ddr/fsl/fsl_ddr_gen4.c                     |   4 +-
 include/common.h                                   |   3 +
 include/configs/ls1088aqds.h                       |  27 ++
 include/configs/ls1088ardb.h                       |  27 ++
 16 files changed, 733 insertions(+), 7 deletions(-)

-- 
Changes in v7:
  - Used APIs clr/set/clrsetbits_le32() for code clarity
  - Defined CONFIG_VID in SPL scenario too                                       
  - Defined new API init_func_vid for core voltage adjustment for LS1088A

Changes in v6:
  - Corrected indentation/alignment issues at various places
  - Changed NULL ENTRY in srds_prctl_info array to id as zero
  - Corrected the PLL Reset logic, moved code inside for loop
  - Used error code(-EINVAL) in setup_serdes_volt API

Changes in v5:
  - Moved local macros to static functions
  - Used array to handle PRCTL mask and shift operations
  - Tested on LS2080RDB, working fine

Changes in v4:
  - Added local macros instead of magical numbers
  - Created macros to remove duplicate code

Changes in v3:
 Restructured LS1088A VID support to use common VID driver
 Cosmetic review comments fixed
 Added __iomem for accessing registers
 Added the coding for voltage in comments i.e. 1/4096V
 Removed APIs getLSB/MSB and used bit operations. 

Changes in v2:
 Checkpatch errors fixed

Depends on below patches:
http://patchwork.ozlabs.org/patch/831893/ 
http://patchwork.ozlabs.org/patch/833198/ 
http://patchwork.ozlabs.org/patch/833199/ 
http://patchwork.ozlabs.org/patch/834501/ 
http://patchwork.ozlabs.org/patch/834502/ 
http://patchwork.ozlabs.org/patch/834503/ 


2.7.4



More information about the U-Boot mailing list