Commit 17bef68097ab3692500a36fb31115bff7910aa99

Authored by Niklaus Giger
Committed by Stefan Roese
1 parent 5dd372a23d

ppc_4xx: Fix post spr.c for PPC405

post/cpu/ppc4xx/spr.c contained a few checks for registers only present
for PPC440 and derivates processor.

Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

post/cpu/ppc4xx/spr.c
... ... @@ -80,7 +80,9 @@
80 80 {0x107, "SPRG7", 0x00000000, 0x00000000},
81 81 {0x10c, "TBL", 0x00000000, 0x00000000},
82 82 {0x10d, "TBU", 0x00000000, 0x00000000},
  83 +#ifdef CONFIG_440
83 84 {0x11e, "PIR", 0x0000000f, 0x00000000},
  85 +#endif
84 86 {0x130, "DBSR", 0x00000000, 0x00000000},
85 87 {0x134, "DBCR0", 0x00000000, 0x00000000},
86 88 {0x135, "DBCR1", 0x00000000, 0x00000000},
... ... @@ -95,6 +97,7 @@
95 97 {0x13f, "DVC2", 0x00000000, 0x00000000},
96 98 {0x150, "TSR", 0x00000000, 0x00000000},
97 99 {0x154, "TCR", 0x00000000, 0x00000000},
  100 +#ifdef CONFIG_440
98 101 {0x190, "IVOR0", 0x0000fff0, 0x00000100},
99 102 {0x191, "IVOR1", 0x0000fff0, 0x00000200},
100 103 {0x192, "IVOR2", 0x0000fff0, 0x00000300},
... ... @@ -111,6 +114,7 @@
111 114 {0x19d, "IVOR13", 0x0000fff0, 0x00001300},
112 115 {0x19e, "IVOR14", 0x0000fff0, 0x00001400},
113 116 {0x19f, "IVOR15", 0x0000fff0, 0x00002000},
  117 +#endif
114 118 {0x23a, "MCSRR0", 0x00000000, 0x00000000},
115 119 {0x23b, "MCSRR1", 0x00000000, 0x00000000},
116 120 {0x23c, "MCSR", 0x00000000, 0x00000000},
117 121  
... ... @@ -131,8 +135,10 @@
131 135 {0x395, "DTV1", 0x00000000, 0x00000000},
132 136 {0x396, "DTV2", 0x00000000, 0x00000000},
133 137 {0x397, "DTV3", 0x00000000, 0x00000000},
  138 +#ifdef CONFIG_440
134 139 {0x398, "DVLIM", 0x0fc1f83f, 0x0001f800},
135 140 {0x399, "IVLIM", 0x0fc1f83f, 0x0001f800},
  141 +#endif
136 142 {0x39b, "RSTCFG", 0x00000000, 0x00000000},
137 143 {0x39c, "DCDBTRL", 0x00000000, 0x00000000},
138 144 {0x39d, "DCDBTRH", 0x00000000, 0x00000000},