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