xref: /openbmc/u-boot/board/renesas/r0p7734/lowlevel_init.S (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */
28ca805e1SNobuhiro Iwamatsu/*
38ca805e1SNobuhiro Iwamatsu * Copyright (C) 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
48ca805e1SNobuhiro Iwamatsu * Copyright (C) 2011 Renesas Solutions Corp.
58ca805e1SNobuhiro Iwamatsu */
68ca805e1SNobuhiro Iwamatsu#include <config.h>
78ca805e1SNobuhiro Iwamatsu#include <asm/processor.h>
88ca805e1SNobuhiro Iwamatsu#include <asm/macro.h>
98ca805e1SNobuhiro Iwamatsu
108ca805e1SNobuhiro Iwamatsu#include <asm/processor.h>
118ca805e1SNobuhiro Iwamatsu
128ca805e1SNobuhiro Iwamatsu	.global	lowlevel_init
138ca805e1SNobuhiro Iwamatsu
148ca805e1SNobuhiro Iwamatsu	.text
158ca805e1SNobuhiro Iwamatsu	.align	2
168ca805e1SNobuhiro Iwamatsu
178ca805e1SNobuhiro Iwamatsulowlevel_init:
188ca805e1SNobuhiro Iwamatsu
198ca805e1SNobuhiro Iwamatsu	/* WDT */
208ca805e1SNobuhiro Iwamatsu	write32 WDTCSR_A, WDTCSR_D
218ca805e1SNobuhiro Iwamatsu
228ca805e1SNobuhiro Iwamatsu	/* MMU */
238ca805e1SNobuhiro Iwamatsu	write32 MMUCR_A, MMUCR_D
248ca805e1SNobuhiro Iwamatsu
258ca805e1SNobuhiro Iwamatsu	write32 FRQCR2_A, FRQCR2_D
268ca805e1SNobuhiro Iwamatsu	write32 FRQCR0_A, FRQCR0_D
278ca805e1SNobuhiro Iwamatsu
288ca805e1SNobuhiro Iwamatsu	write32 CS0CTRL_A, CS0CTRL_D
298ca805e1SNobuhiro Iwamatsu	write32 CS1CTRL_A, CS1CTRL_D
308ca805e1SNobuhiro Iwamatsu	write32 CS0CTRL2_A, CS0CTRL2_D
318ca805e1SNobuhiro Iwamatsu
328ca805e1SNobuhiro Iwamatsu	write32 CSPWCR0_A, CSPWCR0_D
338ca805e1SNobuhiro Iwamatsu	write32 CSPWCR1_A, CSPWCR1_D
348ca805e1SNobuhiro Iwamatsu	write32 CS1GDST_A, CS1GDST_D
358ca805e1SNobuhiro Iwamatsu
368ca805e1SNobuhiro Iwamatsu	# clock mode check
378ca805e1SNobuhiro Iwamatsu	mov.l   MODEMR, r1
388ca805e1SNobuhiro Iwamatsu	mov.l   @r1, r0
398ca805e1SNobuhiro Iwamatsu	and		#6, r0 /* Check 1 and 2 bit.*/
408ca805e1SNobuhiro Iwamatsu	cmp/eq  #2, r0 /* 0x02 is 533Mhz mode */
418ca805e1SNobuhiro Iwamatsu	bt      init_lbsc_533
428ca805e1SNobuhiro Iwamatsu
438ca805e1SNobuhiro Iwamatsuinit_lbsc_400:
448ca805e1SNobuhiro Iwamatsu
458ca805e1SNobuhiro Iwamatsu	write32 CSWCR0_A, CSWCR0_D_400
468ca805e1SNobuhiro Iwamatsu	write32 CSWCR1_A, CSWCR1_D
478ca805e1SNobuhiro Iwamatsu
488ca805e1SNobuhiro Iwamatsu	bra	init_dbsc3_400_pad
498ca805e1SNobuhiro Iwamatsu	nop
508ca805e1SNobuhiro Iwamatsu
518ca805e1SNobuhiro Iwamatsu	.align 2
528ca805e1SNobuhiro Iwamatsu
538ca805e1SNobuhiro IwamatsuMODEMR:		.long	0xFFCC0020
548ca805e1SNobuhiro IwamatsuWDTCSR_A:	.long	0xFFCC0004
558ca805e1SNobuhiro IwamatsuWDTCSR_D:	.long	0xA5000000
568ca805e1SNobuhiro IwamatsuMMUCR_A:	.long	0xFF000010
578ca805e1SNobuhiro IwamatsuMMUCR_D:	.long	0x00000004
588ca805e1SNobuhiro Iwamatsu
598ca805e1SNobuhiro IwamatsuFRQCR2_A:	.long	0xFFC80008
608ca805e1SNobuhiro IwamatsuFRQCR2_D:	.long	0x00000000
618ca805e1SNobuhiro IwamatsuFRQCR0_A:	.long	0xFFC80000
628ca805e1SNobuhiro IwamatsuFRQCR0_D:	.long	0xCF000001
638ca805e1SNobuhiro Iwamatsu
648ca805e1SNobuhiro IwamatsuCS0CTRL_A:	.long	0xFF800200
658ca805e1SNobuhiro IwamatsuCS0CTRL_D:	.long	0x00000020
668ca805e1SNobuhiro IwamatsuCS1CTRL_A:	.long	0xFF800204
678ca805e1SNobuhiro IwamatsuCS1CTRL_D:	.long	0x00000020
688ca805e1SNobuhiro Iwamatsu
698ca805e1SNobuhiro IwamatsuCS0CTRL2_A:	.long	0xFF800220
708ca805e1SNobuhiro IwamatsuCS0CTRL2_D:	.long	0x00004000
718ca805e1SNobuhiro Iwamatsu
728ca805e1SNobuhiro IwamatsuCSPWCR0_A:	.long	0xFF800280
738ca805e1SNobuhiro IwamatsuCSPWCR0_D:	.long	0x00000000
748ca805e1SNobuhiro IwamatsuCSPWCR1_A:	.long	0xFF800284
758ca805e1SNobuhiro IwamatsuCSPWCR1_D:	.long	0x00000000
768ca805e1SNobuhiro IwamatsuCS1GDST_A:	.long	0xFF8002C0
778ca805e1SNobuhiro IwamatsuCS1GDST_D:	.long	0x00000011
788ca805e1SNobuhiro Iwamatsu
798ca805e1SNobuhiro Iwamatsuinit_lbsc_533:
808ca805e1SNobuhiro Iwamatsu
818ca805e1SNobuhiro Iwamatsu	write32 CSWCR0_A, CSWCR0_D_533
828ca805e1SNobuhiro Iwamatsu	write32 CSWCR1_A, CSWCR1_D
838ca805e1SNobuhiro Iwamatsu
848ca805e1SNobuhiro Iwamatsu	bra	init_dbsc3_533_pad
858ca805e1SNobuhiro Iwamatsu	nop
868ca805e1SNobuhiro Iwamatsu
878ca805e1SNobuhiro Iwamatsu	.align 2
888ca805e1SNobuhiro Iwamatsu
898ca805e1SNobuhiro IwamatsuCSWCR0_A:	.long	0xFF800230
908ca805e1SNobuhiro IwamatsuCSWCR0_D_533:	.long	0x01120104
918ca805e1SNobuhiro IwamatsuCSWCR0_D_400:	.long	0x02120114
928ca805e1SNobuhiro Iwamatsu/* CSWCR0_D_400:	.long	0x01160116 */
938ca805e1SNobuhiro IwamatsuCSWCR1_A:	.long	0xFF800234
948ca805e1SNobuhiro IwamatsuCSWCR1_D:	.long	0x077F077F
958ca805e1SNobuhiro Iwamatsu/* CSWCR1_D_400:	.long	0x00120012 */
968ca805e1SNobuhiro Iwamatsu
978ca805e1SNobuhiro Iwamatsuinit_dbsc3_400_pad:
988ca805e1SNobuhiro Iwamatsu
998ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D
1008ca805e1SNobuhiro Iwamatsu	wait_timer	WAIT_200US_400
1018ca805e1SNobuhiro Iwamatsu
1028ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT0_A,	DBPDCNT0_D_400
1038ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT3_A,	DBPDCNT3_D0
1048ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT1_A,	DBPDCNT1_D
1058ca805e1SNobuhiro Iwamatsu
1068ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT3_A,	DBPDCNT3_D1
1078ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_32MCLK
1088ca805e1SNobuhiro Iwamatsu
1098ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D2
1108ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_100US_400
1118ca805e1SNobuhiro Iwamatsu
1128ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D3
1138ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_16MCLK
1148ca805e1SNobuhiro Iwamatsu
1158ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D4
1168ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_200US_400
1178ca805e1SNobuhiro Iwamatsu
1188ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D5
1198ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_1MCLK
1208ca805e1SNobuhiro Iwamatsu
1218ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D6
1228ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_10KMCLK
1238ca805e1SNobuhiro Iwamatsu
1248ca805e1SNobuhiro Iwamatsu	bra init_dbsc3_ctrl_400
1258ca805e1SNobuhiro Iwamatsu	nop
1268ca805e1SNobuhiro Iwamatsu
1278ca805e1SNobuhiro Iwamatsu	.align 2
1288ca805e1SNobuhiro Iwamatsu
1298ca805e1SNobuhiro Iwamatsuinit_dbsc3_533_pad:
1308ca805e1SNobuhiro Iwamatsu
1318ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D
1328ca805e1SNobuhiro Iwamatsu	wait_timer	WAIT_200US_533
1338ca805e1SNobuhiro Iwamatsu
1348ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT0_A,	DBPDCNT0_D_533
1358ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT3_A,	DBPDCNT3_D0
1368ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT1_A,	DBPDCNT1_D
1378ca805e1SNobuhiro Iwamatsu
1388ca805e1SNobuhiro Iwamatsu	write32 DBPDCNT3_A,	DBPDCNT3_D1
1398ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_32MCLK
1408ca805e1SNobuhiro Iwamatsu
1418ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D2
1428ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_100US_533
1438ca805e1SNobuhiro Iwamatsu
1448ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D3
1458ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_16MCLK
1468ca805e1SNobuhiro Iwamatsu
1478ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D4
1488ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_200US_533
1498ca805e1SNobuhiro Iwamatsu
1508ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D5
1518ca805e1SNobuhiro Iwamatsu	wait_timer WAIT_1MCLK
1528ca805e1SNobuhiro Iwamatsu
1538ca805e1SNobuhiro Iwamatsu	write32	DBPDCNT3_A,	DBPDCNT3_D6
1548ca805e1SNobuhiro Iwamatsu	wait_timer	WAIT_10KMCLK
1558ca805e1SNobuhiro Iwamatsu
1568ca805e1SNobuhiro Iwamatsu	bra init_dbsc3_ctrl_533
1578ca805e1SNobuhiro Iwamatsu	nop
1588ca805e1SNobuhiro Iwamatsu
1598ca805e1SNobuhiro Iwamatsu	.align 2
1608ca805e1SNobuhiro Iwamatsu
1618ca805e1SNobuhiro IwamatsuWAIT_200US_400:	.long	40000
1628ca805e1SNobuhiro IwamatsuWAIT_200US_533:	.long	53300
1638ca805e1SNobuhiro IwamatsuWAIT_100US_400:	.long	20000
1648ca805e1SNobuhiro IwamatsuWAIT_100US_533:	.long	26650
1658ca805e1SNobuhiro IwamatsuWAIT_32MCLK:	.long	32
1668ca805e1SNobuhiro IwamatsuWAIT_16MCLK:	.long	16
1678ca805e1SNobuhiro IwamatsuWAIT_1MCLK:		.long	1
1688ca805e1SNobuhiro IwamatsuWAIT_10KMCLK:	.long	10000
1698ca805e1SNobuhiro Iwamatsu
1708ca805e1SNobuhiro IwamatsuDBPDCNT0_A:		.long	0xFE800200
1718ca805e1SNobuhiro IwamatsuDBPDCNT0_D_533:	.long	0x00010245
1728ca805e1SNobuhiro IwamatsuDBPDCNT0_D_400:	.long	0x00010235
1738ca805e1SNobuhiro IwamatsuDBPDCNT1_A:		.long	0xFE800204
1748ca805e1SNobuhiro IwamatsuDBPDCNT1_D:		.long	0x00000014
1758ca805e1SNobuhiro IwamatsuDBPDCNT3_A:		.long	0xFE80020C
1768ca805e1SNobuhiro IwamatsuDBPDCNT3_D:		.long	0x80000000
1778ca805e1SNobuhiro IwamatsuDBPDCNT3_D0:	.long	0x800F0000
1788ca805e1SNobuhiro IwamatsuDBPDCNT3_D1:	.long	0x800F1000
1798ca805e1SNobuhiro IwamatsuDBPDCNT3_D2:	.long	0x820F1000
1808ca805e1SNobuhiro IwamatsuDBPDCNT3_D3:	.long	0x860F1000
1818ca805e1SNobuhiro IwamatsuDBPDCNT3_D4:	.long	0x870F1000
1828ca805e1SNobuhiro IwamatsuDBPDCNT3_D5:	.long	0x870F3000
1838ca805e1SNobuhiro IwamatsuDBPDCNT3_D6:	.long	0x870F7000
1848ca805e1SNobuhiro Iwamatsu
1858ca805e1SNobuhiro Iwamatsuinit_dbsc3_ctrl_400:
1868ca805e1SNobuhiro Iwamatsu
1878ca805e1SNobuhiro Iwamatsu	write32 DBKIND_A, DBKIND_D
1888ca805e1SNobuhiro Iwamatsu	write32 DBCONF_A, DBCONF_D
1898ca805e1SNobuhiro Iwamatsu
1908ca805e1SNobuhiro Iwamatsu	write32 DBTR0_A,	DBTR0_D_400
1918ca805e1SNobuhiro Iwamatsu	write32 DBTR1_A,	DBTR1_D_400
1928ca805e1SNobuhiro Iwamatsu	write32 DBTR2_A,	DBTR2_D
1938ca805e1SNobuhiro Iwamatsu	write32 DBTR3_A,	DBTR3_D_400
1948ca805e1SNobuhiro Iwamatsu	write32 DBTR4_A,	DBTR4_D_400
1958ca805e1SNobuhiro Iwamatsu	write32 DBTR5_A,	DBTR5_D_400
1968ca805e1SNobuhiro Iwamatsu	write32 DBTR6_A,	DBTR6_D_400
1978ca805e1SNobuhiro Iwamatsu	write32 DBTR7_A,	DBTR7_D
1988ca805e1SNobuhiro Iwamatsu	write32 DBTR8_A,	DBTR8_D_400
1998ca805e1SNobuhiro Iwamatsu	write32 DBTR9_A,	DBTR9_D
2008ca805e1SNobuhiro Iwamatsu	write32 DBTR10_A,	DBTR10_D_400
2018ca805e1SNobuhiro Iwamatsu	write32 DBTR11_A,	DBTR11_D
2028ca805e1SNobuhiro Iwamatsu	write32 DBTR12_A,	DBTR12_D_400
2038ca805e1SNobuhiro Iwamatsu	write32 DBTR13_A,	DBTR13_D_400
2048ca805e1SNobuhiro Iwamatsu	write32 DBTR14_A,	DBTR14_D
2058ca805e1SNobuhiro Iwamatsu	write32 DBTR15_A,	DBTR15_D
2068ca805e1SNobuhiro Iwamatsu	write32 DBTR16_A,	DBTR16_D_400
2078ca805e1SNobuhiro Iwamatsu	write32 DBTR17_A,	DBTR17_D_400
2088ca805e1SNobuhiro Iwamatsu	write32 DBTR18_A,	DBTR18_D_400
2098ca805e1SNobuhiro Iwamatsu
2108ca805e1SNobuhiro Iwamatsu	write32	DBBL_A,	DBBL_D
2118ca805e1SNobuhiro Iwamatsu	write32	DBRNK0_A,	DBRNK0_D
2128ca805e1SNobuhiro Iwamatsu
2138ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D0_400
2148ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D1
2158ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D2
2168ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D3
2178ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D4
2188ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D5_400
2198ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D6
2208ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D7
2218ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D8
2228ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D9_400
2238ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D10
2248ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D11
2258ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D12
2268ca805e1SNobuhiro Iwamatsu
2278ca805e1SNobuhiro Iwamatsu	write32 DBBS0CNT1_A,	DBBS0CNT1_D
2288ca805e1SNobuhiro Iwamatsu	write32 DBPDNCNF_A,		DBPDNCNF_D
2298ca805e1SNobuhiro Iwamatsu
2308ca805e1SNobuhiro Iwamatsu	write32	DBRFCNF0_A,	DBRFCNF0_D
2318ca805e1SNobuhiro Iwamatsu	write32	DBRFCNF1_A,	DBRFCNF1_D_400
2328ca805e1SNobuhiro Iwamatsu	write32	DBRFCNF2_A,	DBRFCNF2_D
2338ca805e1SNobuhiro Iwamatsu	write32	DBRFEN_A,	DBRFEN_D
2348ca805e1SNobuhiro Iwamatsu	write32	DBACEN_A,	DBACEN_D
2358ca805e1SNobuhiro Iwamatsu	write32	DBACEN_A,	DBACEN_D
2368ca805e1SNobuhiro Iwamatsu
2378ca805e1SNobuhiro Iwamatsu	/* Dummy read */
2388ca805e1SNobuhiro Iwamatsu	mov.l DBWAIT_A, r1
2398ca805e1SNobuhiro Iwamatsu	synco
2408ca805e1SNobuhiro Iwamatsu	mov.l @r1, r0
2418ca805e1SNobuhiro Iwamatsu	synco
2428ca805e1SNobuhiro Iwamatsu
2438ca805e1SNobuhiro Iwamatsu	/* Dummy read */
2448ca805e1SNobuhiro Iwamatsu	mov.l SDRAM_A, r1
2458ca805e1SNobuhiro Iwamatsu	synco
2468ca805e1SNobuhiro Iwamatsu	mov.l @r1, r0
2478ca805e1SNobuhiro Iwamatsu	synco
2488ca805e1SNobuhiro Iwamatsu
2498ca805e1SNobuhiro Iwamatsu	/* need sleep 186A0 */
2508ca805e1SNobuhiro Iwamatsu
2518ca805e1SNobuhiro Iwamatsu	bra	init_pfc_sh7734
2528ca805e1SNobuhiro Iwamatsu	nop
2538ca805e1SNobuhiro Iwamatsu
2548ca805e1SNobuhiro Iwamatsu	.align 2
2558ca805e1SNobuhiro Iwamatsu
2568ca805e1SNobuhiro Iwamatsuinit_dbsc3_ctrl_533:
2578ca805e1SNobuhiro Iwamatsu
2588ca805e1SNobuhiro Iwamatsu	write32 DBKIND_A, DBKIND_D
2598ca805e1SNobuhiro Iwamatsu	write32 DBCONF_A, DBCONF_D
2608ca805e1SNobuhiro Iwamatsu
2618ca805e1SNobuhiro Iwamatsu	write32 DBTR0_A,	DBTR0_D_533
2628ca805e1SNobuhiro Iwamatsu	write32 DBTR1_A,	DBTR1_D_533
2638ca805e1SNobuhiro Iwamatsu	write32 DBTR2_A,	DBTR2_D
2648ca805e1SNobuhiro Iwamatsu	write32 DBTR3_A,	DBTR3_D_533
2658ca805e1SNobuhiro Iwamatsu	write32 DBTR4_A,	DBTR4_D_533
2668ca805e1SNobuhiro Iwamatsu	write32 DBTR5_A,	DBTR5_D_533
2678ca805e1SNobuhiro Iwamatsu	write32 DBTR6_A,	DBTR6_D_533
2688ca805e1SNobuhiro Iwamatsu	write32 DBTR7_A,	DBTR7_D
2698ca805e1SNobuhiro Iwamatsu	write32 DBTR8_A,	DBTR8_D_533
2708ca805e1SNobuhiro Iwamatsu	write32 DBTR9_A,	DBTR9_D
2718ca805e1SNobuhiro Iwamatsu	write32 DBTR10_A,	DBTR10_D_533
2728ca805e1SNobuhiro Iwamatsu	write32 DBTR11_A,	DBTR11_D
2738ca805e1SNobuhiro Iwamatsu	write32 DBTR12_A,	DBTR12_D_533
2748ca805e1SNobuhiro Iwamatsu	write32 DBTR13_A,	DBTR13_D_533
2758ca805e1SNobuhiro Iwamatsu	write32 DBTR14_A,	DBTR14_D
2768ca805e1SNobuhiro Iwamatsu	write32 DBTR15_A,	DBTR15_D
2778ca805e1SNobuhiro Iwamatsu	write32 DBTR16_A,	DBTR16_D_533
2788ca805e1SNobuhiro Iwamatsu	write32 DBTR17_A,	DBTR17_D_533
2798ca805e1SNobuhiro Iwamatsu	write32 DBTR18_A,	DBTR18_D_533
2808ca805e1SNobuhiro Iwamatsu
2818ca805e1SNobuhiro Iwamatsu	write32	DBBL_A,	DBBL_D
2828ca805e1SNobuhiro Iwamatsu	write32	DBRNK0_A,	DBRNK0_D
2838ca805e1SNobuhiro Iwamatsu
2848ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D0_533
2858ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D1
2868ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D2
2878ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D3
2888ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D4
2898ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D5_533
2908ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D6
2918ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D7
2928ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D8
2938ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D9_533
2948ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D10
2958ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D11
2968ca805e1SNobuhiro Iwamatsu	write32 DBCMD_A,	DBCMD_D12
2978ca805e1SNobuhiro Iwamatsu
2988ca805e1SNobuhiro Iwamatsu	write32 DBBS0CNT1_A,	DBBS0CNT1_D
2998ca805e1SNobuhiro Iwamatsu	write32 DBPDNCNF_A,		DBPDNCNF_D
3008ca805e1SNobuhiro Iwamatsu
3018ca805e1SNobuhiro Iwamatsu	write32	DBRFCNF0_A,	DBRFCNF0_D
3028ca805e1SNobuhiro Iwamatsu	write32	DBRFCNF1_A,	DBRFCNF1_D_533
3038ca805e1SNobuhiro Iwamatsu	write32	DBRFCNF2_A,	DBRFCNF2_D
3048ca805e1SNobuhiro Iwamatsu	write32	DBRFEN_A,	DBRFEN_D
3058ca805e1SNobuhiro Iwamatsu	write32	DBACEN_A,	DBACEN_D
3068ca805e1SNobuhiro Iwamatsu	write32	DBACEN_A,	DBACEN_D
3078ca805e1SNobuhiro Iwamatsu
3088ca805e1SNobuhiro Iwamatsu	/* Dummy read */
3098ca805e1SNobuhiro Iwamatsu	mov.l DBWAIT_A, r1
3108ca805e1SNobuhiro Iwamatsu	synco
3118ca805e1SNobuhiro Iwamatsu	mov.l @r1, r0
3128ca805e1SNobuhiro Iwamatsu	synco
3138ca805e1SNobuhiro Iwamatsu
3148ca805e1SNobuhiro Iwamatsu	/* Dummy read */
3158ca805e1SNobuhiro Iwamatsu	mov.l SDRAM_A, r1
3168ca805e1SNobuhiro Iwamatsu	synco
3178ca805e1SNobuhiro Iwamatsu	mov.l @r1, r0
3188ca805e1SNobuhiro Iwamatsu	synco
3198ca805e1SNobuhiro Iwamatsu
3208ca805e1SNobuhiro Iwamatsu	/* need sleep 186A0 */
3218ca805e1SNobuhiro Iwamatsu
3228ca805e1SNobuhiro Iwamatsu	bra	init_pfc_sh7734
3238ca805e1SNobuhiro Iwamatsu	nop
3248ca805e1SNobuhiro Iwamatsu
3258ca805e1SNobuhiro Iwamatsu	.align 2
3268ca805e1SNobuhiro Iwamatsu
3278ca805e1SNobuhiro IwamatsuDBKIND_A:	.long	0xFE800020
3288ca805e1SNobuhiro IwamatsuDBKIND_D:	.long	0x00000005
3298ca805e1SNobuhiro IwamatsuDBCONF_A:	.long	0xFE800024
3308ca805e1SNobuhiro IwamatsuDBCONF_D:	.long	0x0D030A01
3318ca805e1SNobuhiro Iwamatsu
3328ca805e1SNobuhiro IwamatsuDBTR0_A:	.long	0xFE800040
3338ca805e1SNobuhiro IwamatsuDBTR0_D_533:.long	0x00000004
3348ca805e1SNobuhiro IwamatsuDBTR0_D_400:.long	0x00000003
3358ca805e1SNobuhiro IwamatsuDBTR1_A:	.long	0xFE800044
3368ca805e1SNobuhiro IwamatsuDBTR1_D_533:.long	0x00000003
3378ca805e1SNobuhiro IwamatsuDBTR1_D_400:.long	0x00000002
3388ca805e1SNobuhiro IwamatsuDBTR2_A:	.long	0xFE800048
3398ca805e1SNobuhiro IwamatsuDBTR2_D:	.long	0x00000000
3408ca805e1SNobuhiro IwamatsuDBTR3_A:	.long	0xFE800050
3418ca805e1SNobuhiro IwamatsuDBTR3_D_533:.long	0x00000004
3428ca805e1SNobuhiro IwamatsuDBTR3_D_400:.long	0x00000003
3438ca805e1SNobuhiro Iwamatsu
3448ca805e1SNobuhiro IwamatsuDBTR4_A:	.long	0xFE800054
3458ca805e1SNobuhiro IwamatsuDBTR4_D_533:.long	0x00050004
3468ca805e1SNobuhiro IwamatsuDBTR4_D_400:.long	0x00050003
3478ca805e1SNobuhiro Iwamatsu
3488ca805e1SNobuhiro IwamatsuDBTR5_A:	.long	0xFE800058
3498ca805e1SNobuhiro IwamatsuDBTR5_D_533:.long	0x0000000F
3508ca805e1SNobuhiro IwamatsuDBTR5_D_400:.long	0x0000000B
3518ca805e1SNobuhiro Iwamatsu
3528ca805e1SNobuhiro IwamatsuDBTR6_A:	.long	0xFE80005C
3538ca805e1SNobuhiro IwamatsuDBTR6_D_533:.long	0x0000000B
3548ca805e1SNobuhiro IwamatsuDBTR6_D_400:.long	0x00000008
3558ca805e1SNobuhiro Iwamatsu
3568ca805e1SNobuhiro IwamatsuDBTR7_A:	.long	0xFE800060
3578ca805e1SNobuhiro IwamatsuDBTR7_D:	.long	0x00000002 /* common value */
3588ca805e1SNobuhiro Iwamatsu
3598ca805e1SNobuhiro IwamatsuDBTR8_A:	.long	0xFE800064
3608ca805e1SNobuhiro IwamatsuDBTR8_D_533:.long	0x0000000D
3618ca805e1SNobuhiro IwamatsuDBTR8_D_400:.long	0x0000000A
3628ca805e1SNobuhiro Iwamatsu
3638ca805e1SNobuhiro IwamatsuDBTR9_A:	.long	0xFE800068
3648ca805e1SNobuhiro IwamatsuDBTR9_D:	.long	0x00000002 /* common value */
3658ca805e1SNobuhiro Iwamatsu
3668ca805e1SNobuhiro IwamatsuDBTR10_A:	.long	0xFE80006C
3678ca805e1SNobuhiro IwamatsuDBTR10_D_533:.long	0x00000004
3688ca805e1SNobuhiro IwamatsuDBTR10_D_400:.long	0x00000003
3698ca805e1SNobuhiro Iwamatsu
3708ca805e1SNobuhiro IwamatsuDBTR11_A:	.long	0xFE800070
3718ca805e1SNobuhiro IwamatsuDBTR11_D:	.long	0x00000008 /* common value */
3728ca805e1SNobuhiro Iwamatsu
3738ca805e1SNobuhiro IwamatsuDBTR12_A:	.long	0xFE800074
3748ca805e1SNobuhiro IwamatsuDBTR12_D_533:.long	0x00000009
3758ca805e1SNobuhiro IwamatsuDBTR12_D_400:.long	0x00000008
3768ca805e1SNobuhiro Iwamatsu
3778ca805e1SNobuhiro IwamatsuDBTR13_A:	.long	0xFE800078
3788ca805e1SNobuhiro IwamatsuDBTR13_D_533:.long	0x00000022
3798ca805e1SNobuhiro IwamatsuDBTR13_D_400:.long	0x0000001A
3808ca805e1SNobuhiro Iwamatsu
3818ca805e1SNobuhiro IwamatsuDBTR14_A:	.long	0xFE80007C
3828ca805e1SNobuhiro IwamatsuDBTR14_D:	.long	0x00070002 /* common value */
3838ca805e1SNobuhiro Iwamatsu
3848ca805e1SNobuhiro IwamatsuDBTR15_A:	.long	0xFE800080
3858ca805e1SNobuhiro IwamatsuDBTR15_D:	.long	0x00000003 /* common value */
3868ca805e1SNobuhiro Iwamatsu
3878ca805e1SNobuhiro IwamatsuDBTR16_A:	.long	0xFE800084
3888ca805e1SNobuhiro IwamatsuDBTR16_D_533:.long	0x120A1001
3898ca805e1SNobuhiro IwamatsuDBTR16_D_400:.long	0x12091001
3908ca805e1SNobuhiro Iwamatsu
3918ca805e1SNobuhiro IwamatsuDBTR17_A:	.long	0xFE800088
3928ca805e1SNobuhiro IwamatsuDBTR17_D_533:.long	0x00040000
3938ca805e1SNobuhiro IwamatsuDBTR17_D_400:.long	0x00030000
3948ca805e1SNobuhiro Iwamatsu
3958ca805e1SNobuhiro IwamatsuDBTR18_A:	.long	0xFE80008C
3968ca805e1SNobuhiro IwamatsuDBTR18_D_533:.long	0x02010200
3978ca805e1SNobuhiro IwamatsuDBTR18_D_400:.long	0x02000207
3988ca805e1SNobuhiro Iwamatsu
3998ca805e1SNobuhiro IwamatsuDBBL_A:	.long	0xFE8000B0
4008ca805e1SNobuhiro IwamatsuDBBL_D:	.long	0x00000000
4018ca805e1SNobuhiro Iwamatsu
4028ca805e1SNobuhiro IwamatsuDBRNK0_A:		.long	0xFE800100
4038ca805e1SNobuhiro IwamatsuDBRNK0_D:		.long	0x00000001
4048ca805e1SNobuhiro Iwamatsu
4058ca805e1SNobuhiro IwamatsuDBCMD_A:		.long	0xFE800018
4068ca805e1SNobuhiro IwamatsuDBCMD_D0_533:	.long	0x1100006B
4078ca805e1SNobuhiro IwamatsuDBCMD_D0_400:	.long	0x11000050
4088ca805e1SNobuhiro IwamatsuDBCMD_D1:		.long	0x0B000000 /* common value */
4098ca805e1SNobuhiro IwamatsuDBCMD_D2:		.long	0x2A004000 /* common value */
4108ca805e1SNobuhiro IwamatsuDBCMD_D3:		.long	0x2B006000 /* common value */
4118ca805e1SNobuhiro IwamatsuDBCMD_D4:		.long	0x29002004 /* common value */
4128ca805e1SNobuhiro IwamatsuDBCMD_D5_533:	.long	0x28000743
4138ca805e1SNobuhiro IwamatsuDBCMD_D5_400:	.long	0x28000533
4148ca805e1SNobuhiro IwamatsuDBCMD_D6:		.long	0x0B000000 /* common value */
4158ca805e1SNobuhiro IwamatsuDBCMD_D7:		.long	0x0C000000 /* common value */
4168ca805e1SNobuhiro IwamatsuDBCMD_D8:		.long	0x0C000000 /* common value */
4178ca805e1SNobuhiro IwamatsuDBCMD_D9_533:	.long	0x28000643
4188ca805e1SNobuhiro IwamatsuDBCMD_D9_400:	.long	0x28000433
4198ca805e1SNobuhiro IwamatsuDBCMD_D10:		.long	0x000000C8 /* common value */
4208ca805e1SNobuhiro IwamatsuDBCMD_D11:		.long	0x29002384 /* common value */
4218ca805e1SNobuhiro IwamatsuDBCMD_D12:		.long	0x29002004 /* common value */
4228ca805e1SNobuhiro Iwamatsu
4238ca805e1SNobuhiro IwamatsuDBBS0CNT1_A:	.long	0xFE800304
4248ca805e1SNobuhiro IwamatsuDBBS0CNT1_D:	.long	0x00000000
4258ca805e1SNobuhiro IwamatsuDBPDNCNF_A:		.long	0xFE800180
4268ca805e1SNobuhiro IwamatsuDBPDNCNF_D:		.long	0x00000200
4278ca805e1SNobuhiro Iwamatsu
4288ca805e1SNobuhiro IwamatsuDBRFCNF0_A:		.long	0xFE8000E0
4298ca805e1SNobuhiro IwamatsuDBRFCNF0_D:		.long	0x000001FF
4308ca805e1SNobuhiro IwamatsuDBRFCNF1_A:		.long	0xFE8000E4
4318ca805e1SNobuhiro IwamatsuDBRFCNF1_D_533:	.long	0x00000805
4328ca805e1SNobuhiro IwamatsuDBRFCNF1_D_400:	.long	0x00000618
4338ca805e1SNobuhiro Iwamatsu
4348ca805e1SNobuhiro IwamatsuDBRFCNF2_A:		.long	0xFE8000E8
4358ca805e1SNobuhiro IwamatsuDBRFCNF2_D:		.long	0x00000000
4368ca805e1SNobuhiro Iwamatsu
4378ca805e1SNobuhiro IwamatsuDBRFEN_A:		.long	0xFE800014
4388ca805e1SNobuhiro IwamatsuDBRFEN_D:		.long	0x00000001
4398ca805e1SNobuhiro Iwamatsu
4408ca805e1SNobuhiro IwamatsuDBACEN_A:		.long	0xFE800010
4418ca805e1SNobuhiro IwamatsuDBACEN_D:		.long	0x00000001
4428ca805e1SNobuhiro Iwamatsu
4438ca805e1SNobuhiro IwamatsuDBWAIT_A:		.long	0xFE80001C
4448ca805e1SNobuhiro IwamatsuSDRAM_A:		.long	0x0C000000
4458ca805e1SNobuhiro Iwamatsu
4468ca805e1SNobuhiro Iwamatsuinit_pfc_sh7734:
4478ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_MODESEL1
4488ca805e1SNobuhiro Iwamatsu	write32 PFC_MODESEL1_A, PFC_MODESEL1_D
4498ca805e1SNobuhiro Iwamatsu
4508ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_MODESEL2
4518ca805e1SNobuhiro Iwamatsu	write32 PFC_MODESEL2_A, PFC_MODESEL2_D
4528ca805e1SNobuhiro Iwamatsu
4538ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_IPSR3
4548ca805e1SNobuhiro Iwamatsu	write32 PFC_IPSR3_A, PFC_IPSR3_D
4558ca805e1SNobuhiro Iwamatsu
4568ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_IPSR4
4578ca805e1SNobuhiro Iwamatsu	write32 PFC_IPSR4_A, PFC_IPSR4_D
4588ca805e1SNobuhiro Iwamatsu
4598ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_IPSR11
4608ca805e1SNobuhiro Iwamatsu	write32 PFC_IPSR11_A, PFC_IPSR11_D
4618ca805e1SNobuhiro Iwamatsu
4628ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_GPSR0
4638ca805e1SNobuhiro Iwamatsu	write32 PFC_GPSR0_A, PFC_GPSR0_D
4648ca805e1SNobuhiro Iwamatsu
4658ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_GPSR1
4668ca805e1SNobuhiro Iwamatsu	write32 PFC_GPSR1_A, PFC_GPSR1_D
4678ca805e1SNobuhiro Iwamatsu
4688ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_GPSR2
4698ca805e1SNobuhiro Iwamatsu	write32 PFC_GPSR2_A, PFC_GPSR2_D
4708ca805e1SNobuhiro Iwamatsu
4718ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_GPSR3
4728ca805e1SNobuhiro Iwamatsu	write32 PFC_GPSR3_A, PFC_GPSR3_D
4738ca805e1SNobuhiro Iwamatsu
4748ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_GPSR4
4758ca805e1SNobuhiro Iwamatsu	write32 PFC_GPSR4_A, PFC_GPSR4_D
4768ca805e1SNobuhiro Iwamatsu
4778ca805e1SNobuhiro Iwamatsu	write32	PFC_PMMR_A, PFC_PMMR_GPSR5
4788ca805e1SNobuhiro Iwamatsu	write32 PFC_GPSR5_A, PFC_GPSR5_D
4798ca805e1SNobuhiro Iwamatsu
4808ca805e1SNobuhiro Iwamatsu	/* sleep 186A0 */
4818ca805e1SNobuhiro Iwamatsu
4828ca805e1SNobuhiro Iwamatsu	write32 GPIO2_INOUTSEL1_A, GPIO2_INOUTSEL1_D
4838ca805e1SNobuhiro Iwamatsu	write32 GPIO1_OUTDT1_A,	GPIO1_OUTDT1_D
4848ca805e1SNobuhiro Iwamatsu	write32	GPIO2_INOUTSEL2_A, GPIO2_INOUTSEL2_D
4858ca805e1SNobuhiro Iwamatsu	write32 GPIO2_OUTDT2_A, GPIO2_OUTDT2_D
4868ca805e1SNobuhiro Iwamatsu	write32 GPIO4_INOUTSEL4_A,	GPIO4_INOUTSEL4_D
4878ca805e1SNobuhiro Iwamatsu	write32 GPIO4_OUTDT4_A,	GPIO4_OUTDT4_D
4888ca805e1SNobuhiro Iwamatsu
4898ca805e1SNobuhiro Iwamatsu	write32 CCR_A,  CCR_D
4908ca805e1SNobuhiro Iwamatsu
4918ca805e1SNobuhiro Iwamatsu	stc sr, r0
4928ca805e1SNobuhiro Iwamatsu	mov.l  SR_MASK_D, r1
4938ca805e1SNobuhiro Iwamatsu	and r1, r0
4948ca805e1SNobuhiro Iwamatsu	ldc r0, sr
4958ca805e1SNobuhiro Iwamatsu
4968ca805e1SNobuhiro Iwamatsu	rts
4978ca805e1SNobuhiro Iwamatsu	nop
4988ca805e1SNobuhiro Iwamatsu
4998ca805e1SNobuhiro Iwamatsu	.align  2
5008ca805e1SNobuhiro Iwamatsu
5018ca805e1SNobuhiro IwamatsuPFC_PMMR_A:		.long	0xFFFC0000
5028ca805e1SNobuhiro Iwamatsu
5038ca805e1SNobuhiro Iwamatsu/* MODESEL
5048ca805e1SNobuhiro Iwamatsu * 28: Select IEBUS Group B
5058ca805e1SNobuhiro Iwamatsu */
5068ca805e1SNobuhiro IwamatsuPFC_MODESEL1_A:	.long	0xFFFC004C
5078ca805e1SNobuhiro IwamatsuPFC_MODESEL1_D:	.long	0x10000000
5088ca805e1SNobuhiro IwamatsuPFC_PMMR_MODESEL1:	.long	0xEFFFFFFF
5098ca805e1SNobuhiro Iwamatsu
5108ca805e1SNobuhiro Iwamatsu/* MODESEL
5118ca805e1SNobuhiro Iwamatsu * 9: Select SCIF3 Group B
5128ca805e1SNobuhiro Iwamatsu * 7: Select SCIF2 Group B
5138ca805e1SNobuhiro Iwamatsu * 4: Select SCIF1 Group B
5148ca805e1SNobuhiro Iwamatsu */
5158ca805e1SNobuhiro IwamatsuPFC_MODESEL2_A:	.long	0xFFFC0050
5168ca805e1SNobuhiro IwamatsuPFC_MODESEL2_D:	.long	0x00000290
5178ca805e1SNobuhiro IwamatsuPFC_PMMR_MODESEL2:	.long	0xFFFFFD6F
5188ca805e1SNobuhiro Iwamatsu
5198ca805e1SNobuhiro Iwamatsu# Enable functios
5208ca805e1SNobuhiro Iwamatsu# SD1_DAT2_A SD1_DAT1_A, SD1_DAT0_A,
5218ca805e1SNobuhiro Iwamatsu# EXWAIT0, RDW/RW, SD1_CMD_A, SD1_WP_A,
5228ca805e1SNobuhiro Iwamatsu# SD1_CD_A, TX3_B, RX3_B, CS1, D15
5238ca805e1SNobuhiro IwamatsuPFC_IPSR3_A:	.long	0xFFFC0028
5248ca805e1SNobuhiro IwamatsuPFC_IPSR3_D:	.long	0x09209248
5258ca805e1SNobuhiro IwamatsuPFC_PMMR_IPSR3:	.long	0xF6DF6DB7
5268ca805e1SNobuhiro Iwamatsu
5278ca805e1SNobuhiro Iwamatsu# Enable functios
5288ca805e1SNobuhiro Iwamatsu# RMII0_MDIO_A , RMII0_MDC_A,
5298ca805e1SNobuhiro Iwamatsu# RMII0_CRS_DV_A, RMII0_RX_ER_A,
5308ca805e1SNobuhiro Iwamatsu# RMII0_TXD_EN_A, MII0_RXD1_A
5318ca805e1SNobuhiro IwamatsuPFC_IPSR4_A:	.long	0xFFFC002C
5328ca805e1SNobuhiro IwamatsuPFC_IPSR4_D:	.long	0x0001B6DB
5338ca805e1SNobuhiro IwamatsuPFC_PMMR_IPSR4:	.long	0xFFFE4924
5348ca805e1SNobuhiro Iwamatsu
5358ca805e1SNobuhiro Iwamatsu# Enable functios
5368ca805e1SNobuhiro Iwamatsu# DACK1, DREQ1, SD1_DAT3_A, SD1_CLK_A, IERX_B,
5378ca805e1SNobuhiro Iwamatsu# IETX_B, TX0_A, RMII0_TXD0_A,
5388ca805e1SNobuhiro Iwamatsu# RMII0_TXD1_A, RMII0_TXD0_A, SDSEL, SDA0, SDA1, SCL1
5398ca805e1SNobuhiro IwamatsuPFC_IPSR11_A:	.long	0xFFFC0048
5408ca805e1SNobuhiro IwamatsuPFC_IPSR11_D:	.long	0x002C89B0
5418ca805e1SNobuhiro IwamatsuPFC_PMMR_IPSR11:.long	0xFFD3764F
5428ca805e1SNobuhiro Iwamatsu
5438ca805e1SNobuhiro IwamatsuPFC_GPSR0_A:	.long	0xFFFC0004
5448ca805e1SNobuhiro IwamatsuPFC_GPSR0_D:	.long	0xFFFFFFFF
5458ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR0:	.long	0x00000000
5468ca805e1SNobuhiro Iwamatsu
5478ca805e1SNobuhiro IwamatsuPFC_GPSR1_A:	.long	0xFFFC0008
5488ca805e1SNobuhiro IwamatsuPFC_GPSR1_D:	.long	0x7FBF7FFF
5498ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR1:	.long	0x80408000
5508ca805e1SNobuhiro Iwamatsu
5518ca805e1SNobuhiro IwamatsuPFC_GPSR2_A:	.long	0xFFFC000C
5528ca805e1SNobuhiro IwamatsuPFC_GPSR2_D:	.long	0xBFC07EDF
5538ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR2:	.long	0x403F8120
5548ca805e1SNobuhiro Iwamatsu
5558ca805e1SNobuhiro IwamatsuPFC_GPSR3_A:	.long	0xFFFC0010
5568ca805e1SNobuhiro IwamatsuPFC_GPSR3_D:	.long	0xFFFFFFFF
5578ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR3:	.long	0x00000000
5588ca805e1SNobuhiro Iwamatsu
5598ca805e1SNobuhiro IwamatsuPFC_GPSR4_A:	.long	0xFFFC0014
5608ca805e1SNobuhiro Iwamatsu#if 0 /* orig */
5618ca805e1SNobuhiro IwamatsuPFC_GPSR4_D:	.long	0xFFFFFFFF
5628ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR4:	.long	0x00000000
5638ca805e1SNobuhiro Iwamatsu#else
5648ca805e1SNobuhiro IwamatsuPFC_GPSR4_D:	.long	0xFBFFFFFF
5658ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR4:	.long	0x04000000
5668ca805e1SNobuhiro Iwamatsu#endif
5678ca805e1SNobuhiro Iwamatsu
5688ca805e1SNobuhiro IwamatsuPFC_GPSR5_A:	.long	0xFFFC0018
5698ca805e1SNobuhiro IwamatsuPFC_GPSR5_D:	.long	0x00000C01
5708ca805e1SNobuhiro IwamatsuPFC_PMMR_GPSR5:	.long	0xFFFFF3FE
5718ca805e1SNobuhiro Iwamatsu
5728ca805e1SNobuhiro IwamatsuI2C_ICCR2_A: .long	0xFFC70001
5738ca805e1SNobuhiro IwamatsuI2C_ICCR2_D: .long	0x00
5748ca805e1SNobuhiro IwamatsuI2C_ICCR2_D1: .long	0x20
5758ca805e1SNobuhiro Iwamatsu
5768ca805e1SNobuhiro IwamatsuGPIO2_INOUTSEL1_A:	.long	0xFFC41004
5778ca805e1SNobuhiro IwamatsuGPIO2_INOUTSEL1_D:	.long	0x80408000
5788ca805e1SNobuhiro IwamatsuGPIO1_OUTDT1_A:		.long	0xFFC41008	/* bit15: LED4, bit22: LED5 */
5798ca805e1SNobuhiro IwamatsuGPIO1_OUTDT1_D:		.long	0x80408000
5808ca805e1SNobuhiro IwamatsuGPIO2_INOUTSEL2_A:	.long	0xFFC42004
5818ca805e1SNobuhiro IwamatsuGPIO2_INOUTSEL2_D:	.long	0x40000120
5828ca805e1SNobuhiro IwamatsuGPIO2_OUTDT2_A:		.long	0xFFC42008
5838ca805e1SNobuhiro IwamatsuGPIO2_OUTDT2_D:		.long	0x40000120
5848ca805e1SNobuhiro IwamatsuGPIO4_INOUTSEL4_A:	.long	0xFFC44004
5858ca805e1SNobuhiro IwamatsuGPIO4_INOUTSEL4_D:	.long	0x04000000
5868ca805e1SNobuhiro IwamatsuGPIO4_OUTDT4_A:		.long	0xFFC44008
5878ca805e1SNobuhiro IwamatsuGPIO4_OUTDT4_D:		.long	0x04000000
5888ca805e1SNobuhiro Iwamatsu
5898ca805e1SNobuhiro IwamatsuCCR_A:	.long	0xFF00001C
5908ca805e1SNobuhiro IwamatsuCCR_D:	.long	0x0000090B
5918ca805e1SNobuhiro IwamatsuSR_MASK_D:	.long	0xEFFFFF0F
592