xref: /openbmc/linux/arch/sh/include/mach-kfr2r09/mach/partner-jet-setup.txt (revision 597473720f4dc69749542bfcfed4a927a43d935e)
1*6a0abce4SKuninori MorimotoLIST "SPDX-License-Identifier: GPL-2.0"
22d2bcd31SMagnus DammLIST "partner-jet-setup.txt - 20090729 Magnus Damm"
32d2bcd31SMagnus DammLIST "set up enough of the kfr2r09 hardware to boot the kernel"
42d2bcd31SMagnus Damm
52d2bcd31SMagnus DammLIST "zImage (RAM boot)"
62d2bcd31SMagnus DammLIST "This script can be used to boot the kernel from RAM via JTAG:"
72d2bcd31SMagnus DammLIST "> < partner-jet-setup.txt"
82d2bcd31SMagnus DammLIST "> RD zImage, 0xa8800000"
92d2bcd31SMagnus DammLIST "> G=0xa8800000"
102d2bcd31SMagnus Damm
112d2bcd31SMagnus DammLIST "romImage (Flash boot)"
122d2bcd31SMagnus DammLIST "Use the following command to burn the zImage to flash via JTAG:"
132d2bcd31SMagnus DammLIST "> RD romImage, 0"
142d2bcd31SMagnus Damm
152d2bcd31SMagnus DammLIST "--------------------------------"
162d2bcd31SMagnus Damm
172d2bcd31SMagnus DammLIST "disable watchdog"
182d2bcd31SMagnus DammEW 0xa4520004, 0xa507
192d2bcd31SMagnus Damm
207c328e47SMagnus DammLIST "invalidate instruction cache"
217c328e47SMagnus DammED 0xff00001c, 0x00000800
227c328e47SMagnus Damm
237c328e47SMagnus DammLIST "invalidate TLBs"
247c328e47SMagnus DammED 0xff000010, 0x00000004
257c328e47SMagnus Damm
262d2bcd31SMagnus DammLIST "select mode for cs5 + cs6"
272d2bcd31SMagnus DammED 0xff800020, 0xa5a50001
282d2bcd31SMagnus DammED 0xfec10000, 0x0000001b
292d2bcd31SMagnus Damm
302d2bcd31SMagnus DammLIST "setup clocks"
31bb7001b5SKuninori MorimotoLIST "The PLL and FLL values are updated here for the optimal"
32bb7001b5SKuninori MorimotoLIST "RF frequency and improved reception sensitivity."
332d2bcd31SMagnus DammED 0xa4150004, 0x00000050
342d2bcd31SMagnus DammED 0xa4150000, 0x91053508
352d2bcd31SMagnus DammWAIT 1
367a01be28SKuninori MorimotoED 0xa4150050, 0x00000340
372d2bcd31SMagnus DammED 0xa4150024, 0x00005000
382d2bcd31SMagnus Damm
392d2bcd31SMagnus DammLIST "setup pins"
402d2bcd31SMagnus DammEB 0xa4050120, 0x00
412d2bcd31SMagnus DammEB 0xa4050122, 0x00
422d2bcd31SMagnus DammEB 0xa4050124, 0x00
432d2bcd31SMagnus DammEB 0xa4050126, 0x00
442d2bcd31SMagnus DammEB 0xa4050128, 0xA0
452d2bcd31SMagnus DammEB 0xa405012A, 0x10
462d2bcd31SMagnus DammEB 0xa405012C, 0x00
472d2bcd31SMagnus DammEB 0xa405012E, 0x00
482d2bcd31SMagnus DammEB 0xa4050130, 0x00
492d2bcd31SMagnus DammEB 0xa4050132, 0x00
502d2bcd31SMagnus DammEB 0xa4050134, 0x01
512d2bcd31SMagnus DammEB 0xa4050136, 0x40
522d2bcd31SMagnus DammEB 0xa4050138, 0x00
532d2bcd31SMagnus DammEB 0xa405013A, 0x00
542d2bcd31SMagnus DammEB 0xa405013C, 0x00
552d2bcd31SMagnus DammEB 0xa405013E, 0x20
562d2bcd31SMagnus DammEB 0xa4050160, 0x00
572d2bcd31SMagnus DammEB 0xa4050162, 0x40
582d2bcd31SMagnus DammEB 0xa4050164, 0x03
592d2bcd31SMagnus DammEB 0xa4050166, 0x00
602d2bcd31SMagnus DammEB 0xa4050168, 0x00
612d2bcd31SMagnus DammEB 0xa405016A, 0x00
622d2bcd31SMagnus DammEB 0xa405016C, 0x00
632d2bcd31SMagnus Damm
642d2bcd31SMagnus DammEW 0xa405014E, 0x5660
652d2bcd31SMagnus DammEW 0xa4050150, 0x0145
662d2bcd31SMagnus DammEW 0xa4050152, 0x1550
672d2bcd31SMagnus DammEW 0xa4050154, 0x0200
682d2bcd31SMagnus DammEW 0xa4050156, 0x0040
692d2bcd31SMagnus Damm
702d2bcd31SMagnus DammEW 0xa4050158, 0x0000
712d2bcd31SMagnus DammEW 0xa405015a, 0x0000
722d2bcd31SMagnus DammEW 0xa405015c, 0x0000
732d2bcd31SMagnus DammEW 0xa405015e, 0x0000
742d2bcd31SMagnus Damm
752d2bcd31SMagnus DammEW 0xa4050180, 0x0000
762d2bcd31SMagnus DammEW 0xa4050182, 0x8002
772d2bcd31SMagnus DammEW 0xa4050184, 0x0000
782d2bcd31SMagnus Damm
792d2bcd31SMagnus DammEW 0xa405018a, 0x9991
802d2bcd31SMagnus DammEW 0xa405018c, 0x8011
812d2bcd31SMagnus DammEW 0xa405018e, 0x9550
822d2bcd31SMagnus Damm
832d2bcd31SMagnus DammEW 0xa4050100, 0x0000
842d2bcd31SMagnus DammEW 0xa4050102, 0x5540
852d2bcd31SMagnus DammEW 0xa4050104, 0x0000
862d2bcd31SMagnus DammEW 0xa4050106, 0x0000
872d2bcd31SMagnus DammEW 0xa4050108, 0x4550
882d2bcd31SMagnus DammEW 0xa405010a, 0x0130
892d2bcd31SMagnus DammEW 0xa405010c, 0x0555
902d2bcd31SMagnus DammEW 0xa405010e, 0x0000
912d2bcd31SMagnus DammEW 0xa4050110, 0x0000
922d2bcd31SMagnus DammEW 0xa4050112, 0xAAA8
932d2bcd31SMagnus DammEW 0xa4050114, 0x8305
942d2bcd31SMagnus DammEW 0xa4050116, 0x10F0
952d2bcd31SMagnus DammEW 0xa4050118, 0x0F50
962d2bcd31SMagnus DammEW 0xa405011a, 0x0000
972d2bcd31SMagnus DammEW 0xa405011c, 0x0000
982d2bcd31SMagnus DammEW 0xa405011e, 0x0555
992d2bcd31SMagnus DammEW 0xa4050140, 0x0000
1002d2bcd31SMagnus DammEW 0xa4050142, 0x5141
1012d2bcd31SMagnus DammEW 0xa4050144, 0x5005
1022d2bcd31SMagnus DammEW 0xa4050146, 0xAAA9
1032d2bcd31SMagnus DammEW 0xa4050148, 0xFAA9
1042d2bcd31SMagnus DammEW 0xa405014a, 0x3000
1052d2bcd31SMagnus DammEW 0xa405014c, 0x0000
1062d2bcd31SMagnus Damm
1072d2bcd31SMagnus DammLIST "setup sdram"
1082d2bcd31SMagnus DammED 0xFD000108, 0x40000301
1092d2bcd31SMagnus DammED 0xFD000020, 0x011B0002
1102d2bcd31SMagnus DammED 0xFD000030, 0x03060E02
1112d2bcd31SMagnus DammED 0xFD000034, 0x01020102
1122d2bcd31SMagnus DammED 0xFD000038, 0x01090406
1132d2bcd31SMagnus DammED 0xFD000008, 0x00000004
1142d2bcd31SMagnus DammED 0xFD000040, 0x00000001
1152d2bcd31SMagnus DammED 0xFD000040, 0x00000000
1162d2bcd31SMagnus DammED 0xFD000018, 0x00000001
1172d2bcd31SMagnus Damm
1182d2bcd31SMagnus DammWAIT 1
1192d2bcd31SMagnus Damm
1202d2bcd31SMagnus DammED 0xFD000014, 0x00000002
1212d2bcd31SMagnus DammED 0xFD000060, 0x00000032
1222d2bcd31SMagnus DammED 0xFD000060, 0x00020000
1232d2bcd31SMagnus DammED 0xFD000014, 0x00000004
1242d2bcd31SMagnus DammED 0xFD000014, 0x00000004
1252d2bcd31SMagnus DammED 0xFD000010, 0x00000001
1262d2bcd31SMagnus DammED 0xFD000044, 0x000004AF
1272d2bcd31SMagnus DammED 0xFD000048, 0x20CF0037
1282d2bcd31SMagnus Damm
1292d2bcd31SMagnus DammLIST "read 16 bytes from sdram"
1302d2bcd31SMagnus DammDD 0xa8000000, 0xa8000000, 1
1312d2bcd31SMagnus DammDD 0xa8000004, 0xa8000004, 1
1322d2bcd31SMagnus DammDD 0xa8000008, 0xa8000008, 1
1332d2bcd31SMagnus DammDD 0xa800000c, 0xa800000c, 1
1342d2bcd31SMagnus Damm
1352d2bcd31SMagnus DammED 0xFD000014, 0x00000002
1362d2bcd31SMagnus DammED 0xFD000014, 0x00000004
1372d2bcd31SMagnus DammED 0xFD000108, 0x40000300
1382d2bcd31SMagnus DammED 0xFD000040, 0x00010000
1392d2bcd31SMagnus Damm
1402d2bcd31SMagnus DammLIST "write to internal ram"
1412d2bcd31SMagnus DammED 0xfd8007fc, 0
1422d2bcd31SMagnus Damm
1432d2bcd31SMagnus DammLIST "setup cache"
1442d2bcd31SMagnus DammED 0xff00001c, 0x0000090b
145