blob: dab57382eddfc0d1d8f258ece717d15fffe876e1 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Shaohui Xiedd335672015-11-11 17:58:37 +08002/*
3 * Copyright 2015 Freescale Semiconductor, Inc.
Shaohui Xiedd335672015-11-11 17:58:37 +08004 */
5
6#ifndef __LS1043AQDS_H__
7#define __LS1043AQDS_H__
8
9#include "ls1043a_common.h"
10
Shaohui Xiedd335672015-11-11 17:58:37 +080011/* Physical Memory Map */
Shaohui Xiedd335672015-11-11 17:58:37 +080012
Shaohui Xiedd335672015-11-11 17:58:37 +080013#define SPD_EEPROM_ADDRESS 0x51
Shaohui Xiedd335672015-11-11 17:58:37 +080014
Shaohui Xiedd335672015-11-11 17:58:37 +080015#ifdef CONFIG_DDR_ECC
Shaohui Xiedd335672015-11-11 17:58:37 +080016#define CONFIG_MEM_INIT_VALUE 0xdeadbeef
17#endif
18
Shaohui Xiedd335672015-11-11 17:58:37 +080019#ifdef CONFIG_SYS_DPAA_FMAN
Shaohui Xiedd335672015-11-11 17:58:37 +080020#define RGMII_PHY1_ADDR 0x1
21#define RGMII_PHY2_ADDR 0x2
22#define SGMII_CARD_PORT1_PHY_ADDR 0x1C
23#define SGMII_CARD_PORT2_PHY_ADDR 0x1D
24#define SGMII_CARD_PORT3_PHY_ADDR 0x1E
25#define SGMII_CARD_PORT4_PHY_ADDR 0x1F
26/* PHY address on QSGMII riser card on slot 1 */
27#define QSGMII_CARD_PORT1_PHY_ADDR_S1 0x4
28#define QSGMII_CARD_PORT2_PHY_ADDR_S1 0x5
29#define QSGMII_CARD_PORT3_PHY_ADDR_S1 0x6
30#define QSGMII_CARD_PORT4_PHY_ADDR_S1 0x7
31/* PHY address on QSGMII riser card on slot 2 */
32#define QSGMII_CARD_PORT1_PHY_ADDR_S2 0x8
33#define QSGMII_CARD_PORT2_PHY_ADDR_S2 0x9
34#define QSGMII_CARD_PORT3_PHY_ADDR_S2 0xA
35#define QSGMII_CARD_PORT4_PHY_ADDR_S2 0xB
36#endif
37
Shaohui Xiedd335672015-11-11 17:58:37 +080038/*
39 * IFC Definitions
40 */
Qianyu Gong138a36a2016-01-25 15:16:07 +080041#if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI)
Tom Rini6a5dccc2022-11-16 13:10:41 -050042#define CFG_SYS_NOR0_CSPR_EXT (0x0)
43#define CFG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CFG_SYS_FLASH_BASE_PHYS) | \
Shaohui Xiedd335672015-11-11 17:58:37 +080044 CSPR_PORT_SIZE_16 | \
45 CSPR_MSEL_NOR | \
46 CSPR_V)
Tom Rini6a5dccc2022-11-16 13:10:41 -050047#define CFG_SYS_NOR1_CSPR_EXT (0x0)
48#define CFG_SYS_NOR1_CSPR (CSPR_PHYS_ADDR(CFG_SYS_FLASH_BASE_PHYS \
Shaohui Xiedd335672015-11-11 17:58:37 +080049 + 0x8000000) | \
50 CSPR_PORT_SIZE_16 | \
51 CSPR_MSEL_NOR | \
52 CSPR_V)
Tom Rini7b577ba2022-11-16 13:10:25 -050053#define CFG_SYS_NOR_AMASK IFC_AMASK(128 * 1024 * 1024)
Shaohui Xiedd335672015-11-11 17:58:37 +080054
Tom Rini7b577ba2022-11-16 13:10:25 -050055#define CFG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(4) | \
Shaohui Xiedd335672015-11-11 17:58:37 +080056 CSOR_NOR_TRHZ_80)
Tom Rini7b577ba2022-11-16 13:10:25 -050057#define CFG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \
Shaohui Xiedd335672015-11-11 17:58:37 +080058 FTIM0_NOR_TEADC(0x5) | \
59 FTIM0_NOR_TEAHC(0x5))
Tom Rini7b577ba2022-11-16 13:10:25 -050060#define CFG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x35) | \
Shaohui Xiedd335672015-11-11 17:58:37 +080061 FTIM1_NOR_TRAD_NOR(0x1a) | \
62 FTIM1_NOR_TSEQRAD_NOR(0x13))
Tom Rini7b577ba2022-11-16 13:10:25 -050063#define CFG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x4) | \
Shaohui Xiedd335672015-11-11 17:58:37 +080064 FTIM2_NOR_TCH(0x4) | \
65 FTIM2_NOR_TWPH(0xe) | \
66 FTIM2_NOR_TWP(0x1c))
Tom Rini7b577ba2022-11-16 13:10:25 -050067#define CFG_SYS_NOR_FTIM3 0
Shaohui Xiedd335672015-11-11 17:58:37 +080068
Tom Rini6a5dccc2022-11-16 13:10:41 -050069#define CFG_SYS_FLASH_BANKS_LIST {CFG_SYS_FLASH_BASE_PHYS, \
70 CFG_SYS_FLASH_BASE_PHYS + 0x8000000}
Shaohui Xiedd335672015-11-11 17:58:37 +080071
Tom Rini6a5dccc2022-11-16 13:10:41 -050072#define CFG_SYS_WRITE_SWAPPED_DATA
Shaohui Xiedd335672015-11-11 17:58:37 +080073
74/*
75 * NAND Flash Definitions
76 */
Shaohui Xiedd335672015-11-11 17:58:37 +080077
Tom Rinib4213492022-11-12 17:36:51 -050078#define CFG_SYS_NAND_BASE 0x7e800000
79#define CFG_SYS_NAND_BASE_PHYS CFG_SYS_NAND_BASE
Shaohui Xiedd335672015-11-11 17:58:37 +080080
Tom Rinib4213492022-11-12 17:36:51 -050081#define CFG_SYS_NAND_CSPR_EXT (0x0)
Shaohui Xiedd335672015-11-11 17:58:37 +080082
Tom Rinib4213492022-11-12 17:36:51 -050083#define CFG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CFG_SYS_NAND_BASE_PHYS) \
Shaohui Xiedd335672015-11-11 17:58:37 +080084 | CSPR_PORT_SIZE_8 \
85 | CSPR_MSEL_NAND \
86 | CSPR_V)
Tom Rinib4213492022-11-12 17:36:51 -050087#define CFG_SYS_NAND_AMASK IFC_AMASK(64*1024)
88#define CFG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \
Shaohui Xiedd335672015-11-11 17:58:37 +080089 | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \
90 | CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \
91 | CSOR_NAND_RAL_3 /* RAL = 3 Bytes */ \
92 | CSOR_NAND_PGS_2K /* Page Size = 2K */ \
93 | CSOR_NAND_SPRZ_64 /* Spare size = 64 */ \
94 | CSOR_NAND_PB(64)) /* 64 Pages Per Block */
95
Tom Rinib4213492022-11-12 17:36:51 -050096#define CFG_SYS_NAND_FTIM0 (FTIM0_NAND_TCCST(0x7) | \
Shaohui Xiedd335672015-11-11 17:58:37 +080097 FTIM0_NAND_TWP(0x18) | \
98 FTIM0_NAND_TWCHT(0x7) | \
99 FTIM0_NAND_TWH(0xa))
Tom Rinib4213492022-11-12 17:36:51 -0500100#define CFG_SYS_NAND_FTIM1 (FTIM1_NAND_TADLE(0x32) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800101 FTIM1_NAND_TWBE(0x39) | \
102 FTIM1_NAND_TRR(0xe) | \
103 FTIM1_NAND_TRP(0x18))
Tom Rinib4213492022-11-12 17:36:51 -0500104#define CFG_SYS_NAND_FTIM2 (FTIM2_NAND_TRAD(0xf) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800105 FTIM2_NAND_TREH(0xa) | \
106 FTIM2_NAND_TWHRE(0x1e))
Tom Rinib4213492022-11-12 17:36:51 -0500107#define CFG_SYS_NAND_FTIM3 0x0
Shaohui Xiedd335672015-11-11 17:58:37 +0800108
Tom Rinib4213492022-11-12 17:36:51 -0500109#define CFG_SYS_NAND_BASE_LIST { CFG_SYS_NAND_BASE }
Shaohui Xiedd335672015-11-11 17:58:37 +0800110#define CONFIG_MTD_NAND_VERIFY_WRITE
Gong Qianyu760df892016-01-25 15:16:06 +0800111#endif
Shaohui Xiedd335672015-11-11 17:58:37 +0800112
113#ifdef CONFIG_NAND_BOOT
Tom Rinib4213492022-11-12 17:36:51 -0500114#define CFG_SYS_NAND_U_BOOT_SIZE (640 << 10)
Shaohui Xiedd335672015-11-11 17:58:37 +0800115#endif
116
Rajesh Bhagat90bde112018-11-05 18:02:48 +0000117#if defined(CONFIG_TFABOOT) || \
118 defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
Gong Qianyu760df892016-01-25 15:16:06 +0800119#endif
120
Shaohui Xiedd335672015-11-11 17:58:37 +0800121/*
122 * QIXIS Definitions
123 */
Shaohui Xiedd335672015-11-11 17:58:37 +0800124
125#ifdef CONFIG_FSL_QIXIS
126#define QIXIS_BASE 0x7fb00000
127#define QIXIS_BASE_PHYS QIXIS_BASE
Tom Rini6a5dccc2022-11-16 13:10:41 -0500128#define CFG_SYS_I2C_FPGA_ADDR 0x66
Shaohui Xiedd335672015-11-11 17:58:37 +0800129#define QIXIS_LBMAP_SWITCH 6
130#define QIXIS_LBMAP_MASK 0x0f
131#define QIXIS_LBMAP_SHIFT 0
132#define QIXIS_LBMAP_DFLTBANK 0x00
133#define QIXIS_LBMAP_ALTBANK 0x04
Gong Qianyu9da2c672015-12-31 18:29:04 +0800134#define QIXIS_LBMAP_NAND 0x09
135#define QIXIS_LBMAP_SD 0x00
Gong Qianyu760df892016-01-25 15:16:06 +0800136#define QIXIS_LBMAP_SD_QSPI 0xff
Qianyu Gong138a36a2016-01-25 15:16:07 +0800137#define QIXIS_LBMAP_QSPI 0xff
Gong Qianyu9da2c672015-12-31 18:29:04 +0800138#define QIXIS_RCW_SRC_NAND 0x106
139#define QIXIS_RCW_SRC_SD 0x040
Qianyu Gong138a36a2016-01-25 15:16:07 +0800140#define QIXIS_RCW_SRC_QSPI 0x045
Gong Qianyu4ce7be02015-12-31 18:29:03 +0800141#define QIXIS_RST_CTL_RESET 0x41
Shaohui Xiedd335672015-11-11 17:58:37 +0800142#define QIXIS_RCFG_CTL_RECONFIG_IDLE 0x20
143#define QIXIS_RCFG_CTL_RECONFIG_START 0x21
144#define QIXIS_RCFG_CTL_WATCHDOG_ENBLE 0x08
145
Tom Rini6a5dccc2022-11-16 13:10:41 -0500146#define CFG_SYS_FPGA_CSPR_EXT (0x0)
147#define CFG_SYS_FPGA_CSPR (CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800148 CSPR_PORT_SIZE_8 | \
149 CSPR_MSEL_GPCM | \
150 CSPR_V)
Tom Rini6a5dccc2022-11-16 13:10:41 -0500151#define CFG_SYS_FPGA_AMASK IFC_AMASK(64 * 1024)
152#define CFG_SYS_FPGA_CSOR (CSOR_NOR_ADM_SHIFT(4) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800153 CSOR_NOR_NOR_MODE_AVD_NOR | \
154 CSOR_NOR_TRHZ_80)
155
156/*
157 * QIXIS Timing parameters for IFC GPCM
158 */
Tom Rini6a5dccc2022-11-16 13:10:41 -0500159#define CFG_SYS_FPGA_FTIM0 (FTIM0_GPCM_TACSE(0xc) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800160 FTIM0_GPCM_TEADC(0x20) | \
161 FTIM0_GPCM_TEAHC(0x10))
Tom Rini6a5dccc2022-11-16 13:10:41 -0500162#define CFG_SYS_FPGA_FTIM1 (FTIM1_GPCM_TACO(0x50) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800163 FTIM1_GPCM_TRAD(0x1f))
Tom Rini6a5dccc2022-11-16 13:10:41 -0500164#define CFG_SYS_FPGA_FTIM2 (FTIM2_GPCM_TCS(0x8) | \
Shaohui Xiedd335672015-11-11 17:58:37 +0800165 FTIM2_GPCM_TCH(0x8) | \
166 FTIM2_GPCM_TWP(0xf0))
Tom Rini6a5dccc2022-11-16 13:10:41 -0500167#define CFG_SYS_FPGA_FTIM3 0x0
Shaohui Xiedd335672015-11-11 17:58:37 +0800168#endif
169
Rajesh Bhagat90bde112018-11-05 18:02:48 +0000170#ifdef CONFIG_TFABOOT
Tom Rini6a5dccc2022-11-16 13:10:41 -0500171#define CFG_SYS_CSPR0_EXT CFG_SYS_NOR0_CSPR_EXT
172#define CFG_SYS_CSPR0 CFG_SYS_NOR0_CSPR
173#define CFG_SYS_AMASK0 CFG_SYS_NOR_AMASK
174#define CFG_SYS_CSOR0 CFG_SYS_NOR_CSOR
175#define CFG_SYS_CS0_FTIM0 CFG_SYS_NOR_FTIM0
176#define CFG_SYS_CS0_FTIM1 CFG_SYS_NOR_FTIM1
177#define CFG_SYS_CS0_FTIM2 CFG_SYS_NOR_FTIM2
178#define CFG_SYS_CS0_FTIM3 CFG_SYS_NOR_FTIM3
179#define CFG_SYS_CSPR1_EXT CFG_SYS_NOR1_CSPR_EXT
180#define CFG_SYS_CSPR1 CFG_SYS_NOR1_CSPR
181#define CFG_SYS_AMASK1 CFG_SYS_NOR_AMASK
182#define CFG_SYS_CSOR1 CFG_SYS_NOR_CSOR
183#define CFG_SYS_CS1_FTIM0 CFG_SYS_NOR_FTIM0
184#define CFG_SYS_CS1_FTIM1 CFG_SYS_NOR_FTIM1
185#define CFG_SYS_CS1_FTIM2 CFG_SYS_NOR_FTIM2
186#define CFG_SYS_CS1_FTIM3 CFG_SYS_NOR_FTIM3
187#define CFG_SYS_CSPR2_EXT CFG_SYS_NAND_CSPR_EXT
188#define CFG_SYS_CSPR2 CFG_SYS_NAND_CSPR
189#define CFG_SYS_AMASK2 CFG_SYS_NAND_AMASK
190#define CFG_SYS_CSOR2 CFG_SYS_NAND_CSOR
191#define CFG_SYS_CS2_FTIM0 CFG_SYS_NAND_FTIM0
192#define CFG_SYS_CS2_FTIM1 CFG_SYS_NAND_FTIM1
193#define CFG_SYS_CS2_FTIM2 CFG_SYS_NAND_FTIM2
194#define CFG_SYS_CS2_FTIM3 CFG_SYS_NAND_FTIM3
195#define CFG_SYS_CSPR3_EXT CFG_SYS_FPGA_CSPR_EXT
196#define CFG_SYS_CSPR3 CFG_SYS_FPGA_CSPR
197#define CFG_SYS_AMASK3 CFG_SYS_FPGA_AMASK
198#define CFG_SYS_CSOR3 CFG_SYS_FPGA_CSOR
199#define CFG_SYS_CS3_FTIM0 CFG_SYS_FPGA_FTIM0
200#define CFG_SYS_CS3_FTIM1 CFG_SYS_FPGA_FTIM1
201#define CFG_SYS_CS3_FTIM2 CFG_SYS_FPGA_FTIM2
202#define CFG_SYS_CS3_FTIM3 CFG_SYS_FPGA_FTIM3
Rajesh Bhagat90bde112018-11-05 18:02:48 +0000203#else
Shaohui Xiedd335672015-11-11 17:58:37 +0800204#ifdef CONFIG_NAND_BOOT
Tom Rini6a5dccc2022-11-16 13:10:41 -0500205#define CFG_SYS_CSPR0_EXT CFG_SYS_NAND_CSPR_EXT
206#define CFG_SYS_CSPR0 CFG_SYS_NAND_CSPR
207#define CFG_SYS_AMASK0 CFG_SYS_NAND_AMASK
208#define CFG_SYS_CSOR0 CFG_SYS_NAND_CSOR
209#define CFG_SYS_CS0_FTIM0 CFG_SYS_NAND_FTIM0
210#define CFG_SYS_CS0_FTIM1 CFG_SYS_NAND_FTIM1
211#define CFG_SYS_CS0_FTIM2 CFG_SYS_NAND_FTIM2
212#define CFG_SYS_CS0_FTIM3 CFG_SYS_NAND_FTIM3
213#define CFG_SYS_CSPR1_EXT CFG_SYS_NOR0_CSPR_EXT
214#define CFG_SYS_CSPR1 CFG_SYS_NOR0_CSPR
215#define CFG_SYS_AMASK1 CFG_SYS_NOR_AMASK
216#define CFG_SYS_CSOR1 CFG_SYS_NOR_CSOR
217#define CFG_SYS_CS1_FTIM0 CFG_SYS_NOR_FTIM0
218#define CFG_SYS_CS1_FTIM1 CFG_SYS_NOR_FTIM1
219#define CFG_SYS_CS1_FTIM2 CFG_SYS_NOR_FTIM2
220#define CFG_SYS_CS1_FTIM3 CFG_SYS_NOR_FTIM3
221#define CFG_SYS_CSPR2_EXT CFG_SYS_NOR1_CSPR_EXT
222#define CFG_SYS_CSPR2 CFG_SYS_NOR1_CSPR
223#define CFG_SYS_AMASK2 CFG_SYS_NOR_AMASK
224#define CFG_SYS_CSOR2 CFG_SYS_NOR_CSOR
225#define CFG_SYS_CS2_FTIM0 CFG_SYS_NOR_FTIM0
226#define CFG_SYS_CS2_FTIM1 CFG_SYS_NOR_FTIM1
227#define CFG_SYS_CS2_FTIM2 CFG_SYS_NOR_FTIM2
228#define CFG_SYS_CS2_FTIM3 CFG_SYS_NOR_FTIM3
229#define CFG_SYS_CSPR3_EXT CFG_SYS_FPGA_CSPR_EXT
230#define CFG_SYS_CSPR3 CFG_SYS_FPGA_CSPR
231#define CFG_SYS_AMASK3 CFG_SYS_FPGA_AMASK
232#define CFG_SYS_CSOR3 CFG_SYS_FPGA_CSOR
233#define CFG_SYS_CS3_FTIM0 CFG_SYS_FPGA_FTIM0
234#define CFG_SYS_CS3_FTIM1 CFG_SYS_FPGA_FTIM1
235#define CFG_SYS_CS3_FTIM2 CFG_SYS_FPGA_FTIM2
236#define CFG_SYS_CS3_FTIM3 CFG_SYS_FPGA_FTIM3
Shaohui Xiedd335672015-11-11 17:58:37 +0800237#else
Tom Rini6a5dccc2022-11-16 13:10:41 -0500238#define CFG_SYS_CSPR0_EXT CFG_SYS_NOR0_CSPR_EXT
239#define CFG_SYS_CSPR0 CFG_SYS_NOR0_CSPR
240#define CFG_SYS_AMASK0 CFG_SYS_NOR_AMASK
241#define CFG_SYS_CSOR0 CFG_SYS_NOR_CSOR
242#define CFG_SYS_CS0_FTIM0 CFG_SYS_NOR_FTIM0
243#define CFG_SYS_CS0_FTIM1 CFG_SYS_NOR_FTIM1
244#define CFG_SYS_CS0_FTIM2 CFG_SYS_NOR_FTIM2
245#define CFG_SYS_CS0_FTIM3 CFG_SYS_NOR_FTIM3
246#define CFG_SYS_CSPR1_EXT CFG_SYS_NOR1_CSPR_EXT
247#define CFG_SYS_CSPR1 CFG_SYS_NOR1_CSPR
248#define CFG_SYS_AMASK1 CFG_SYS_NOR_AMASK
249#define CFG_SYS_CSOR1 CFG_SYS_NOR_CSOR
250#define CFG_SYS_CS1_FTIM0 CFG_SYS_NOR_FTIM0
251#define CFG_SYS_CS1_FTIM1 CFG_SYS_NOR_FTIM1
252#define CFG_SYS_CS1_FTIM2 CFG_SYS_NOR_FTIM2
253#define CFG_SYS_CS1_FTIM3 CFG_SYS_NOR_FTIM3
254#define CFG_SYS_CSPR2_EXT CFG_SYS_NAND_CSPR_EXT
255#define CFG_SYS_CSPR2 CFG_SYS_NAND_CSPR
256#define CFG_SYS_AMASK2 CFG_SYS_NAND_AMASK
257#define CFG_SYS_CSOR2 CFG_SYS_NAND_CSOR
258#define CFG_SYS_CS2_FTIM0 CFG_SYS_NAND_FTIM0
259#define CFG_SYS_CS2_FTIM1 CFG_SYS_NAND_FTIM1
260#define CFG_SYS_CS2_FTIM2 CFG_SYS_NAND_FTIM2
261#define CFG_SYS_CS2_FTIM3 CFG_SYS_NAND_FTIM3
262#define CFG_SYS_CSPR3_EXT CFG_SYS_FPGA_CSPR_EXT
263#define CFG_SYS_CSPR3 CFG_SYS_FPGA_CSPR
264#define CFG_SYS_AMASK3 CFG_SYS_FPGA_AMASK
265#define CFG_SYS_CSOR3 CFG_SYS_FPGA_CSOR
266#define CFG_SYS_CS3_FTIM0 CFG_SYS_FPGA_FTIM0
267#define CFG_SYS_CS3_FTIM1 CFG_SYS_FPGA_FTIM1
268#define CFG_SYS_CS3_FTIM2 CFG_SYS_FPGA_FTIM2
269#define CFG_SYS_CS3_FTIM3 CFG_SYS_FPGA_FTIM3
Shaohui Xiedd335672015-11-11 17:58:37 +0800270#endif
Rajesh Bhagat90bde112018-11-05 18:02:48 +0000271#endif
Shaohui Xiedd335672015-11-11 17:58:37 +0800272
273/*
274 * I2C bus multiplexer
275 */
276#define I2C_MUX_PCA_ADDR_PRI 0x77
277#define I2C_MUX_PCA_ADDR_SEC 0x76 /* Secondary multiplexer */
278#define I2C_RETIMER_ADDR 0x18
279#define I2C_MUX_CH_DEFAULT 0x8
280#define I2C_MUX_CH_CH7301 0xC
281#define I2C_MUX_CH5 0xD
282#define I2C_MUX_CH7 0xF
283
284#define I2C_MUX_CH_VOL_MONITOR 0xa
285
286/* Voltage monitor on channel 2*/
287#define I2C_VOL_MONITOR_ADDR 0x40
288#define I2C_VOL_MONITOR_BUS_V_OFFSET 0x2
289#define I2C_VOL_MONITOR_BUS_V_OVF 0x1
290#define I2C_VOL_MONITOR_BUS_V_SHIFT 3
291
Shaohui Xiedd335672015-11-11 17:58:37 +0800292/* The lowest and highest voltage allowed for LS1043AQDS */
293#define VDD_MV_MIN 819
294#define VDD_MV_MAX 1212
295
296/*
297 * Miscellaneous configurable options
298 */
Shaohui Xiedd335672015-11-11 17:58:37 +0800299
Shaohui Xiedd335672015-11-11 17:58:37 +0800300/*
301 * Environment
302 */
Shaohui Xiedd335672015-11-11 17:58:37 +0800303
Aneesh Bansal962021a2016-01-22 16:37:22 +0530304#include <asm/fsl_secure_boot.h>
305
Shaohui Xiedd335672015-11-11 17:58:37 +0800306#endif /* __LS1043AQDS_H__ */