• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef __HI_CHIP_REGS_H__
2 #define __HI_CHIP_REGS_H__
3 
4 /* -------------------------------------------------------------------- */
5 /* Communication Register and flag used by bootrom */
6 /* -------------------------------------------------------------------- */
7 #define REG_START_FLAG			(SYS_CTRL_REG_BASE + REG_SC_GEN1)
8 #define START_MAGIC			(0x444f574e)
9 #define SELF_BOOT_TYPE_USBDEV           0x2
10 #define CP_STEP1_ADDR                   0x04010500
11 #define PCIE_SLAVE_BOOT_CTL_REG         0x0134
12 #define DDR_INIT_DOWNLOAD_OK_FLAG       0xDCDFF001 /* step1:Ddrinit Code Download Finished Flag:  DCDFF001 */
13 #define DDR_INIT_EXCUTE_OK_FLAG         0xDCEFF002 /* step2:Ddrinit Code Excute Finished Flag:    DCEFF002 */
14 #define UBOOT_DOWNLOAD_OK_FLAG          0xBCDFF003 /* step3:Boot Code Download Finished Flag:     BCDFF003 */
15 
16 /* -------------------------------------------------------------------- */
17 /* System Control */
18 /* -------------------------------------------------------------------- */
19 #define SYS_CTRL_REG_BASE			0x11020000
20 #define REG_BASE_SCTL				SYS_CTRL_REG_BASE
21 #define REG_SC_CTRL				0x0000
22 #define REG_SC_SYSRES				0x0004
23 #define REG_PERISTAT				0x0030
24 #define REG_SYSSTAT				0x0018
25 #define EMMC_BOOT_8BIT				(0x1 << 11)
26 #define REG_PERI_EMMC_STAT			0x0404
27 #define mmc_boot_clk_sel(val)           	((val) & 0x3)
28 #define MMC_BOOT_CLK_50M                	0x2
29 #define EMMC_NORMAL_MODE			(0x1 << 3)
30 #define get_spi_nor_addr_mode(_reg)		(((_reg) >> 11) & 0x1)
31 #define get_spi_device_type(_reg)		(((_reg) >> 2) & 0x1)
32 #define get_sys_boot_mode(_reg)			(((_reg) >> 2) & 0x3)
33 #define BOOT_FROM_SPI				0
34 #define BOOT_FROM_SPI_NAND			1
35 #define BOOT_FROM_NAND				2
36 #define BOOT_FROM_EMMC				3
37 
38 #define REG_SC_GEN0				0x0138
39 #define REG_SC_GEN1				0x013c
40 #define REG_SC_GEN2				0x0140
41 #define REG_SC_GEN3				0x0144
42 #define REG_SC_GEN4				0x0148
43 #define REG_SC_GEN9				0x0154
44 #define REG_SC_GEN20				0x0090
45 
46 /* -------------------------------------------------------------------- */
47 /* CPU SUBSYS */
48 /* -------------------------------------------------------------------- */
49 #define REG_CRG_CLUSTER0_CLK_RST	0x0190 /* CPU SUBSYS clock and reset control*/
50 #define CLUSTER0_GLB_SRST_REQ	        (0x1 << 17)
51 
52 #define REG_PERI_CPU_RVBARADDR_A53UP	0x11024004
53 #define REG_PERI_CPU_RVBARADDR_SOC	0x12030020
54 
55 #define REG_CRG_CLUSTER1_CLK_RST	0x0194
56 #define CLUSTER1_GLB_SRST_REQ           (0x1 << 9)
57 #define CLUSTER1_GLB_CKEN               (0x1 << 8)
58 
59 /* -------------------------------------------------------------------- */
60 /* CRG */
61 /* -------------------------------------------------------------------- */
62 #define CRG_REG_BASE			        0x11010000
63 
64 /* -------------------------------------------------------------------- */
65 /* Peripheral Control REG */
66 /* -------------------------------------------------------------------- */
67 #define MISC_REG_BASE			        0x11024000
68 
69 #define USB_CTRL6   0x194
70 #define U3_PORT_DISABLE  (0x1 << 12)
71 
72 /* -------------------------------------------------------------------- */
73 /* IO configuration REG:mux and driver */
74 /* -------------------------------------------------------------------- */
75 #define AHB_IO_CONFIG_REG_BASE			0x11180000
76 #define IO_CONFIG_REG_BASE			AHB_IO_CONFIG_REG_BASE
77 
78 /* -------------------------------------------------------------------- */
79 /* TIMER */
80 /* -------------------------------------------------------------------- */
81 #define TIMER0_REG_BASE			        0x11000000
82 #define REG_TIMER_RELOAD		        0x0
83 #define REG_TIMER_VALUE			        0x4
84 #define REG_TIMER_CONTROL		        0x8
85 #define CFG_TIMER_CLK                   	(3000000)
86 #define CFG_TIMERBASE                   	TIMER0_REG_BASE
87 /* enable timer.32bit, periodic,mask irq, 1 divider.*/
88 #define CFG_TIMER_CTRL                  	0xC2
89 
90 /* -------------------------------------------------------------------- */
91 /* UART */
92 /* -------------------------------------------------------------------- */
93 #define UART0_REG_BASE			        0x11040000
94 #define UART1_REG_BASE			        0x11041000
95 #define UART2_REG_BASE			        0x11042000
96 #define UART3_REG_BASE			        0x11043000
97 
98 #define UATR_IO_CFG_BASE			0x102f0000
99 #define UART0_RXD_IOCFG_OFST			0x20
100 #define UART0_TXD_IOCFG_OFST			0x24
101 
102 #define REG_VO_BT1120_CLK			0x17C7000C
103 #define REG_VO_BT1120_DATA0			0x17C70010
104 
105 /* -------------------------------------------------------------------- */
106 /* DDRC */
107 /* -------------------------------------------------------------------- */
108 #define STACK_TRAINING		 	        0x0401A000
109 #define DDRC0_REG_BASE			        0x11130000
110 #define DDR_MEM_BASE			        0x40000000
111 
112 /* -------------------------------------------------------------------- */
113 /* FMC */
114 /* -------------------------------------------------------------------- */
115 #define FMC_REG_BASE			        0x10000000
116 #define FMC_MEM_BASE			        0x0f000000
117 
118 /* FMC CRG register offset */
119 #define REG_FMC_CRG				0x3f40
120 
121 #define fmc_clk_sel(_clk)			(((_clk) & 0x7) << 12)
122 #define FMC_CLK_SEL_MASK			(0x7 << 12)
123 #define get_fmc_clk_type(_reg)			(((_reg) >> 12) & 0x7)
124 
125 /* SDR/DDR clock */
126 #define FMC_CLK_24M				0
127 #define FMC_CLK_100M				1
128 #define FMC_CLK_150M				3
129 #define FMC_CLK_200M				4
130 #define FMC_CLK_257M				5
131 /* Only DDR clock */
132 #define FMC_CLK_300M				6
133 #define FMC_CLK_400M				7
134 
135 #define FMC_CLK_ENABLE			        (0x1 << 4)
136 #define FMC_SOFT_RST_REQ		        (0x1 << 0)
137 
138 /*--------------------------------------------------------------------- */
139 /* EMMC / SD */
140 /* -------------------------------------------------------------------- */
141 
142 /* eMMC CRG register offset */
143 #define REG_EMMC_CRG				(CRG_REG_BASE + 0x34c0)
144 #define mmc_clk_sel(_clk)			(((_clk) & 0x7) << 24)
145 #define MMC_CLK_SEL_MASK			(0x7 << 24)
146 #define GET_MMC_CLK_TYPE(_reg)			(((_reg) >> 24) & 0x7)
147 #define REG_SAVE_HCS				0x11020300
148 
149 /* EMMC REG*/
150 #define EMMC_BASE_REG			        0x10020000
151 #define NO_EMMC_PHY				1
152 
153 #define NF_BOOTBW_MASK				(1 << 11)
154 #define REG_BASE_PERI_CTRL			REG_BASE_SCTL
155 #define REG_BASE_IO_CONFIG			IO_CONFIG_REG_BASE
156 
157 /* SDIO0 REG */
158 #define REG_SDIO0_CRG				REG_EMMC_CRG
159 #define SDIO0_BASE_REG			        EMMC_BASE_REG
160 
161 /*--------------------------------------------------------------------- */
162 /* HIGMAC */
163 /* -------------------------------------------------------------------- */
164 #define HIGMAC0_IOBASE			0x10290000
165 #define HIGMAC1_IOBASE			0x102A0000
166 
167 /* Ethernet MAC0 MAC_IF CRG register offset */
168 #define REG_ETH0_MACIF_CRG              0x37c0
169 /* Ethernet MAC0 MAC_If CRG register bit map*/
170 #define BIT_MACIF0_RST                  BIT(0)
171 #define BIT_GMACIF0_CLK_EN              BIT(4)
172 #define BIT_RMII0_CLKSEL_PAD            BIT(12)
173 
174 /* Ethernet MAC0 GSF CRG register offset */
175 #define REG_ETH0_GSF_CRG                0x37c4
176 /* Ethernet MAC0 GSF CRG register bit map*/
177 #define BIT_GMAC0_RST                   BIT(0)
178 #define BIT_GMAC0_CLK_EN                BIT(4)
179 
180 /* Ethernet MAC0 PHY CRG register offset */
181 #define REG_ETH0_PHY_CRG                0x37cc
182 /* Ethernet MAC0 PHY CRG register bit map*/
183 #define BIT_EXT_PHY0_RST		BIT(0)
184 #define BIT_EXT_PHY0_CLK_SELECT		BIT(12)
185 
186 
187 /* Ethernet MAC1 MAC_IF CRG register offset */
188 #define REG_ETH1_MACIF_CRG              0x3800
189 /* Ethernet MAC1 MAC_If CRG register bit map*/
190 #define BIT_MACIF1_RST                  BIT(0)
191 #define BIT_GMACIF1_CLK_EN              BIT(4)
192 #define BIT_RMII1_CLKSEL_PAD            BIT(12)
193 
194 /* Ethernet MAC1 GSF CRG register offset */
195 #define REG_ETH1_GSF_CRG                0x3804
196 /* Ethernet MAC1 GSF CRG register bit map*/
197 #define BIT_GMAC1_RST                   BIT(0)
198 #define BIT_GMAC1_CLK_EN                BIT(4)
199 
200 /* Ethernet MAC1 PHY CRG register offset */
201 #define REG_ETH1_PHY_CRG                0x380c
202 /* Ethernet MAC1 PHY CRG register bit map*/
203 #define BIT_EXT_PHY1_RST		BIT(0)
204 #define BIT_EXT_PHY1_CLK_SELECT		BIT(12)
205 
206 #define PHY0_CLK_25M			0
207 #define PHY0_CLK_50M			BIT_EXT_PHY0_CLK_SELECT
208 #define PHY1_CLK_25M			0
209 #define PHY1_CLK_50M			BIT_EXT_PHY1_CLK_SELECT
210 
211 #define HIGMAC_MACIF0_CTRL		(HIGMAC0_IOBASE + 0x300c)
212 #define HIGMAC_MACIF1_CTRL		(HIGMAC1_IOBASE + 0x300c)
213 #define HIGMAC_DUAL_MAC_CRF_ACK_TH	(HIGMAC0_IOBASE + 0x3004)
214 
215 /* Configure higmac pinctrl parameters in software */
216 #define CFG_NET_PINCTRL
217 
218 /* MDIO0 pinctrl phyical addr */
219 #define PHY_ADDR_MDCK0			0x0102F0048
220 #define PHY_ADDR_MDIO0			0x0102F004C
221 /* MDIO1 pinctrl phyical addr */
222 #define PHY_ADDR_MDCK1			0x017C701E0
223 #define PHY_ADDR_MDIO1			0x017C70200
224 
225 /* PHY0 pinctrl phyical addr */
226 #define PHY_ADDR_EPHY0_CLK		0x0102F0050
227 #define PHY_ADDR_EPHY0_RSTN		0x0102F0054
228 /* PHY1 pinctrl phyical addr */
229 #define PHY_ADDR_EPHY1_CLK		0x017C701F0
230 #define PHY_ADDR_EPHY1_RSTN		0x017C701DC
231 
232 /* RGMII0 pinctrl phyical addr */
233 #define PHY_ADDR_RGMII0_TXCKOUT	0x0102F0084
234 #define PHY_ADDR_RGMII0_TXD0	0x0102F0080
235 #define PHY_ADDR_RGMII0_TXD1	0x0102F007C
236 #define PHY_ADDR_RGMII0_TXD2	0x0102F0078
237 #define PHY_ADDR_RGMII0_TXD3	0x0102F0074
238 #define PHY_ADDR_RGMII0_TXEN	0x0102F0070
239 #define PHY_ADDR_RGMII0_RXCK	0x0102F006C
240 #define PHY_ADDR_RGMII0_RXD0	0x0102F0068
241 #define PHY_ADDR_RGMII0_RXD1	0x0102F0064
242 #define PHY_ADDR_RGMII0_RXD2	0x0102F0060
243 #define PHY_ADDR_RGMII0_RXD3	0x0102F005C
244 #define PHY_ADDR_RGMII0_RXDV	0x0102F0058
245 
246 /* RGMII1 pinctrl phyical addr */
247 #define PHY_ADDR_RGMII1_TXCKOUT	0x017C70218
248 #define PHY_ADDR_RGMII1_TXD0	0x017C7020C
249 #define PHY_ADDR_RGMII1_TXD1	0x017C70214
250 #define PHY_ADDR_RGMII1_TXD2	0x017C701F4
251 #define PHY_ADDR_RGMII1_TXD3	0x017C70208
252 #define PHY_ADDR_RGMII1_TXEN	0x017C70210
253 #define PHY_ADDR_RGMII1_RXCK	0x017C701EC
254 #define PHY_ADDR_RGMII1_RXD0	0x017C701E4
255 #define PHY_ADDR_RGMII1_RXD1	0x017C70204
256 #define PHY_ADDR_RGMII1_RXD2	0x017C701FC
257 #define PHY_ADDR_RGMII1_RXD3	0x017C701F8
258 #define PHY_ADDR_RGMII1_RXDV	0x017C701E8
259 
260 /* RMII0 pinctrl phyical addr */
261 #define PHY_ADDR_RMII0_CLK		0x0102F0084
262 #define PHY_ADDR_RMII0_TXD0		0x0102F0080
263 #define PHY_ADDR_RMII0_TXD1		0x0102F007C
264 #define PHY_ADDR_RMII0_TXEN		0x0102F0070
265 #define PHY_ADDR_RMII0_RXD0		0x0102F0068
266 #define PHY_ADDR_RMII0_RXD1		0x0102F0064
267 #define PHY_ADDR_RMII0_RXDV		0x0102F0058
268 
269 /* RMII1 pinctrl phyical addr */
270 #define PHY_ADDR_RMII1_CLK		0x017C70218
271 #define PHY_ADDR_RMII1_TXD0		0x017C7020C
272 #define PHY_ADDR_RMII1_TXD1		0x017C70214
273 #define PHY_ADDR_RMII1_TXEN		0x017C70210
274 #define PHY_ADDR_RMII1_RXD0		0x017C701E4
275 #define PHY_ADDR_RMII1_RXD1		0x017C70204
276 #define PHY_ADDR_RMII1_RXDV		0x017C701E8
277 
278 /* MDIO0 config value */
279 #define VALUE_MDCK0				0x1821
280 #define VALUE_MDIO0				0x1031
281 /* MDIO1 config value */
282 #define VALUE_MDCK1				0x1822
283 #define VALUE_MDIO1				0x1032
284 
285 /* PHY0 config value */
286 #define VALUE_EPHY0_CLK			0x1801
287 #define VALUE_EPHY0_RSTN		0x1031
288 /* PHY1 config value */
289 #define VALUE_EPHY1_CLK			0x1802
290 #define VALUE_EPHY1_RSTN		0x1032
291 
292 /* RGMII0 config value */
293 #define VALUE_RGMII0_TXCKOUT	0x1041
294 #define VALUE_RGMII0_TXD0		0x1051
295 #define VALUE_RGMII0_TXD1		0x1051
296 #define VALUE_RGMII0_TXD2		0x1051
297 #define VALUE_RGMII0_TXD3		0x1051
298 #define VALUE_RGMII0_TXEN		0x1051
299 #define VALUE_RGMII0_RXCK		0x1031
300 #define VALUE_RGMII0_RXD0		0x1031
301 #define VALUE_RGMII0_RXD1		0x1031
302 #define VALUE_RGMII0_RXD2		0x1031
303 #define VALUE_RGMII0_RXD3		0x1031
304 #define VALUE_RGMII0_RXDV		0x1031
305 
306 /* RGMII1 config value */
307 #define VALUE_RGMII1_TXCKOUT	0x1042
308 #define VALUE_RGMII1_TXD0		0x1052
309 #define VALUE_RGMII1_TXD1		0x1052
310 #define VALUE_RGMII1_TXD2		0x1052
311 #define VALUE_RGMII1_TXD3		0x1052
312 #define VALUE_RGMII1_TXEN		0x1052
313 #define VALUE_RGMII1_RXCK		0x1032
314 #define VALUE_RGMII1_RXD0		0x1032
315 #define VALUE_RGMII1_RXD1		0x1032
316 #define VALUE_RGMII1_RXD2		0x1032
317 #define VALUE_RGMII1_RXD3		0x1032
318 #define VALUE_RGMII1_RXDV		0x1032
319 
320 /* RMII0 config value */
321 #define VALUE_RMII0_CLK			0x1052
322 #define VALUE_RMII0_TXD0		0x1051
323 #define VALUE_RMII0_TXD1		0x1051
324 #define VALUE_RMII0_TXEN		0x1051
325 #define VALUE_RMII0_RXD0		0x1031
326 #define VALUE_RMII0_RXD1		0x1031
327 #define VALUE_RMII0_RXDV		0x1031
328 
329 /* RMII1 config value */
330 #define VALUE_RMII1_CLK			0x1053
331 #define VALUE_RMII1_TXD0		0x1052
332 #define VALUE_RMII1_TXD1		0x1052
333 #define VALUE_RMII1_TXEN		0x1052
334 #define VALUE_RMII1_RXD0		0x1032
335 #define VALUE_RMII1_RXD1		0x1032
336 #define VALUE_RMII1_RXDV		0x1032
337 
338 /* -------------------------------------------------------------------- */
339 /* USB */
340 /* -------------------------------------------------------------------- */
341 #define USB3_CTRL_REG_BASE		0x10300000
342 #define USB2_CTRL_REG_BASE		0x10340000
343 #define USB2_PHY2_BASE			0x10310000
344 #define USB2_PHY1_BASE			0x10350000
345 #define USB2_PHY0_BASE			0x10330000
346 #define USB_SYS_CTRL_BASE		0x11020444
347 #define USB_MISC_REG_BASE		0x110241c8
348 
349 /* USB CRG register offset and config */
350 #define	PERI_CRG3632		0x38c0
351 #define	USB2_0_UTMI_CKEN	(0x1 << 8)
352 
353 #define	PERI_CRG3636		0x38d0
354 #define	USB2_PHY0_REQ		(0x1 << 0)
355 #define	USB2_PHY0_TREQ		(0x1 << 1)
356 #define	USB2_PHY0_APB_SRST_REQ	(0x1 << 2)
357 #define	USB2_PHY0_XTAL_CKEN	(0x1 << 4)
358 
359 #define	PERI_CRG3640		0x38e0
360 #define	USB2_1_SRST_REQ		(0x1 << 0)
361 #define	USB2_1_BUS_CKEN		(0x1 << 4)
362 #define	USB2_1_REF_CKEN		(0x1 << 5)
363 #define	USB2_1_UTMI_CKEN	(0x1 << 8)
364 
365 #define	PERI_CRG3644		0x38f0
366 #define	USB2_PHY1_REQ		(0x1 << 0)
367 #define	USB2_PHY1_TREQ		(0x1 << 1)
368 #define	USB2_PHY1_APB_SRST_REQ	(0x1 << 2)
369 #define	USB2_PHY1_XTAL_CKEN	(0x1 << 4)
370 
371 #define	PERI_CRG3664		0x3940
372 #define	USB3_SRST_REQ		(0x1 << 0)
373 #define	USB3_BUS_CKEN		(0x1 << 4)
374 #define	USB3_REF_CKEN		(0x1 << 5)
375 #define	USB3_SUSPEND_CKEN	(0x1 << 6)
376 #define	USB3_UTMI_CKEN		(0x1 << 8)
377 #define	USB3_PIPE_CKEN		(0x1 << 12)
378 
379 #define	PERI_CRG3672		0x3960
380 #define	USB2_PHY2_REQ		(0x1 << 0)
381 #define	USB2_PHY2_TREQ		(0x1 << 1)
382 #define	USB2_PHY2_APB_SRST_REQ	(0x1 << 2)
383 #define	USB2_PHY2_XTAL_CKEN	(0x1 << 4)
384 
385 #define	PERI_CRG3676		0x3970
386 #define	COMBPHY0_SRST_REQ	(0x1 << 0)
387 #define	COMBPHY0_REF_CKEN	(0x1 << 4)
388 
389 #define USB2_CTRL0_CFG		(CRG_REG_BASE + PERI_CRG3632)
390 #define USB2_PHY0_CFG		(CRG_REG_BASE + PERI_CRG3636)
391 #define USB2_CTRL1_CFG		(CRG_REG_BASE + PERI_CRG3640)
392 #define USB2_PHY1_CFG		(CRG_REG_BASE + PERI_CRG3644)
393 #define USB3_PHY_CFG		(CRG_REG_BASE + PERI_CRG3664)
394 #define USB2_PHY2_CFG		(CRG_REG_BASE + PERI_CRG3672)
395 #define USB3_COMBPHY_CFG	(CRG_REG_BASE + PERI_CRG3676)
396 
397 /* USB PHY register offset and config */
398 #define	PHY_PLL_OFFSET		0x14
399 #define	PHY_PLL_ENABLE		(0x3 << 0)
400 
401 #define U2_ANA_CFG0		0x0
402 #define HSTX_MBIAS_MASK	(0xf << 0)
403 #define ana_cfg0_val(p)	((p) & (~HSTX_MBIAS_MASK))
404 #define U2_2_HSTX_MBIAS	(0x3 << 0)
405 #define U2_1_HSTX_MBIAS	(0xb << 0)
406 #define U2_0_HSTX_MBIAS	(0xb << 0)
407 
408 #define U2_ANA_CFG2		0x8
409 #define VDISCREF_SEL_MASK	(0x7 << 16)
410 #define ana_cfg2_val(p)	((p) & (~VDISCREF_SEL_MASK))
411 #define U2_2_VDISCREF_SEL	(0x2 << 16)
412 #define U2_1_VDISCREF_SEL	(0x5 << 16)
413 #define U2_0_VDISCREF_SEL	(0x5 << 16)
414 #define U2_TEST_TX		(0x1 << 20)
415 
416 #define U2_TRIM_VAL_MIN	0x09
417 #define U2_TRIM_VAL_MAX	0x1d
418 #define RT_TRIM_VAL_MASK	0x1f
419 #define usb2_2_trim_val(p)	(((p) >> 10) & RT_TRIM_VAL_MASK)
420 #define usb2_1_trim_val(p)	(((p) >> 5) & RT_TRIM_VAL_MASK)
421 #define usb2_0_trim_val(p)	(((p) >> 0) & RT_TRIM_VAL_MASK)
422 
423 #define usb2_rt_trim_clr(p)	((p) & (~(RT_TRIM_VAL_MASK << 8)))
424 #define usb2_rt_trim_set(p)	((p) << 8)
425 
426 #define U2_ANA_CFG3		0xc
427 #define SLEW_RATE_OPT_MASK	(0x3 << 20)
428 #define ana_cfg3_val(p)	((p) & (~SLEW_RATE_OPT_MASK))
429 #define U2_2_SLEW_RATE_OPT	(0x1 << 20)
430 #define U2_1_SLEW_RATE_OPT	(0x1 << 20)
431 #define U2_0_SLEW_RATE_OPT	(0x1 << 20)
432 
433 #define U2_ANA_CFG4		0x10
434 #define VTXREF_SEL_MASK	(0x7 << 4)
435 #define ana_cfg4_val(p)	((p) & (~VTXREF_SEL_MASK))
436 #define U2_VTXREF_SEL		(0x5 << 4)
437 #define U2_FLS_EDGE_MODE	(0x1 << 13)
438 
439 #define PI_CURRENT_TRIM_ENABLE 0x11100
440 #define PI_CURRENT_TRIM_VAL    0x11101
441 #define TX_SWING_COMP_ENABLE   0xc1200
442 #define TX_SWING_COMP_VAL      0xc1201
443 
444 /* Register for vpll*/
445 #define PERI_CRG_PLL673		0x11010A84
446 
447 #define PERI_CRG_8784		0x11018940
448 #define PERI_CRG_8792		0x11018960
449 #define PERI_CRG_8800		0x11018980
450 #define PERI_CRG_8808		0x110189A0
451 
452 #define VICAP_CONFIG_VAL	0x00005000
453 #define VPLL_FIRST_CFG_VAL	0x02e01063
454 #define VPLL_SECOND_CFG_VAL	0x02001063
455 #define VPLL_FOUT_START_BIT	21
456 #define VPLL_FOUT_VAL_MSK	0x7
457 #define VPLL_FOUT_VAL		0x7
458 #define VPLL_RESET_VAL		0xF
459 
460 /* --------------------------------------------------------- */
461 #define NUM_0                                   0
462 #define NUM_1                                   1
463 #define NUM_2                                   2
464 #define NUM_3                                   3
465 #define NUM_4                                   4
466 #define NUM_5                                   5
467 #define NUM_6                                   6
468 #define NUM_7                                   7
469 #define NUM_8                                   8
470 #define NUM_9                                   9
471 
472 #endif /* End of __HI_CHIP_REGS_H__ */
473