1LIST "SPDX-License-Identifier: GPL-2.0"
2LIST "partner-jet-setup.txt"
3LIST "(C) Copyright 2009 Renesas Solutions Corp"
4LIST "Kuninori Morimoto <morimoto.kuninori@renesas.com>"
5LIST "--------------------------------"
6LIST "zImage (RAM boot)"
7LIST "This script can be used to boot the kernel from RAM via JTAG:"
8LIST "> < partner-jet-setup.txt"
9LIST "> RD zImage, 0xa8800000"
10LIST "> G=0xa8800000"
11LIST "--------------------------------"
12LIST "romImage (Flash boot)"
13LIST "Use the following command to burn the zImage to flash via JTAG:"
14LIST "> RD romImage, 0"
15LIST "--------------------------------"
16
17LIST "disable watchdog"
18EW 0xa4520004, 0xa507
19
20LIST "MMU"
21ED 0xff000010, 0x00000004
22
23LIST "setup clocks"
24ED 0xa4150024, 0x00004000
25ED 0xa4150000, 0x8E003508
26
27WAIT 1
28
29LIST "BSC"
30ED 0xff800020, 0xa5a50000
31ED 0xfec10000, 0x00001013
32ED 0xfec10004, 0x11110400
33ED 0xfec10024, 0x00000440
34
35WAIT 1
36
37LIST "setup sdram"
38ED 0xfd000108, 0x00000181
39ED 0xfd000020, 0x015B0002
40ED 0xfd000030, 0x03061502
41ED 0xfd000034, 0x02020102
42ED 0xfd000038, 0x01090305
43ED 0xfd00003c, 0x00000002
44ED 0xfd000008, 0x00000005
45ED 0xfd000018, 0x00000001
46
47WAIT 1
48
49ED 0xfd000014, 0x00000002
50ED 0xfd000060, 0x00020000
51ED 0xfd000060, 0x00030000
52ED 0xfd000060, 0x00010040
53ED 0xfd000060, 0x00000532
54ED 0xfd000014, 0x00000002
55ED 0xfd000014, 0x00000004
56ED 0xfd000014, 0x00000004
57ED 0xfd000060, 0x00000432
58ED 0xfd000060, 0x000103C0
59ED 0xfd000060, 0x00010040
60
61WAIT 1
62
63ED 0xfd000010, 0x00000001
64ED 0xfd000044, 0x00000613
65ED 0xfd000048, 0x238C003A
66ED 0xfd000014, 0x00000002
67
68LIST "Dummy read"
69DD 0x0c400000, 0x0c400000
70
71ED 0xfd000014, 0x00000002
72ED 0xfd000014, 0x00000004
73ED 0xfd000108, 0x00000080
74ED 0xfd000040, 0x00010000
75
76WAIT 1
77
78LIST "setup cache"
79ED 0xff00001c, 0x0000090b
80
81LIST "disable USB"
82EW 0xA4D80000, 0x0000
83