diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-13 20:34:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-13 20:34:23 -0500 |
commit | f90203e0cf0d5a8b027d511af318bb3db4758fe2 (patch) | |
tree | d2d9157331857b4220198e053e30ce3427c5140e | |
parent | 33e563c1190c26b6bf61990c505cdcb5cdbba7e4 (diff) | |
parent | 719c91ccadd3ed26570dbb29d54166914832eee9 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc
* master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc: (61 commits)
[POWERPC] Use udbg_early_init() on ppc32
[POWERPC] Open Firmware serial port driver
[POWERPC] Move MPIC smp routines into mpic.c
[POWERPC] Cleanup pseries kexec code
[POWERPC] Cleanup pseries smp initialisation code
[POWERPC] Consolidate pseries platform header files into pseries.h
[POWERPC] 85xx: Drop use of SYNC macro in head_fsl_booke.S
[POWERPC] cell: pm_rtas_activat_signals routine cleanup
[POWERPC] cell: PPU Oprofile cleanup patch
[POWERPC] spufs: avoid accessing kernel memory through mmapped /mem node
[POWERPC] spu sched: static timeslicing for SCHED_RR contexts
[POWERPC] spu sched: use DECLARE_BITMAP
[POWERPC] spu sched: forced preemption at execution
[POWERPC] spu sched: update some comments
[POWERPC] spu sched: simplity spu_remove_from_active_list
[POWERPC] spufs: optimize spu_run
[POWERPC] spufs: runqueue simplification
[POWERPC] spufs: move prio to spu_context
[POWERPC] spufs: state_mutex cleanup
[POWERPC] spufs: simplify state_mutex
...
104 files changed, 8495 insertions, 1473 deletions
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt index 33994271cb3b..3b514672b80e 100644 --- a/Documentation/powerpc/booting-without-of.txt +++ b/Documentation/powerpc/booting-without-of.txt | |||
@@ -1334,6 +1334,9 @@ platforms are moved over to use the flattened-device-tree model. | |||
1334 | fsl-usb2-mph compatible controllers. Either this property or | 1334 | fsl-usb2-mph compatible controllers. Either this property or |
1335 | "port0" (or both) must be defined for "fsl-usb2-mph" compatible | 1335 | "port0" (or both) must be defined for "fsl-usb2-mph" compatible |
1336 | controllers. | 1336 | controllers. |
1337 | - dr_mode : indicates the working mode for "fsl-usb2-dr" compatible | ||
1338 | controllers. Can be "host", "peripheral", or "otg". Default to | ||
1339 | "host" if not defined for backward compatibility. | ||
1337 | 1340 | ||
1338 | Recommended properties : | 1341 | Recommended properties : |
1339 | - interrupts : <a b> where a is the interrupt number and b is a | 1342 | - interrupts : <a b> where a is the interrupt number and b is a |
@@ -1367,6 +1370,7 @@ platforms are moved over to use the flattened-device-tree model. | |||
1367 | #size-cells = <0>; | 1370 | #size-cells = <0>; |
1368 | interrupt-parent = <700>; | 1371 | interrupt-parent = <700>; |
1369 | interrupts = <26 1>; | 1372 | interrupts = <26 1>; |
1373 | dr_mode = "otg"; | ||
1370 | phy = "ulpi"; | 1374 | phy = "ulpi"; |
1371 | }; | 1375 | }; |
1372 | 1376 | ||
diff --git a/Documentation/powerpc/mpc52xx-device-tree-bindings.txt b/Documentation/powerpc/mpc52xx-device-tree-bindings.txt index 69f016f02bb0..e59fcbbe338c 100644 --- a/Documentation/powerpc/mpc52xx-device-tree-bindings.txt +++ b/Documentation/powerpc/mpc52xx-device-tree-bindings.txt | |||
@@ -1,7 +1,7 @@ | |||
1 | MPC52xx Device Tree Bindings | 1 | MPC5200 Device Tree Bindings |
2 | ---------------------------- | 2 | ---------------------------- |
3 | 3 | ||
4 | (c) 2006 Secret Lab Technologies Ltd | 4 | (c) 2006-2007 Secret Lab Technologies Ltd |
5 | Grant Likely <grant.likely at secretlab.ca> | 5 | Grant Likely <grant.likely at secretlab.ca> |
6 | 6 | ||
7 | ********** DRAFT *********** | 7 | ********** DRAFT *********** |
@@ -20,11 +20,11 @@ described in Documentation/powerpc/booting-without-of.txt), or passed | |||
20 | by Open Firmare (IEEE 1275) compatible firmware using an OF compatible | 20 | by Open Firmare (IEEE 1275) compatible firmware using an OF compatible |
21 | client interface API. | 21 | client interface API. |
22 | 22 | ||
23 | This document specifies the requirements on the device-tree for mpc52xx | 23 | This document specifies the requirements on the device-tree for mpc5200 |
24 | based boards. These requirements are above and beyond the details | 24 | based boards. These requirements are above and beyond the details |
25 | specified in either the OpenFirmware spec or booting-without-of.txt | 25 | specified in either the OpenFirmware spec or booting-without-of.txt |
26 | 26 | ||
27 | All new mpc52xx-based boards are expected to match this document. In | 27 | All new mpc5200-based boards are expected to match this document. In |
28 | cases where this document is not sufficient to support a new board port, | 28 | cases where this document is not sufficient to support a new board port, |
29 | this document should be updated as part of adding the new board support. | 29 | this document should be updated as part of adding the new board support. |
30 | 30 | ||
@@ -32,26 +32,26 @@ II - Philosophy | |||
32 | =============== | 32 | =============== |
33 | The core of this document is naming convention. The whole point of | 33 | The core of this document is naming convention. The whole point of |
34 | defining this convention is to reduce or eliminate the number of | 34 | defining this convention is to reduce or eliminate the number of |
35 | special cases required to support a 52xx board. If all 52xx boards | 35 | special cases required to support a 5200 board. If all 5200 boards |
36 | follow the same convention, then generic 52xx support code will work | 36 | follow the same convention, then generic 5200 support code will work |
37 | rather than coding special cases for each new board. | 37 | rather than coding special cases for each new board. |
38 | 38 | ||
39 | This section tries to capture the thought process behind why the naming | 39 | This section tries to capture the thought process behind why the naming |
40 | convention is what it is. | 40 | convention is what it is. |
41 | 41 | ||
42 | 1. Node names | 42 | 1. names |
43 | ------------- | 43 | --------- |
44 | There is strong convention/requirements already established for children | 44 | There is strong convention/requirements already established for children |
45 | of the root node. 'cpus' describes the processor cores, 'memory' | 45 | of the root node. 'cpus' describes the processor cores, 'memory' |
46 | describes memory, and 'chosen' provides boot configuration. Other nodes | 46 | describes memory, and 'chosen' provides boot configuration. Other nodes |
47 | are added to describe devices attached to the processor local bus. | 47 | are added to describe devices attached to the processor local bus. |
48 | |||
48 | Following convention already established with other system-on-chip | 49 | Following convention already established with other system-on-chip |
49 | processors, MPC52xx boards must have an 'soc5200' node as a child of the | 50 | processors, 5200 device trees should use the name 'soc5200' for the |
50 | root node. | 51 | parent node of on chip devices, and the root node should be its parent. |
51 | 52 | ||
52 | The soc5200 node holds child nodes for all on chip devices. Child nodes | 53 | Child nodes are typically named after the configured function. ie. |
53 | are typically named after the configured function. ie. the FEC node is | 54 | the FEC node is named 'ethernet', and a PSC in uart mode is named 'serial'. |
54 | named 'ethernet', and a PSC in uart mode is named 'serial'. | ||
55 | 55 | ||
56 | 2. device_type property | 56 | 2. device_type property |
57 | ----------------------- | 57 | ----------------------- |
@@ -66,28 +66,47 @@ exactly. | |||
66 | Since device_type isn't enough to match devices to drivers, there also | 66 | Since device_type isn't enough to match devices to drivers, there also |
67 | needs to be a naming convention for the compatible property. Compatible | 67 | needs to be a naming convention for the compatible property. Compatible |
68 | is an list of device descriptions sorted from specific to generic. For | 68 | is an list of device descriptions sorted from specific to generic. For |
69 | the mpc52xx, the required format for each compatible value is | 69 | the mpc5200, the required format for each compatible value is |
70 | <chip>-<device>[-<mode>]. At the minimum, the list shall contain two | 70 | <chip>-<device>[-<mode>]. The OS should be able to match a device driver |
71 | items; the first specifying the exact chip, and the second specifying | 71 | to the device based solely on the compatible value. If two drivers |
72 | mpc52xx for the chip. | 72 | match on the compatible list; the 'most compatible' driver should be |
73 | 73 | selected. | |
74 | ie. ethernet on mpc5200b: compatible = "mpc5200b-ethernet\0mpc52xx-ethernet" | 74 | |
75 | 75 | The split between the MPC5200 and the MPC5200B leaves a bit of a | |
76 | The idea here is that most drivers will match to the most generic field | 76 | connundrum. How should the compatible property be set up to provide |
77 | in the compatible list (mpc52xx-*), but can also test the more specific | 77 | maximum compatability information; but still acurately describe the |
78 | field for enabling bug fixes or extra features. | 78 | chip? For the MPC5200; the answer is easy. Most of the SoC devices |
79 | originally appeared on the MPC5200. Since they didn't exist anywhere | ||
80 | else; the 5200 compatible properties will contain only one item; | ||
81 | "mpc5200-<device>". | ||
82 | |||
83 | The 5200B is almost the same as the 5200, but not quite. It fixes | ||
84 | silicon bugs and it adds a small number of enhancements. Most of the | ||
85 | devices either provide exactly the same interface as on the 5200. A few | ||
86 | devices have extra functions but still have a backwards compatible mode. | ||
87 | To express this infomation as completely as possible, 5200B device trees | ||
88 | should have two items in the compatible list; | ||
89 | "mpc5200b-<device>\0mpc5200-<device>". It is *strongly* recommended | ||
90 | that 5200B device trees follow this convention (instead of only listing | ||
91 | the base mpc5200 item). | ||
92 | |||
93 | If another chip appear on the market with one of the mpc5200 SoC | ||
94 | devices, then the compatible list should include mpc5200-<device>. | ||
95 | |||
96 | ie. ethernet on mpc5200: compatible = "mpc5200-ethernet" | ||
97 | ethernet on mpc5200b: compatible = "mpc5200b-ethernet\0mpc5200-ethernet" | ||
79 | 98 | ||
80 | Modal devices, like PSCs, also append the configured function to the | 99 | Modal devices, like PSCs, also append the configured function to the |
81 | end of the compatible field. ie. A PSC in i2s mode would specify | 100 | end of the compatible field. ie. A PSC in i2s mode would specify |
82 | "mpc52xx-psc-i2s", not "mpc52xx-i2s". This convention is chosen to | 101 | "mpc5200-psc-i2s", not "mpc5200-i2s". This convention is chosen to |
83 | avoid naming conflicts with non-psc devices providing the same | 102 | avoid naming conflicts with non-psc devices providing the same |
84 | function. For example, "mpc52xx-spi" and "mpc52xx-psc-spi" describe | 103 | function. For example, "mpc5200-spi" and "mpc5200-psc-spi" describe |
85 | the mpc5200 simple spi device and a PSC spi mode respectively. | 104 | the mpc5200 simple spi device and a PSC spi mode respectively. |
86 | 105 | ||
87 | If the soc device is more generic and present on other SOCs, the | 106 | If the soc device is more generic and present on other SOCs, the |
88 | compatible property can specify the more generic device type also. | 107 | compatible property can specify the more generic device type also. |
89 | 108 | ||
90 | ie. mscan: compatible = "mpc5200-mscan\0mpc52xx-mscan\0fsl,mscan"; | 109 | ie. mscan: compatible = "mpc5200-mscan\0fsl,mscan"; |
91 | 110 | ||
92 | At the time of writing, exact chip may be either 'mpc5200' or | 111 | At the time of writing, exact chip may be either 'mpc5200' or |
93 | 'mpc5200b'. | 112 | 'mpc5200b'. |
@@ -96,7 +115,7 @@ Device drivers should always try to match as generically as possible. | |||
96 | 115 | ||
97 | III - Structure | 116 | III - Structure |
98 | =============== | 117 | =============== |
99 | The device tree for an mpc52xx board follows the structure defined in | 118 | The device tree for an mpc5200 board follows the structure defined in |
100 | booting-without-of.txt with the following additional notes: | 119 | booting-without-of.txt with the following additional notes: |
101 | 120 | ||
102 | 0) the root node | 121 | 0) the root node |
@@ -115,7 +134,7 @@ Typical memory description node; see booting-without-of. | |||
115 | 134 | ||
116 | 3) The soc5200 node | 135 | 3) The soc5200 node |
117 | ------------------- | 136 | ------------------- |
118 | This node describes the on chip SOC peripherals. Every mpc52xx based | 137 | This node describes the on chip SOC peripherals. Every mpc5200 based |
119 | board will have this node, and as such there is a common naming | 138 | board will have this node, and as such there is a common naming |
120 | convention for SOC devices. | 139 | convention for SOC devices. |
121 | 140 | ||
@@ -125,71 +144,111 @@ name type description | |||
125 | device_type string must be "soc" | 144 | device_type string must be "soc" |
126 | ranges int should be <0 baseaddr baseaddr+10000> | 145 | ranges int should be <0 baseaddr baseaddr+10000> |
127 | reg int must be <baseaddr 10000> | 146 | reg int must be <baseaddr 10000> |
147 | compatible string mpc5200: "mpc5200-soc" | ||
148 | mpc5200b: "mpc5200b-soc\0mpc5200-soc" | ||
149 | system-frequency int Fsystem frequency; source of all | ||
150 | other clocks. | ||
151 | bus-frequency int IPB bus frequency in HZ. Clock rate | ||
152 | used by most of the soc devices. | ||
153 | #interrupt-cells int must be <3>. | ||
128 | 154 | ||
129 | Recommended properties: | 155 | Recommended properties: |
130 | name type description | 156 | name type description |
131 | ---- ---- ----------- | 157 | ---- ---- ----------- |
132 | compatible string should be "<chip>-soc\0mpc52xx-soc" | 158 | model string Exact model of the chip; |
133 | ie. "mpc5200b-soc\0mpc52xx-soc" | 159 | ie: model="fsl,mpc5200" |
134 | #interrupt-cells int must be <3>. If it is not defined | 160 | revision string Silicon revision of chip |
135 | here then it must be defined in every | 161 | ie: revision="M08A" |
136 | soc device node. | 162 | |
137 | bus-frequency int IPB bus frequency in HZ. Clock rate | 163 | The 'model' and 'revision' properties are *strongly* recommended. Having |
138 | used by most of the soc devices. | 164 | them presence acts as a bit of a safety net for working around as yet |
139 | Defining it here avoids needing it | 165 | undiscovered bugs on one version of silicon. For example, device drivers |
140 | added to every device node. | 166 | can use the model and revision properties to decide if a bug fix should |
167 | be turned on. | ||
141 | 168 | ||
142 | 4) soc5200 child nodes | 169 | 4) soc5200 child nodes |
143 | ---------------------- | 170 | ---------------------- |
144 | Any on chip SOC devices available to Linux must appear as soc5200 child nodes. | 171 | Any on chip SOC devices available to Linux must appear as soc5200 child nodes. |
145 | 172 | ||
146 | Note: in the tables below, '*' matches all <chip> values. ie. | 173 | Note: The tables below show the value for the mpc5200. A mpc5200b device |
147 | *-pic would translate to "mpc5200-pic\0mpc52xx-pic" | 174 | tree should use the "mpc5200b-<device>\0mpc5200-<device> form. |
148 | 175 | ||
149 | Required soc5200 child nodes: | 176 | Required soc5200 child nodes: |
150 | name device_type compatible Description | 177 | name device_type compatible Description |
151 | ---- ----------- ---------- ----------- | 178 | ---- ----------- ---------- ----------- |
152 | cdm@<addr> cdm *-cmd Clock Distribution | 179 | cdm@<addr> cdm mpc5200-cmd Clock Distribution |
153 | pic@<addr> interrupt-controller *-pic need an interrupt | 180 | pic@<addr> interrupt-controller mpc5200-pic need an interrupt |
154 | controller to boot | 181 | controller to boot |
155 | bestcomm@<addr> dma-controller *-bestcomm 52xx pic also requires | 182 | bestcomm@<addr> dma-controller mpc5200-bestcomm 5200 pic also requires |
156 | the bestcomm device | 183 | the bestcomm device |
157 | 184 | ||
158 | Recommended soc5200 child nodes; populate as needed for your board | 185 | Recommended soc5200 child nodes; populate as needed for your board |
159 | name device_type compatible Description | 186 | name device_type compatible Description |
160 | ---- ----------- ---------- ----------- | 187 | ---- ----------- ---------- ----------- |
161 | gpt@<addr> gpt *-gpt General purpose timers | 188 | gpt@<addr> gpt mpc5200-gpt General purpose timers |
162 | rtc@<addr> rtc *-rtc Real time clock | 189 | rtc@<addr> rtc mpc5200-rtc Real time clock |
163 | mscan@<addr> mscan *-mscan CAN bus controller | 190 | mscan@<addr> mscan mpc5200-mscan CAN bus controller |
164 | pci@<addr> pci *-pci PCI bridge | 191 | pci@<addr> pci mpc5200-pci PCI bridge |
165 | serial@<addr> serial *-psc-uart PSC in serial mode | 192 | serial@<addr> serial mpc5200-psc-uart PSC in serial mode |
166 | i2s@<addr> sound *-psc-i2s PSC in i2s mode | 193 | i2s@<addr> sound mpc5200-psc-i2s PSC in i2s mode |
167 | ac97@<addr> sound *-psc-ac97 PSC in ac97 mode | 194 | ac97@<addr> sound mpc5200-psc-ac97 PSC in ac97 mode |
168 | spi@<addr> spi *-psc-spi PSC in spi mode | 195 | spi@<addr> spi mpc5200-psc-spi PSC in spi mode |
169 | irda@<addr> irda *-psc-irda PSC in IrDA mode | 196 | irda@<addr> irda mpc5200-psc-irda PSC in IrDA mode |
170 | spi@<addr> spi *-spi MPC52xx spi device | 197 | spi@<addr> spi mpc5200-spi MPC5200 spi device |
171 | ethernet@<addr> network *-fec MPC52xx ethernet device | 198 | ethernet@<addr> network mpc5200-fec MPC5200 ethernet device |
172 | ata@<addr> ata *-ata IDE ATA interface | 199 | ata@<addr> ata mpc5200-ata IDE ATA interface |
173 | i2c@<addr> i2c *-i2c I2C controller | 200 | i2c@<addr> i2c mpc5200-i2c I2C controller |
174 | usb@<addr> usb-ohci-be *-ohci,ohci-be USB controller | 201 | usb@<addr> usb-ohci-be mpc5200-ohci,ohci-be USB controller |
175 | xlb@<addr> xlb *-xlb XLB arbritrator | 202 | xlb@<addr> xlb mpc5200-xlb XLB arbritrator |
203 | |||
204 | Important child node properties | ||
205 | name type description | ||
206 | ---- ---- ----------- | ||
207 | cell-index int When multiple devices are present, is the | ||
208 | index of the device in the hardware (ie. There | ||
209 | are 6 PSC on the 5200 numbered PSC1 to PSC6) | ||
210 | PSC1 has 'cell-index = <0>' | ||
211 | PSC4 has 'cell-index = <3>' | ||
212 | |||
213 | 5) General Purpose Timer nodes (child of soc5200 node) | ||
214 | On the mpc5200 and 5200b, GPT0 has a watchdog timer function. If the board | ||
215 | design supports the internal wdt, then the device node for GPT0 should | ||
216 | include the empty property 'has-wdt'. | ||
217 | |||
218 | 6) PSC nodes (child of soc5200 node) | ||
219 | PSC nodes can define the optional 'port-number' property to force assignment | ||
220 | order of serial ports. For example, PSC5 might be physically connected to | ||
221 | the port labeled 'COM1' and PSC1 wired to 'COM1'. In this case, PSC5 would | ||
222 | have a "port-number = <0>" property, and PSC1 would have "port-number = <1>". | ||
223 | |||
224 | PSC in i2s mode: The mpc5200 and mpc5200b PSCs are not compatible when in | ||
225 | i2s mode. An 'mpc5200b-psc-i2s' node cannot include 'mpc5200-psc-i2s' in the | ||
226 | compatible field. | ||
176 | 227 | ||
177 | IV - Extra Notes | 228 | IV - Extra Notes |
178 | ================ | 229 | ================ |
179 | 230 | ||
180 | 1. Interrupt mapping | 231 | 1. Interrupt mapping |
181 | -------------------- | 232 | -------------------- |
182 | The mpc52xx pic driver splits hardware IRQ numbers into two levels. The | 233 | The mpc5200 pic driver splits hardware IRQ numbers into two levels. The |
183 | split reflects the layout of the PIC hardware itself, which groups | 234 | split reflects the layout of the PIC hardware itself, which groups |
184 | interrupts into one of three groups; CRIT, MAIN or PERP. Also, the | 235 | interrupts into one of three groups; CRIT, MAIN or PERP. Also, the |
185 | Bestcomm dma engine has it's own set of interrupt sources which are | 236 | Bestcomm dma engine has it's own set of interrupt sources which are |
186 | cascaded off of peripheral interrupt 0, which the driver interprets as a | 237 | cascaded off of peripheral interrupt 0, which the driver interprets as a |
187 | fourth group, SDMA. | 238 | fourth group, SDMA. |
188 | 239 | ||
189 | The interrupts property for device nodes using the mpc52xx pic consists | 240 | The interrupts property for device nodes using the mpc5200 pic consists |
190 | of three cells; <L1 L2 level> | 241 | of three cells; <L1 L2 level> |
191 | 242 | ||
192 | L1 := [CRIT=0, MAIN=1, PERP=2, SDMA=3] | 243 | L1 := [CRIT=0, MAIN=1, PERP=2, SDMA=3] |
193 | L2 := interrupt number; directly mapped from the value in the | 244 | L2 := interrupt number; directly mapped from the value in the |
194 | "ICTL PerStat, MainStat, CritStat Encoded Register" | 245 | "ICTL PerStat, MainStat, CritStat Encoded Register" |
195 | level := [LEVEL_HIGH=0, EDGE_RISING=1, EDGE_FALLING=2, LEVEL_LOW=3] | 246 | level := [LEVEL_HIGH=0, EDGE_RISING=1, EDGE_FALLING=2, LEVEL_LOW=3] |
247 | |||
248 | 2. Shared registers | ||
249 | ------------------- | ||
250 | Some SoC devices share registers between them. ie. the i2c devices use | ||
251 | a single clock control register, and almost all device are affected by | ||
252 | the port_config register. Devices which need to manipulate shared regs | ||
253 | should look to the parent SoC node. The soc node is responsible | ||
254 | for arbitrating all shared register access. | ||
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 0088c5ebca78..340d9beab6d1 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -876,7 +876,7 @@ config ARCH_SPARSEMEM_ENABLE | |||
876 | 876 | ||
877 | config ARCH_SPARSEMEM_DEFAULT | 877 | config ARCH_SPARSEMEM_DEFAULT |
878 | def_bool y | 878 | def_bool y |
879 | depends on (SMP && PPC_PSERIES) || PPC_CELL | 879 | depends on (SMP && PPC_PSERIES) || PPC_PS3 |
880 | 880 | ||
881 | config ARCH_POPULATES_NODE_MAP | 881 | config ARCH_POPULATES_NODE_MAP |
882 | def_bool y | 882 | def_bool y |
diff --git a/arch/powerpc/boot/dts/kuroboxHD.dts b/arch/powerpc/boot/dts/kuroboxHD.dts new file mode 100644 index 000000000000..096e94ac415f --- /dev/null +++ b/arch/powerpc/boot/dts/kuroboxHD.dts | |||
@@ -0,0 +1,148 @@ | |||
1 | /* | ||
2 | * Device Tree Souce for Buffalo KuroboxHD | ||
3 | * | ||
4 | * Choose CONFIG_LINKSTATION to build a kernel for KuroboxHD, or use | ||
5 | * the default configuration linkstation_defconfig. | ||
6 | * | ||
7 | * Based on sandpoint.dts | ||
8 | * | ||
9 | * 2006 (c) G. Liakhovetski <g.liakhovetski@gmx.de> | ||
10 | * | ||
11 | * This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | |||
16 | XXXX add flash parts, rtc, ?? | ||
17 | |||
18 | build with: "dtc -f -I dts -O dtb -o kuroboxHD.dtb -V 16 kuroboxHD.dts" | ||
19 | |||
20 | |||
21 | */ | ||
22 | |||
23 | / { | ||
24 | linux,phandle = <1000>; | ||
25 | model = "KuroboxHD"; | ||
26 | compatible = "linkstation"; | ||
27 | #address-cells = <1>; | ||
28 | #size-cells = <1>; | ||
29 | |||
30 | cpus { | ||
31 | linux,phandle = <2000>; | ||
32 | #cpus = <1>; | ||
33 | #address-cells = <1>; | ||
34 | #size-cells = <0>; | ||
35 | |||
36 | PowerPC,603e { /* Really 8241 */ | ||
37 | linux,phandle = <2100>; | ||
38 | linux,boot-cpu; | ||
39 | device_type = "cpu"; | ||
40 | reg = <0>; | ||
41 | clock-frequency = <bebc200>; /* Fixed by bootwrapper */ | ||
42 | timebase-frequency = <1743000>; /* Fixed by bootwrapper */ | ||
43 | bus-frequency = <0>; /* From bootloader */ | ||
44 | /* Following required by dtc but not used */ | ||
45 | i-cache-line-size = <0>; | ||
46 | d-cache-line-size = <0>; | ||
47 | i-cache-size = <4000>; | ||
48 | d-cache-size = <4000>; | ||
49 | }; | ||
50 | }; | ||
51 | |||
52 | memory { | ||
53 | linux,phandle = <3000>; | ||
54 | device_type = "memory"; | ||
55 | reg = <00000000 04000000>; | ||
56 | }; | ||
57 | |||
58 | soc10x { /* AFAICT need to make soc for 8245's uarts to be defined */ | ||
59 | linux,phandle = <4000>; | ||
60 | #address-cells = <1>; | ||
61 | #size-cells = <1>; | ||
62 | #interrupt-cells = <2>; | ||
63 | device_type = "soc"; | ||
64 | compatible = "mpc10x"; | ||
65 | store-gathering = <0>; /* 0 == off, !0 == on */ | ||
66 | reg = <80000000 00100000>; | ||
67 | ranges = <80000000 80000000 70000000 /* pci mem space */ | ||
68 | fc000000 fc000000 00100000 /* EUMB */ | ||
69 | fe000000 fe000000 00c00000 /* pci i/o space */ | ||
70 | fec00000 fec00000 00300000 /* pci cfg regs */ | ||
71 | fef00000 fef00000 00100000>; /* pci iack */ | ||
72 | |||
73 | i2c@80003000 { | ||
74 | linux,phandle = <4300>; | ||
75 | device_type = "i2c"; | ||
76 | compatible = "fsl-i2c"; | ||
77 | reg = <80003000 1000>; | ||
78 | interrupts = <5 2>; | ||
79 | interrupt-parent = <4400>; | ||
80 | }; | ||
81 | |||
82 | serial@80004500 { | ||
83 | linux,phandle = <4511>; | ||
84 | device_type = "serial"; | ||
85 | compatible = "ns16550"; | ||
86 | reg = <80004500 8>; | ||
87 | clock-frequency = <5d08d88>; | ||
88 | current-speed = <2580>; | ||
89 | interrupts = <9 2>; | ||
90 | interrupt-parent = <4400>; | ||
91 | }; | ||
92 | |||
93 | serial@80004600 { | ||
94 | linux,phandle = <4512>; | ||
95 | device_type = "serial"; | ||
96 | compatible = "ns16550"; | ||
97 | reg = <80004600 8>; | ||
98 | clock-frequency = <5d08d88>; | ||
99 | current-speed = <e100>; | ||
100 | interrupts = <a 0>; | ||
101 | interrupt-parent = <4400>; | ||
102 | }; | ||
103 | |||
104 | pic@80040000 { | ||
105 | linux,phandle = <4400>; | ||
106 | #interrupt-cells = <2>; | ||
107 | #address-cells = <0>; | ||
108 | device_type = "open-pic"; | ||
109 | compatible = "chrp,open-pic"; | ||
110 | interrupt-controller; | ||
111 | reg = <80040000 40000>; | ||
112 | built-in; | ||
113 | }; | ||
114 | |||
115 | pci@fec00000 { | ||
116 | linux,phandle = <4500>; | ||
117 | #address-cells = <3>; | ||
118 | #size-cells = <2>; | ||
119 | #interrupt-cells = <1>; | ||
120 | device_type = "pci"; | ||
121 | compatible = "mpc10x-pci"; | ||
122 | reg = <fec00000 400000>; | ||
123 | ranges = <01000000 0 0 fe000000 0 00c00000 | ||
124 | 02000000 0 80000000 80000000 0 70000000>; | ||
125 | bus-range = <0 ff>; | ||
126 | clock-frequency = <7f28155>; | ||
127 | interrupt-parent = <4400>; | ||
128 | interrupt-map-mask = <f800 0 0 7>; | ||
129 | interrupt-map = < | ||
130 | /* IDSEL 0x11 - IRQ0 ETH */ | ||
131 | 5800 0 0 1 4400 0 1 | ||
132 | 5800 0 0 2 4400 1 1 | ||
133 | 5800 0 0 3 4400 2 1 | ||
134 | 5800 0 0 4 4400 3 1 | ||
135 | /* IDSEL 0x12 - IRQ1 IDE0 */ | ||
136 | 6000 0 0 1 4400 1 1 | ||
137 | 6000 0 0 2 4400 2 1 | ||
138 | 6000 0 0 3 4400 3 1 | ||
139 | 6000 0 0 4 4400 0 1 | ||
140 | /* IDSEL 0x14 - IRQ3 USB2.0 */ | ||
141 | 7000 0 0 1 4400 3 1 | ||
142 | 7000 0 0 2 4400 3 1 | ||
143 | 7000 0 0 3 4400 3 1 | ||
144 | 7000 0 0 4 4400 3 1 | ||
145 | >; | ||
146 | }; | ||
147 | }; | ||
148 | }; | ||
diff --git a/arch/powerpc/boot/dts/lite5200.dts b/arch/powerpc/boot/dts/lite5200.dts index 186870704ad9..c03103c63285 100644 --- a/arch/powerpc/boot/dts/lite5200.dts +++ b/arch/powerpc/boot/dts/lite5200.dts | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Lite5200 board Device Tree Source | 2 | * Lite5200 board Device Tree Source |
3 | * | 3 | * |
4 | * Copyright 2006 Secret Lab Technologies Ltd. | 4 | * Copyright 2006-2007 Secret Lab Technologies Ltd. |
5 | * Grant Likely <grant.likely@secretlab.ca> | 5 | * Grant Likely <grant.likely@secretlab.ca> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
@@ -17,8 +17,9 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | / { | 19 | / { |
20 | model = "Lite5200"; | 20 | model = "fsl,lite5200"; |
21 | compatible = "lite5200\0lite52xx\0mpc5200\0mpc52xx"; | 21 | // revision = "1.0"; |
22 | compatible = "fsl,lite5200\0generic-mpc5200"; | ||
22 | #address-cells = <1>; | 23 | #address-cells = <1>; |
23 | #size-cells = <1>; | 24 | #size-cells = <1>; |
24 | 25 | ||
@@ -47,14 +48,17 @@ | |||
47 | }; | 48 | }; |
48 | 49 | ||
49 | soc5200@f0000000 { | 50 | soc5200@f0000000 { |
51 | model = "fsl,mpc5200"; | ||
52 | revision = "" // from bootloader | ||
50 | #interrupt-cells = <3>; | 53 | #interrupt-cells = <3>; |
51 | device_type = "soc"; | 54 | device_type = "soc"; |
52 | ranges = <0 f0000000 f0010000>; | 55 | ranges = <0 f0000000 f0010000>; |
53 | reg = <f0000000 00010000>; | 56 | reg = <f0000000 00010000>; |
54 | bus-frequency = <0>; // from bootloader | 57 | bus-frequency = <0>; // from bootloader |
58 | system-frequency = <0>; // from bootloader | ||
55 | 59 | ||
56 | cdm@200 { | 60 | cdm@200 { |
57 | compatible = "mpc5200-cdm\0mpc52xx-cdm"; | 61 | compatible = "mpc5200-cdm"; |
58 | reg = <200 38>; | 62 | reg = <200 38>; |
59 | }; | 63 | }; |
60 | 64 | ||
@@ -64,77 +68,86 @@ | |||
64 | interrupt-controller; | 68 | interrupt-controller; |
65 | #interrupt-cells = <3>; | 69 | #interrupt-cells = <3>; |
66 | device_type = "interrupt-controller"; | 70 | device_type = "interrupt-controller"; |
67 | compatible = "mpc5200-pic\0mpc52xx-pic"; | 71 | compatible = "mpc5200-pic"; |
68 | reg = <500 80>; | 72 | reg = <500 80>; |
69 | built-in; | 73 | built-in; |
70 | }; | 74 | }; |
71 | 75 | ||
72 | gpt@600 { // General Purpose Timer | 76 | gpt@600 { // General Purpose Timer |
73 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 77 | compatible = "mpc5200-gpt"; |
74 | device_type = "gpt"; | 78 | device_type = "gpt"; |
79 | cell-index = <0>; | ||
75 | reg = <600 10>; | 80 | reg = <600 10>; |
76 | interrupts = <1 9 0>; | 81 | interrupts = <1 9 0>; |
77 | interrupt-parent = <500>; | 82 | interrupt-parent = <500>; |
83 | has-wdt; | ||
78 | }; | 84 | }; |
79 | 85 | ||
80 | gpt@610 { // General Purpose Timer | 86 | gpt@610 { // General Purpose Timer |
81 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 87 | compatible = "mpc5200-gpt"; |
82 | device_type = "gpt"; | 88 | device_type = "gpt"; |
89 | cell-index = <1>; | ||
83 | reg = <610 10>; | 90 | reg = <610 10>; |
84 | interrupts = <1 a 0>; | 91 | interrupts = <1 a 0>; |
85 | interrupt-parent = <500>; | 92 | interrupt-parent = <500>; |
86 | }; | 93 | }; |
87 | 94 | ||
88 | gpt@620 { // General Purpose Timer | 95 | gpt@620 { // General Purpose Timer |
89 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 96 | compatible = "mpc5200-gpt"; |
90 | device_type = "gpt"; | 97 | device_type = "gpt"; |
98 | cell-index = <2>; | ||
91 | reg = <620 10>; | 99 | reg = <620 10>; |
92 | interrupts = <1 b 0>; | 100 | interrupts = <1 b 0>; |
93 | interrupt-parent = <500>; | 101 | interrupt-parent = <500>; |
94 | }; | 102 | }; |
95 | 103 | ||
96 | gpt@630 { // General Purpose Timer | 104 | gpt@630 { // General Purpose Timer |
97 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 105 | compatible = "mpc5200-gpt"; |
98 | device_type = "gpt"; | 106 | device_type = "gpt"; |
107 | cell-index = <3>; | ||
99 | reg = <630 10>; | 108 | reg = <630 10>; |
100 | interrupts = <1 c 0>; | 109 | interrupts = <1 c 0>; |
101 | interrupt-parent = <500>; | 110 | interrupt-parent = <500>; |
102 | }; | 111 | }; |
103 | 112 | ||
104 | gpt@640 { // General Purpose Timer | 113 | gpt@640 { // General Purpose Timer |
105 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 114 | compatible = "mpc5200-gpt"; |
106 | device_type = "gpt"; | 115 | device_type = "gpt"; |
116 | cell-index = <4>; | ||
107 | reg = <640 10>; | 117 | reg = <640 10>; |
108 | interrupts = <1 d 0>; | 118 | interrupts = <1 d 0>; |
109 | interrupt-parent = <500>; | 119 | interrupt-parent = <500>; |
110 | }; | 120 | }; |
111 | 121 | ||
112 | gpt@650 { // General Purpose Timer | 122 | gpt@650 { // General Purpose Timer |
113 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 123 | compatible = "mpc5200-gpt"; |
114 | device_type = "gpt"; | 124 | device_type = "gpt"; |
125 | cell-index = <5>; | ||
115 | reg = <650 10>; | 126 | reg = <650 10>; |
116 | interrupts = <1 e 0>; | 127 | interrupts = <1 e 0>; |
117 | interrupt-parent = <500>; | 128 | interrupt-parent = <500>; |
118 | }; | 129 | }; |
119 | 130 | ||
120 | gpt@660 { // General Purpose Timer | 131 | gpt@660 { // General Purpose Timer |
121 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 132 | compatible = "mpc5200-gpt"; |
122 | device_type = "gpt"; | 133 | device_type = "gpt"; |
134 | cell-index = <6>; | ||
123 | reg = <660 10>; | 135 | reg = <660 10>; |
124 | interrupts = <1 f 0>; | 136 | interrupts = <1 f 0>; |
125 | interrupt-parent = <500>; | 137 | interrupt-parent = <500>; |
126 | }; | 138 | }; |
127 | 139 | ||
128 | gpt@670 { // General Purpose Timer | 140 | gpt@670 { // General Purpose Timer |
129 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 141 | compatible = "mpc5200-gpt"; |
130 | device_type = "gpt"; | 142 | device_type = "gpt"; |
143 | cell-index = <7>; | ||
131 | reg = <670 10>; | 144 | reg = <670 10>; |
132 | interrupts = <1 10 0>; | 145 | interrupts = <1 10 0>; |
133 | interrupt-parent = <500>; | 146 | interrupt-parent = <500>; |
134 | }; | 147 | }; |
135 | 148 | ||
136 | rtc@800 { // Real time clock | 149 | rtc@800 { // Real time clock |
137 | compatible = "mpc5200-rtc\0mpc52xx-rtc"; | 150 | compatible = "mpc5200-rtc"; |
138 | device_type = "rtc"; | 151 | device_type = "rtc"; |
139 | reg = <800 100>; | 152 | reg = <800 100>; |
140 | interrupts = <1 5 0 1 6 0>; | 153 | interrupts = <1 5 0 1 6 0>; |
@@ -143,7 +156,8 @@ | |||
143 | 156 | ||
144 | mscan@900 { | 157 | mscan@900 { |
145 | device_type = "mscan"; | 158 | device_type = "mscan"; |
146 | compatible = "mpc5200-mscan\0mpc52xx-mscan"; | 159 | compatible = "mpc5200-mscan"; |
160 | cell-index = <0>; | ||
147 | interrupts = <2 11 0>; | 161 | interrupts = <2 11 0>; |
148 | interrupt-parent = <500>; | 162 | interrupt-parent = <500>; |
149 | reg = <900 80>; | 163 | reg = <900 80>; |
@@ -151,21 +165,22 @@ | |||
151 | 165 | ||
152 | mscan@980 { | 166 | mscan@980 { |
153 | device_type = "mscan"; | 167 | device_type = "mscan"; |
154 | compatible = "mpc5200-mscan\0mpc52xx-mscan"; | 168 | compatible = "mpc5200-mscan"; |
169 | cell-index = <1>; | ||
155 | interrupts = <1 12 0>; | 170 | interrupts = <1 12 0>; |
156 | interrupt-parent = <500>; | 171 | interrupt-parent = <500>; |
157 | reg = <980 80>; | 172 | reg = <980 80>; |
158 | }; | 173 | }; |
159 | 174 | ||
160 | gpio@b00 { | 175 | gpio@b00 { |
161 | compatible = "mpc5200-gpio\0mpc52xx-gpio"; | 176 | compatible = "mpc5200-gpio"; |
162 | reg = <b00 40>; | 177 | reg = <b00 40>; |
163 | interrupts = <1 7 0>; | 178 | interrupts = <1 7 0>; |
164 | interrupt-parent = <500>; | 179 | interrupt-parent = <500>; |
165 | }; | 180 | }; |
166 | 181 | ||
167 | gpio-wkup@b00 { | 182 | gpio-wkup@b00 { |
168 | compatible = "mpc5200-gpio-wkup\0mpc52xx-gpio-wkup"; | 183 | compatible = "mpc5200-gpio-wkup"; |
169 | reg = <c00 40>; | 184 | reg = <c00 40>; |
170 | interrupts = <1 8 0 0 3 0>; | 185 | interrupts = <1 8 0 0 3 0>; |
171 | interrupt-parent = <500>; | 186 | interrupt-parent = <500>; |
@@ -176,7 +191,7 @@ | |||
176 | #size-cells = <2>; | 191 | #size-cells = <2>; |
177 | #address-cells = <3>; | 192 | #address-cells = <3>; |
178 | device_type = "pci"; | 193 | device_type = "pci"; |
179 | compatible = "mpc5200-pci\0mpc52xx-pci"; | 194 | compatible = "mpc5200-pci"; |
180 | reg = <d00 100>; | 195 | reg = <d00 100>; |
181 | interrupt-map-mask = <f800 0 0 7>; | 196 | interrupt-map-mask = <f800 0 0 7>; |
182 | interrupt-map = <c000 0 0 1 500 0 0 3 | 197 | interrupt-map = <c000 0 0 1 500 0 0 3 |
@@ -194,7 +209,7 @@ | |||
194 | 209 | ||
195 | spi@f00 { | 210 | spi@f00 { |
196 | device_type = "spi"; | 211 | device_type = "spi"; |
197 | compatible = "mpc5200-spi\0mpc52xx-spi"; | 212 | compatible = "mpc5200-spi"; |
198 | reg = <f00 20>; | 213 | reg = <f00 20>; |
199 | interrupts = <2 d 0 2 e 0>; | 214 | interrupts = <2 d 0 2 e 0>; |
200 | interrupt-parent = <500>; | 215 | interrupt-parent = <500>; |
@@ -202,7 +217,7 @@ | |||
202 | 217 | ||
203 | usb@1000 { | 218 | usb@1000 { |
204 | device_type = "usb-ohci-be"; | 219 | device_type = "usb-ohci-be"; |
205 | compatible = "mpc5200-ohci\0mpc52xx-ohci\0ohci-be"; | 220 | compatible = "mpc5200-ohci\0ohci-be"; |
206 | reg = <1000 ff>; | 221 | reg = <1000 ff>; |
207 | interrupts = <2 6 0>; | 222 | interrupts = <2 6 0>; |
208 | interrupt-parent = <500>; | 223 | interrupt-parent = <500>; |
@@ -210,7 +225,7 @@ | |||
210 | 225 | ||
211 | bestcomm@1200 { | 226 | bestcomm@1200 { |
212 | device_type = "dma-controller"; | 227 | device_type = "dma-controller"; |
213 | compatible = "mpc5200-bestcomm\0mpc52xx-bestcomm"; | 228 | compatible = "mpc5200-bestcomm"; |
214 | reg = <1200 80>; | 229 | reg = <1200 80>; |
215 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 | 230 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 |
216 | 3 4 0 3 5 0 3 6 0 3 7 0 | 231 | 3 4 0 3 5 0 3 6 0 3 7 0 |
@@ -220,67 +235,73 @@ | |||
220 | }; | 235 | }; |
221 | 236 | ||
222 | xlb@1f00 { | 237 | xlb@1f00 { |
223 | compatible = "mpc5200-xlb\0mpc52xx-xlb"; | 238 | compatible = "mpc5200-xlb"; |
224 | reg = <1f00 100>; | 239 | reg = <1f00 100>; |
225 | }; | 240 | }; |
226 | 241 | ||
227 | serial@2000 { // PSC1 | 242 | serial@2000 { // PSC1 |
228 | device_type = "serial"; | 243 | device_type = "serial"; |
229 | compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart"; | 244 | compatible = "mpc5200-psc-uart"; |
230 | port-number = <0>; // Logical port assignment | 245 | port-number = <0>; // Logical port assignment |
246 | cell-index = <0>; | ||
231 | reg = <2000 100>; | 247 | reg = <2000 100>; |
232 | interrupts = <2 1 0>; | 248 | interrupts = <2 1 0>; |
233 | interrupt-parent = <500>; | 249 | interrupt-parent = <500>; |
234 | }; | 250 | }; |
235 | 251 | ||
236 | // PSC2 in spi mode example | 252 | // PSC2 in ac97 mode example |
237 | spi@2200 { // PSC2 | 253 | //ac97@2200 { // PSC2 |
238 | device_type = "spi"; | 254 | // device_type = "sound"; |
239 | compatible = "mpc5200-psc-spi\0mpc52xx-psc-spi"; | 255 | // compatible = "mpc5200-psc-ac97"; |
240 | reg = <2200 100>; | 256 | // cell-index = <1>; |
241 | interrupts = <2 2 0>; | 257 | // reg = <2200 100>; |
242 | interrupt-parent = <500>; | 258 | // interrupts = <2 2 0>; |
243 | }; | 259 | // interrupt-parent = <500>; |
260 | //}; | ||
244 | 261 | ||
245 | // PSC3 in CODEC mode example | 262 | // PSC3 in CODEC mode example |
246 | i2s@2400 { // PSC3 | 263 | //i2s@2400 { // PSC3 |
247 | device_type = "sound"; | 264 | // device_type = "sound"; |
248 | compatible = "mpc5200-psc-i2s\0mpc52xx-psc-i2s"; | 265 | // compatible = "mpc5200-psc-i2s"; |
249 | reg = <2400 100>; | 266 | // cell-index = <2>; |
250 | interrupts = <2 3 0>; | 267 | // reg = <2400 100>; |
251 | interrupt-parent = <500>; | 268 | // interrupts = <2 3 0>; |
252 | }; | 269 | // interrupt-parent = <500>; |
270 | //}; | ||
253 | 271 | ||
254 | // PSC4 unconfigured | 272 | // PSC4 in uart mode example |
255 | //serial@2600 { // PSC4 | 273 | //serial@2600 { // PSC4 |
256 | // device_type = "serial"; | 274 | // device_type = "serial"; |
257 | // compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart"; | 275 | // compatible = "mpc5200-psc-uart"; |
276 | // cell-index = <3>; | ||
258 | // reg = <2600 100>; | 277 | // reg = <2600 100>; |
259 | // interrupts = <2 b 0>; | 278 | // interrupts = <2 b 0>; |
260 | // interrupt-parent = <500>; | 279 | // interrupt-parent = <500>; |
261 | //}; | 280 | //}; |
262 | 281 | ||
263 | // PSC5 unconfigured | 282 | // PSC5 in uart mode example |
264 | //serial@2800 { // PSC5 | 283 | //serial@2800 { // PSC5 |
265 | // device_type = "serial"; | 284 | // device_type = "serial"; |
266 | // compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart"; | 285 | // compatible = "mpc5200-psc-uart"; |
286 | // cell-index = <4>; | ||
267 | // reg = <2800 100>; | 287 | // reg = <2800 100>; |
268 | // interrupts = <2 c 0>; | 288 | // interrupts = <2 c 0>; |
269 | // interrupt-parent = <500>; | 289 | // interrupt-parent = <500>; |
270 | //}; | 290 | //}; |
271 | 291 | ||
272 | // PSC6 in AC97 mode example | 292 | // PSC6 in spi mode example |
273 | ac97@2c00 { // PSC6 | 293 | //spi@2c00 { // PSC6 |
274 | device_type = "sound"; | 294 | // device_type = "spi"; |
275 | compatible = "mpc5200-psc-ac97\0mpc52xx-psc-ac97"; | 295 | // compatible = "mpc5200-psc-spi"; |
276 | reg = <2c00 100>; | 296 | // cell-index = <5>; |
277 | interrupts = <2 4 0>; | 297 | // reg = <2c00 100>; |
278 | interrupt-parent = <500>; | 298 | // interrupts = <2 4 0>; |
279 | }; | 299 | // interrupt-parent = <500>; |
300 | //}; | ||
280 | 301 | ||
281 | ethernet@3000 { | 302 | ethernet@3000 { |
282 | device_type = "network"; | 303 | device_type = "network"; |
283 | compatible = "mpc5200-fec\0mpc52xx-fec"; | 304 | compatible = "mpc5200-fec"; |
284 | reg = <3000 800>; | 305 | reg = <3000 800>; |
285 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! | 306 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! |
286 | interrupts = <2 5 0>; | 307 | interrupts = <2 5 0>; |
@@ -289,7 +310,7 @@ | |||
289 | 310 | ||
290 | ata@3a00 { | 311 | ata@3a00 { |
291 | device_type = "ata"; | 312 | device_type = "ata"; |
292 | compatible = "mpc5200-ata\0mpc52xx-ata"; | 313 | compatible = "mpc5200-ata"; |
293 | reg = <3a00 100>; | 314 | reg = <3a00 100>; |
294 | interrupts = <2 7 0>; | 315 | interrupts = <2 7 0>; |
295 | interrupt-parent = <500>; | 316 | interrupt-parent = <500>; |
@@ -297,7 +318,8 @@ | |||
297 | 318 | ||
298 | i2c@3d00 { | 319 | i2c@3d00 { |
299 | device_type = "i2c"; | 320 | device_type = "i2c"; |
300 | compatible = "mpc5200-i2c\0mpc52xx-i2c"; | 321 | compatible = "mpc5200-i2c"; |
322 | cell-index = <0>; | ||
301 | reg = <3d00 40>; | 323 | reg = <3d00 40>; |
302 | interrupts = <2 f 0>; | 324 | interrupts = <2 f 0>; |
303 | interrupt-parent = <500>; | 325 | interrupt-parent = <500>; |
@@ -305,14 +327,15 @@ | |||
305 | 327 | ||
306 | i2c@3d40 { | 328 | i2c@3d40 { |
307 | device_type = "i2c"; | 329 | device_type = "i2c"; |
308 | compatible = "mpc5200-i2c\0mpc52xx-i2c"; | 330 | compatible = "mpc5200-i2c"; |
331 | cell-index = <1>; | ||
309 | reg = <3d40 40>; | 332 | reg = <3d40 40>; |
310 | interrupts = <2 10 0>; | 333 | interrupts = <2 10 0>; |
311 | interrupt-parent = <500>; | 334 | interrupt-parent = <500>; |
312 | }; | 335 | }; |
313 | sram@8000 { | 336 | sram@8000 { |
314 | device_type = "sram"; | 337 | device_type = "sram"; |
315 | compatible = "mpc5200-sram\0mpc52xx-sram\0sram"; | 338 | compatible = "mpc5200-sram\0sram"; |
316 | reg = <8000 4000>; | 339 | reg = <8000 4000>; |
317 | }; | 340 | }; |
318 | }; | 341 | }; |
diff --git a/arch/powerpc/boot/dts/lite5200b.dts b/arch/powerpc/boot/dts/lite5200b.dts index 5bb2760d7c30..3875ca9a9a62 100644 --- a/arch/powerpc/boot/dts/lite5200b.dts +++ b/arch/powerpc/boot/dts/lite5200b.dts | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Lite5200B board Device Tree Source | 2 | * Lite5200B board Device Tree Source |
3 | * | 3 | * |
4 | * Copyright 2006 Secret Lab Technologies Ltd. | 4 | * Copyright 2006-2007 Secret Lab Technologies Ltd. |
5 | * Grant Likely <grant.likely@secretlab.ca> | 5 | * Grant Likely <grant.likely@secretlab.ca> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
@@ -17,8 +17,9 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | / { | 19 | / { |
20 | model = "Lite5200b"; | 20 | model = "fsl,lite5200b"; |
21 | compatible = "lite5200b\0lite52xx\0mpc5200b\0mpc52xx"; | 21 | // revision = "1.0"; |
22 | compatible = "fsl,lite5200b\0generic-mpc5200"; | ||
22 | #address-cells = <1>; | 23 | #address-cells = <1>; |
23 | #size-cells = <1>; | 24 | #size-cells = <1>; |
24 | 25 | ||
@@ -47,14 +48,17 @@ | |||
47 | }; | 48 | }; |
48 | 49 | ||
49 | soc5200@f0000000 { | 50 | soc5200@f0000000 { |
51 | model = "fsl,mpc5200b"; | ||
52 | revision = ""; // from bootloader | ||
50 | #interrupt-cells = <3>; | 53 | #interrupt-cells = <3>; |
51 | device_type = "soc"; | 54 | device_type = "soc"; |
52 | ranges = <0 f0000000 f0010000>; | 55 | ranges = <0 f0000000 f0010000>; |
53 | reg = <f0000000 00010000>; | 56 | reg = <f0000000 00010000>; |
54 | bus-frequency = <0>; // from bootloader | 57 | bus-frequency = <0>; // from bootloader |
58 | system-frequency = <0>; // from bootloader | ||
55 | 59 | ||
56 | cdm@200 { | 60 | cdm@200 { |
57 | compatible = "mpc5200b-cdm\0mpc52xx-cdm"; | 61 | compatible = "mpc5200b-cdm\0mpc5200-cdm"; |
58 | reg = <200 38>; | 62 | reg = <200 38>; |
59 | }; | 63 | }; |
60 | 64 | ||
@@ -64,77 +68,86 @@ | |||
64 | interrupt-controller; | 68 | interrupt-controller; |
65 | #interrupt-cells = <3>; | 69 | #interrupt-cells = <3>; |
66 | device_type = "interrupt-controller"; | 70 | device_type = "interrupt-controller"; |
67 | compatible = "mpc5200b-pic\0mpc52xx-pic"; | 71 | compatible = "mpc5200b-pic\0mpc5200-pic"; |
68 | reg = <500 80>; | 72 | reg = <500 80>; |
69 | built-in; | 73 | built-in; |
70 | }; | 74 | }; |
71 | 75 | ||
72 | gpt@600 { // General Purpose Timer | 76 | gpt@600 { // General Purpose Timer |
73 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 77 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
74 | device_type = "gpt"; | 78 | device_type = "gpt"; |
79 | cell-index = <0>; | ||
75 | reg = <600 10>; | 80 | reg = <600 10>; |
76 | interrupts = <1 9 0>; | 81 | interrupts = <1 9 0>; |
77 | interrupt-parent = <500>; | 82 | interrupt-parent = <500>; |
83 | has-wdt; | ||
78 | }; | 84 | }; |
79 | 85 | ||
80 | gpt@610 { // General Purpose Timer | 86 | gpt@610 { // General Purpose Timer |
81 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 87 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
82 | device_type = "gpt"; | 88 | device_type = "gpt"; |
89 | cell-index = <1>; | ||
83 | reg = <610 10>; | 90 | reg = <610 10>; |
84 | interrupts = <1 a 0>; | 91 | interrupts = <1 a 0>; |
85 | interrupt-parent = <500>; | 92 | interrupt-parent = <500>; |
86 | }; | 93 | }; |
87 | 94 | ||
88 | gpt@620 { // General Purpose Timer | 95 | gpt@620 { // General Purpose Timer |
89 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 96 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
90 | device_type = "gpt"; | 97 | device_type = "gpt"; |
98 | cell-index = <2>; | ||
91 | reg = <620 10>; | 99 | reg = <620 10>; |
92 | interrupts = <1 b 0>; | 100 | interrupts = <1 b 0>; |
93 | interrupt-parent = <500>; | 101 | interrupt-parent = <500>; |
94 | }; | 102 | }; |
95 | 103 | ||
96 | gpt@630 { // General Purpose Timer | 104 | gpt@630 { // General Purpose Timer |
97 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 105 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
98 | device_type = "gpt"; | 106 | device_type = "gpt"; |
107 | cell-index = <3>; | ||
99 | reg = <630 10>; | 108 | reg = <630 10>; |
100 | interrupts = <1 c 0>; | 109 | interrupts = <1 c 0>; |
101 | interrupt-parent = <500>; | 110 | interrupt-parent = <500>; |
102 | }; | 111 | }; |
103 | 112 | ||
104 | gpt@640 { // General Purpose Timer | 113 | gpt@640 { // General Purpose Timer |
105 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 114 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
106 | device_type = "gpt"; | 115 | device_type = "gpt"; |
116 | cell-index = <4>; | ||
107 | reg = <640 10>; | 117 | reg = <640 10>; |
108 | interrupts = <1 d 0>; | 118 | interrupts = <1 d 0>; |
109 | interrupt-parent = <500>; | 119 | interrupt-parent = <500>; |
110 | }; | 120 | }; |
111 | 121 | ||
112 | gpt@650 { // General Purpose Timer | 122 | gpt@650 { // General Purpose Timer |
113 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 123 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
114 | device_type = "gpt"; | 124 | device_type = "gpt"; |
125 | cell-index = <5>; | ||
115 | reg = <650 10>; | 126 | reg = <650 10>; |
116 | interrupts = <1 e 0>; | 127 | interrupts = <1 e 0>; |
117 | interrupt-parent = <500>; | 128 | interrupt-parent = <500>; |
118 | }; | 129 | }; |
119 | 130 | ||
120 | gpt@660 { // General Purpose Timer | 131 | gpt@660 { // General Purpose Timer |
121 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 132 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
122 | device_type = "gpt"; | 133 | device_type = "gpt"; |
134 | cell-index = <6>; | ||
123 | reg = <660 10>; | 135 | reg = <660 10>; |
124 | interrupts = <1 f 0>; | 136 | interrupts = <1 f 0>; |
125 | interrupt-parent = <500>; | 137 | interrupt-parent = <500>; |
126 | }; | 138 | }; |
127 | 139 | ||
128 | gpt@670 { // General Purpose Timer | 140 | gpt@670 { // General Purpose Timer |
129 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 141 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
130 | device_type = "gpt"; | 142 | device_type = "gpt"; |
143 | cell-index = <7>; | ||
131 | reg = <670 10>; | 144 | reg = <670 10>; |
132 | interrupts = <1 10 0>; | 145 | interrupts = <1 10 0>; |
133 | interrupt-parent = <500>; | 146 | interrupt-parent = <500>; |
134 | }; | 147 | }; |
135 | 148 | ||
136 | rtc@800 { // Real time clock | 149 | rtc@800 { // Real time clock |
137 | compatible = "mpc5200b-rtc\0mpc52xx-rtc"; | 150 | compatible = "mpc5200b-rtc\0mpc5200-rtc"; |
138 | device_type = "rtc"; | 151 | device_type = "rtc"; |
139 | reg = <800 100>; | 152 | reg = <800 100>; |
140 | interrupts = <1 5 0 1 6 0>; | 153 | interrupts = <1 5 0 1 6 0>; |
@@ -143,7 +156,8 @@ | |||
143 | 156 | ||
144 | mscan@900 { | 157 | mscan@900 { |
145 | device_type = "mscan"; | 158 | device_type = "mscan"; |
146 | compatible = "mpc5200b-mscan\0mpc52xx-mscan"; | 159 | compatible = "mpc5200b-mscan\0mpc5200-mscan"; |
160 | cell-index = <0>; | ||
147 | interrupts = <2 11 0>; | 161 | interrupts = <2 11 0>; |
148 | interrupt-parent = <500>; | 162 | interrupt-parent = <500>; |
149 | reg = <900 80>; | 163 | reg = <900 80>; |
@@ -151,21 +165,22 @@ | |||
151 | 165 | ||
152 | mscan@980 { | 166 | mscan@980 { |
153 | device_type = "mscan"; | 167 | device_type = "mscan"; |
154 | compatible = "mpc5200b-mscan\0mpc52xx-mscan"; | 168 | compatible = "mpc5200b-mscan\0mpc5200-mscan"; |
169 | cell-index = <1>; | ||
155 | interrupts = <1 12 0>; | 170 | interrupts = <1 12 0>; |
156 | interrupt-parent = <500>; | 171 | interrupt-parent = <500>; |
157 | reg = <980 80>; | 172 | reg = <980 80>; |
158 | }; | 173 | }; |
159 | 174 | ||
160 | gpio@b00 { | 175 | gpio@b00 { |
161 | compatible = "mpc5200b-gpio\0mpc52xx-gpio"; | 176 | compatible = "mpc5200b-gpio\0mpc5200-gpio"; |
162 | reg = <b00 40>; | 177 | reg = <b00 40>; |
163 | interrupts = <1 7 0>; | 178 | interrupts = <1 7 0>; |
164 | interrupt-parent = <500>; | 179 | interrupt-parent = <500>; |
165 | }; | 180 | }; |
166 | 181 | ||
167 | gpio-wkup@b00 { | 182 | gpio-wkup@b00 { |
168 | compatible = "mpc5200b-gpio-wkup\0mpc52xx-gpio-wkup"; | 183 | compatible = "mpc5200b-gpio-wkup\0mpc5200-gpio-wkup"; |
169 | reg = <c00 40>; | 184 | reg = <c00 40>; |
170 | interrupts = <1 8 0 0 3 0>; | 185 | interrupts = <1 8 0 0 3 0>; |
171 | interrupt-parent = <500>; | 186 | interrupt-parent = <500>; |
@@ -176,7 +191,7 @@ | |||
176 | #size-cells = <2>; | 191 | #size-cells = <2>; |
177 | #address-cells = <3>; | 192 | #address-cells = <3>; |
178 | device_type = "pci"; | 193 | device_type = "pci"; |
179 | compatible = "mpc5200b-pci\0mpc52xx-pci"; | 194 | compatible = "mpc5200b-pci\0mpc5200-pci"; |
180 | reg = <d00 100>; | 195 | reg = <d00 100>; |
181 | interrupt-map-mask = <f800 0 0 7>; | 196 | interrupt-map-mask = <f800 0 0 7>; |
182 | interrupt-map = <c000 0 0 1 500 0 0 3 // 1st slot | 197 | interrupt-map = <c000 0 0 1 500 0 0 3 // 1st slot |
@@ -199,7 +214,7 @@ | |||
199 | 214 | ||
200 | spi@f00 { | 215 | spi@f00 { |
201 | device_type = "spi"; | 216 | device_type = "spi"; |
202 | compatible = "mpc5200b-spi\0mpc52xx-spi"; | 217 | compatible = "mpc5200b-spi\0mpc5200-spi"; |
203 | reg = <f00 20>; | 218 | reg = <f00 20>; |
204 | interrupts = <2 d 0 2 e 0>; | 219 | interrupts = <2 d 0 2 e 0>; |
205 | interrupt-parent = <500>; | 220 | interrupt-parent = <500>; |
@@ -207,7 +222,7 @@ | |||
207 | 222 | ||
208 | usb@1000 { | 223 | usb@1000 { |
209 | device_type = "usb-ohci-be"; | 224 | device_type = "usb-ohci-be"; |
210 | compatible = "mpc5200b-ohci\0mpc52xx-ohci\0ohci-be"; | 225 | compatible = "mpc5200b-ohci\0mpc5200-ohci\0ohci-be"; |
211 | reg = <1000 ff>; | 226 | reg = <1000 ff>; |
212 | interrupts = <2 6 0>; | 227 | interrupts = <2 6 0>; |
213 | interrupt-parent = <500>; | 228 | interrupt-parent = <500>; |
@@ -215,7 +230,7 @@ | |||
215 | 230 | ||
216 | bestcomm@1200 { | 231 | bestcomm@1200 { |
217 | device_type = "dma-controller"; | 232 | device_type = "dma-controller"; |
218 | compatible = "mpc5200b-bestcomm\0mpc52xx-bestcomm"; | 233 | compatible = "mpc5200b-bestcomm\0mpc5200-bestcomm"; |
219 | reg = <1200 80>; | 234 | reg = <1200 80>; |
220 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 | 235 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 |
221 | 3 4 0 3 5 0 3 6 0 3 7 0 | 236 | 3 4 0 3 5 0 3 6 0 3 7 0 |
@@ -225,67 +240,73 @@ | |||
225 | }; | 240 | }; |
226 | 241 | ||
227 | xlb@1f00 { | 242 | xlb@1f00 { |
228 | compatible = "mpc5200b-xlb\0mpc52xx-xlb"; | 243 | compatible = "mpc5200b-xlb\0mpc5200-xlb"; |
229 | reg = <1f00 100>; | 244 | reg = <1f00 100>; |
230 | }; | 245 | }; |
231 | 246 | ||
232 | serial@2000 { // PSC1 | 247 | serial@2000 { // PSC1 |
233 | device_type = "serial"; | 248 | device_type = "serial"; |
234 | compatible = "mpc5200b-psc-uart\0mpc52xx-psc-uart"; | 249 | compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; |
235 | port-number = <0>; // Logical port assignment | 250 | port-number = <0>; // Logical port assignment |
251 | cell-index = <0>; | ||
236 | reg = <2000 100>; | 252 | reg = <2000 100>; |
237 | interrupts = <2 1 0>; | 253 | interrupts = <2 1 0>; |
238 | interrupt-parent = <500>; | 254 | interrupt-parent = <500>; |
239 | }; | 255 | }; |
240 | 256 | ||
241 | // PSC2 in spi mode example | 257 | // PSC2 in ac97 mode example |
242 | spi@2200 { // PSC2 | 258 | //ac97@2200 { // PSC2 |
243 | device_type = "spi"; | 259 | // device_type = "sound"; |
244 | compatible = "mpc5200b-psc-spi\0mpc52xx-psc-spi"; | 260 | // compatible = "mpc5200b-psc-ac97\0mpc5200-psc-ac97"; |
245 | reg = <2200 100>; | 261 | // cell-index = <1>; |
246 | interrupts = <2 2 0>; | 262 | // reg = <2200 100>; |
247 | interrupt-parent = <500>; | 263 | // interrupts = <2 2 0>; |
248 | }; | 264 | // interrupt-parent = <500>; |
265 | //}; | ||
249 | 266 | ||
250 | // PSC3 in CODEC mode example | 267 | // PSC3 in CODEC mode example |
251 | i2s@2400 { // PSC3 | 268 | //i2s@2400 { // PSC3 |
252 | device_type = "sound"; | 269 | // device_type = "sound"; |
253 | compatible = "mpc5200b-psc-i2s\0mpc52xx-psc-i2s"; | 270 | // compatible = "mpc5200b-psc-i2s"; //not 5200 compatible |
254 | reg = <2400 100>; | 271 | // cell-index = <2>; |
255 | interrupts = <2 3 0>; | 272 | // reg = <2400 100>; |
256 | interrupt-parent = <500>; | 273 | // interrupts = <2 3 0>; |
257 | }; | 274 | // interrupt-parent = <500>; |
275 | //}; | ||
258 | 276 | ||
259 | // PSC4 unconfigured | 277 | // PSC4 in uart mode example |
260 | //serial@2600 { // PSC4 | 278 | //serial@2600 { // PSC4 |
261 | // device_type = "serial"; | 279 | // device_type = "serial"; |
262 | // compatible = "mpc5200b-psc-uart\0mpc52xx-psc-uart"; | 280 | // compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; |
281 | // cell-index = <3>; | ||
263 | // reg = <2600 100>; | 282 | // reg = <2600 100>; |
264 | // interrupts = <2 b 0>; | 283 | // interrupts = <2 b 0>; |
265 | // interrupt-parent = <500>; | 284 | // interrupt-parent = <500>; |
266 | //}; | 285 | //}; |
267 | 286 | ||
268 | // PSC5 unconfigured | 287 | // PSC5 in uart mode example |
269 | //serial@2800 { // PSC5 | 288 | //serial@2800 { // PSC5 |
270 | // device_type = "serial"; | 289 | // device_type = "serial"; |
271 | // compatible = "mpc5200b-psc-uart\0mpc52xx-psc-uart"; | 290 | // compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; |
291 | // cell-index = <4>; | ||
272 | // reg = <2800 100>; | 292 | // reg = <2800 100>; |
273 | // interrupts = <2 c 0>; | 293 | // interrupts = <2 c 0>; |
274 | // interrupt-parent = <500>; | 294 | // interrupt-parent = <500>; |
275 | //}; | 295 | //}; |
276 | 296 | ||
277 | // PSC6 in AC97 mode example | 297 | // PSC6 in spi mode example |
278 | ac97@2c00 { // PSC6 | 298 | //spi@2c00 { // PSC6 |
279 | device_type = "sound"; | 299 | // device_type = "spi"; |
280 | compatible = "mpc5200b-psc-ac97\0mpc52xx-psc-ac97"; | 300 | // compatible = "mpc5200b-psc-spi\0mpc5200-psc-spi"; |
281 | reg = <2c00 100>; | 301 | // cell-index = <5>; |
282 | interrupts = <2 4 0>; | 302 | // reg = <2c00 100>; |
283 | interrupt-parent = <500>; | 303 | // interrupts = <2 4 0>; |
284 | }; | 304 | // interrupt-parent = <500>; |
305 | //}; | ||
285 | 306 | ||
286 | ethernet@3000 { | 307 | ethernet@3000 { |
287 | device_type = "network"; | 308 | device_type = "network"; |
288 | compatible = "mpc5200b-fec\0mpc52xx-fec"; | 309 | compatible = "mpc5200b-fec\0mpc5200-fec"; |
289 | reg = <3000 800>; | 310 | reg = <3000 800>; |
290 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! | 311 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! |
291 | interrupts = <2 5 0>; | 312 | interrupts = <2 5 0>; |
@@ -294,7 +315,7 @@ | |||
294 | 315 | ||
295 | ata@3a00 { | 316 | ata@3a00 { |
296 | device_type = "ata"; | 317 | device_type = "ata"; |
297 | compatible = "mpc5200b-ata\0mpc52xx-ata"; | 318 | compatible = "mpc5200b-ata\0mpc5200-ata"; |
298 | reg = <3a00 100>; | 319 | reg = <3a00 100>; |
299 | interrupts = <2 7 0>; | 320 | interrupts = <2 7 0>; |
300 | interrupt-parent = <500>; | 321 | interrupt-parent = <500>; |
@@ -302,7 +323,8 @@ | |||
302 | 323 | ||
303 | i2c@3d00 { | 324 | i2c@3d00 { |
304 | device_type = "i2c"; | 325 | device_type = "i2c"; |
305 | compatible = "mpc5200b-i2c\0mpc52xx-i2c"; | 326 | compatible = "mpc5200b-i2c\0mpc5200-i2c"; |
327 | cell-index = <0>; | ||
306 | reg = <3d00 40>; | 328 | reg = <3d00 40>; |
307 | interrupts = <2 f 0>; | 329 | interrupts = <2 f 0>; |
308 | interrupt-parent = <500>; | 330 | interrupt-parent = <500>; |
@@ -310,14 +332,15 @@ | |||
310 | 332 | ||
311 | i2c@3d40 { | 333 | i2c@3d40 { |
312 | device_type = "i2c"; | 334 | device_type = "i2c"; |
313 | compatible = "mpc5200b-i2c\0mpc52xx-i2c"; | 335 | compatible = "mpc5200b-i2c\0mpc5200-i2c"; |
336 | cell-index = <1>; | ||
314 | reg = <3d40 40>; | 337 | reg = <3d40 40>; |
315 | interrupts = <2 10 0>; | 338 | interrupts = <2 10 0>; |
316 | interrupt-parent = <500>; | 339 | interrupt-parent = <500>; |
317 | }; | 340 | }; |
318 | sram@8000 { | 341 | sram@8000 { |
319 | device_type = "sram"; | 342 | device_type = "sram"; |
320 | compatible = "mpc5200b-sram\0mpc52xx-sram\0sram"; | 343 | compatible = "mpc5200b-sram\0mpc5200-sram\0sram"; |
321 | reg = <8000 4000>; | 344 | reg = <8000 4000>; |
322 | }; | 345 | }; |
323 | }; | 346 | }; |
diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boot/dts/mpc8313erdb.dts new file mode 100644 index 000000000000..3d2f5a06df3f --- /dev/null +++ b/arch/powerpc/boot/dts/mpc8313erdb.dts | |||
@@ -0,0 +1,219 @@ | |||
1 | /* | ||
2 | * MPC8313E RDB Device Tree Source | ||
3 | * | ||
4 | * Copyright 2005, 2006, 2007 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | */ | ||
11 | |||
12 | / { | ||
13 | model = "MPC8313ERDB"; | ||
14 | compatible = "MPC83xx"; | ||
15 | #address-cells = <1>; | ||
16 | #size-cells = <1>; | ||
17 | |||
18 | cpus { | ||
19 | #cpus = <1>; | ||
20 | #address-cells = <1>; | ||
21 | #size-cells = <0>; | ||
22 | |||
23 | PowerPC,8313@0 { | ||
24 | device_type = "cpu"; | ||
25 | reg = <0>; | ||
26 | d-cache-line-size = <20>; // 32 bytes | ||
27 | i-cache-line-size = <20>; // 32 bytes | ||
28 | d-cache-size = <4000>; // L1, 16K | ||
29 | i-cache-size = <4000>; // L1, 16K | ||
30 | timebase-frequency = <0>; // from bootloader | ||
31 | bus-frequency = <0>; // from bootloader | ||
32 | clock-frequency = <0>; // from bootloader | ||
33 | 32-bit; | ||
34 | }; | ||
35 | }; | ||
36 | |||
37 | memory { | ||
38 | device_type = "memory"; | ||
39 | reg = <00000000 08000000>; // 128MB at 0 | ||
40 | }; | ||
41 | |||
42 | soc8313@e0000000 { | ||
43 | #address-cells = <1>; | ||
44 | #size-cells = <1>; | ||
45 | #interrupt-cells = <2>; | ||
46 | device_type = "soc"; | ||
47 | ranges = <0 e0000000 00100000>; | ||
48 | reg = <e0000000 00000200>; | ||
49 | bus-frequency = <0>; | ||
50 | |||
51 | wdt@200 { | ||
52 | device_type = "watchdog"; | ||
53 | compatible = "mpc83xx_wdt"; | ||
54 | reg = <200 100>; | ||
55 | }; | ||
56 | |||
57 | i2c@3000 { | ||
58 | device_type = "i2c"; | ||
59 | compatible = "fsl-i2c"; | ||
60 | reg = <3000 100>; | ||
61 | interrupts = <e 8>; | ||
62 | interrupt-parent = <700>; | ||
63 | dfsrr; | ||
64 | }; | ||
65 | |||
66 | i2c@3100 { | ||
67 | device_type = "i2c"; | ||
68 | compatible = "fsl-i2c"; | ||
69 | reg = <3100 100>; | ||
70 | interrupts = <f 8>; | ||
71 | interrupt-parent = <700>; | ||
72 | dfsrr; | ||
73 | }; | ||
74 | |||
75 | spi@7000 { | ||
76 | device_type = "spi"; | ||
77 | compatible = "mpc83xx_spi"; | ||
78 | reg = <7000 1000>; | ||
79 | interrupts = <10 8>; | ||
80 | interrupt-parent = <700>; | ||
81 | mode = <0>; | ||
82 | }; | ||
83 | |||
84 | /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */ | ||
85 | usb@23000 { | ||
86 | device_type = "usb"; | ||
87 | compatible = "fsl-usb2-dr"; | ||
88 | reg = <23000 1000>; | ||
89 | #address-cells = <1>; | ||
90 | #size-cells = <0>; | ||
91 | interrupt-parent = <700>; | ||
92 | interrupts = <26 2>; | ||
93 | phy_type = "utmi_wide"; | ||
94 | }; | ||
95 | |||
96 | mdio@24520 { | ||
97 | device_type = "mdio"; | ||
98 | compatible = "gianfar"; | ||
99 | reg = <24520 20>; | ||
100 | #address-cells = <1>; | ||
101 | #size-cells = <0>; | ||
102 | linux,phandle = <24520>; | ||
103 | ethernet-phy@1 { | ||
104 | linux,phandle = <2452001>; | ||
105 | interrupt-parent = <700>; | ||
106 | interrupts = <13 2>; | ||
107 | reg = <1>; | ||
108 | device_type = "ethernet-phy"; | ||
109 | }; | ||
110 | ethernet-phy@4 { | ||
111 | linux,phandle = <2452004>; | ||
112 | interrupt-parent = <700>; | ||
113 | interrupts = <14 2>; | ||
114 | reg = <4>; | ||
115 | device_type = "ethernet-phy"; | ||
116 | }; | ||
117 | }; | ||
118 | |||
119 | ethernet@24000 { | ||
120 | device_type = "network"; | ||
121 | model = "eTSEC"; | ||
122 | compatible = "gianfar"; | ||
123 | reg = <24000 1000>; | ||
124 | local-mac-address = [ 00 00 00 00 00 00 ]; | ||
125 | interrupts = <25 8 24 8 23 8>; | ||
126 | interrupt-parent = <700>; | ||
127 | phy-handle = <2452001>; | ||
128 | }; | ||
129 | |||
130 | ethernet@25000 { | ||
131 | device_type = "network"; | ||
132 | model = "eTSEC"; | ||
133 | compatible = "gianfar"; | ||
134 | reg = <25000 1000>; | ||
135 | local-mac-address = [ 00 00 00 00 00 00 ]; | ||
136 | interrupts = <22 8 21 8 20 8>; | ||
137 | interrupt-parent = <700>; | ||
138 | phy-handle = <2452004>; | ||
139 | }; | ||
140 | |||
141 | serial@4500 { | ||
142 | device_type = "serial"; | ||
143 | compatible = "ns16550"; | ||
144 | reg = <4500 100>; | ||
145 | clock-frequency = <0>; | ||
146 | interrupts = <9 8>; | ||
147 | interrupt-parent = <700>; | ||
148 | }; | ||
149 | |||
150 | serial@4600 { | ||
151 | device_type = "serial"; | ||
152 | compatible = "ns16550"; | ||
153 | reg = <4600 100>; | ||
154 | clock-frequency = <0>; | ||
155 | interrupts = <a 8>; | ||
156 | interrupt-parent = <700>; | ||
157 | }; | ||
158 | |||
159 | pci@8500 { | ||
160 | interrupt-map-mask = <f800 0 0 7>; | ||
161 | interrupt-map = < | ||
162 | |||
163 | /* IDSEL 0x0E -mini PCI */ | ||
164 | 7000 0 0 1 700 12 8 | ||
165 | 7000 0 0 2 700 12 8 | ||
166 | 7000 0 0 3 700 12 8 | ||
167 | 7000 0 0 4 700 12 8 | ||
168 | |||
169 | /* IDSEL 0x0F - PCI slot */ | ||
170 | 7800 0 0 1 700 11 8 | ||
171 | 7800 0 0 2 700 12 8 | ||
172 | 7800 0 0 3 700 11 8 | ||
173 | 7800 0 0 4 700 12 8>; | ||
174 | interrupt-parent = <700>; | ||
175 | interrupts = <42 8>; | ||
176 | bus-range = <0 0>; | ||
177 | ranges = <02000000 0 90000000 90000000 0 10000000 | ||
178 | 42000000 0 80000000 80000000 0 10000000 | ||
179 | 01000000 0 00000000 e2000000 0 00100000>; | ||
180 | clock-frequency = <3f940aa>; | ||
181 | #interrupt-cells = <1>; | ||
182 | #size-cells = <2>; | ||
183 | #address-cells = <3>; | ||
184 | reg = <8500 100>; | ||
185 | compatible = "83xx"; | ||
186 | device_type = "pci"; | ||
187 | }; | ||
188 | |||
189 | crypto@30000 { | ||
190 | device_type = "crypto"; | ||
191 | model = "SEC2"; | ||
192 | compatible = "talitos"; | ||
193 | reg = <30000 7000>; | ||
194 | interrupts = <b 8>; | ||
195 | interrupt-parent = <700>; | ||
196 | /* Rev. 2.2 */ | ||
197 | num-channels = <1>; | ||
198 | channel-fifo-len = <18>; | ||
199 | exec-units-mask = <0000004c>; | ||
200 | descriptor-types-mask = <0122003f>; | ||
201 | }; | ||
202 | |||
203 | /* IPIC | ||
204 | * interrupts cell = <intr #, sense> | ||
205 | * sense values match linux IORESOURCE_IRQ_* defines: | ||
206 | * sense == 8: Level, low assertion | ||
207 | * sense == 2: Edge, high-to-low change | ||
208 | */ | ||
209 | pic@700 { | ||
210 | linux,phandle = <700>; | ||
211 | interrupt-controller; | ||
212 | #address-cells = <0>; | ||
213 | #interrupt-cells = <2>; | ||
214 | reg = <700 100>; | ||
215 | built-in; | ||
216 | device_type = "ipic"; | ||
217 | }; | ||
218 | }; | ||
219 | }; | ||
diff --git a/arch/powerpc/boot/dts/mpc8349emitxgp.dts b/arch/powerpc/boot/dts/mpc8349emitxgp.dts new file mode 100644 index 000000000000..3190774de1d8 --- /dev/null +++ b/arch/powerpc/boot/dts/mpc8349emitxgp.dts | |||
@@ -0,0 +1,187 @@ | |||
1 | /* | ||
2 | * MPC8349E-mITX-GP Device Tree Source | ||
3 | * | ||
4 | * Copyright 2007 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | */ | ||
11 | / { | ||
12 | model = "MPC8349EMITXGP"; | ||
13 | compatible = "MPC834xMITXGP"; | ||
14 | #address-cells = <1>; | ||
15 | #size-cells = <1>; | ||
16 | |||
17 | cpus { | ||
18 | #cpus = <1>; | ||
19 | #address-cells = <1>; | ||
20 | #size-cells = <0>; | ||
21 | |||
22 | PowerPC,8349@0 { | ||
23 | device_type = "cpu"; | ||
24 | reg = <0>; | ||
25 | d-cache-line-size = <20>; | ||
26 | i-cache-line-size = <20>; | ||
27 | d-cache-size = <8000>; | ||
28 | i-cache-size = <8000>; | ||
29 | timebase-frequency = <0>; // from bootloader | ||
30 | bus-frequency = <0>; // from bootloader | ||
31 | clock-frequency = <0>; // from bootloader | ||
32 | 32-bit; | ||
33 | }; | ||
34 | }; | ||
35 | |||
36 | memory { | ||
37 | device_type = "memory"; | ||
38 | reg = <00000000 10000000>; | ||
39 | }; | ||
40 | |||
41 | soc8349@e0000000 { | ||
42 | #address-cells = <1>; | ||
43 | #size-cells = <1>; | ||
44 | #interrupt-cells = <2>; | ||
45 | device_type = "soc"; | ||
46 | ranges = <0 e0000000 00100000>; | ||
47 | reg = <e0000000 00000200>; | ||
48 | bus-frequency = <0>; // from bootloader | ||
49 | |||
50 | wdt@200 { | ||
51 | device_type = "watchdog"; | ||
52 | compatible = "mpc83xx_wdt"; | ||
53 | reg = <200 100>; | ||
54 | }; | ||
55 | |||
56 | i2c@3000 { | ||
57 | device_type = "i2c"; | ||
58 | compatible = "fsl-i2c"; | ||
59 | reg = <3000 100>; | ||
60 | interrupts = <e 8>; | ||
61 | interrupt-parent = <700>; | ||
62 | dfsrr; | ||
63 | }; | ||
64 | |||
65 | i2c@3100 { | ||
66 | device_type = "i2c"; | ||
67 | compatible = "fsl-i2c"; | ||
68 | reg = <3100 100>; | ||
69 | interrupts = <f 8>; | ||
70 | interrupt-parent = <700>; | ||
71 | dfsrr; | ||
72 | }; | ||
73 | |||
74 | spi@7000 { | ||
75 | device_type = "spi"; | ||
76 | compatible = "mpc83xx_spi"; | ||
77 | reg = <7000 1000>; | ||
78 | interrupts = <10 8>; | ||
79 | interrupt-parent = <700>; | ||
80 | mode = <0>; | ||
81 | }; | ||
82 | |||
83 | usb@23000 { | ||
84 | device_type = "usb"; | ||
85 | compatible = "fsl-usb2-dr"; | ||
86 | reg = <23000 1000>; | ||
87 | #address-cells = <1>; | ||
88 | #size-cells = <0>; | ||
89 | interrupt-parent = <700>; | ||
90 | interrupts = <26 2>; | ||
91 | dr_mode = "otg"; | ||
92 | phy_type = "ulpi"; | ||
93 | }; | ||
94 | |||
95 | mdio@24520 { | ||
96 | device_type = "mdio"; | ||
97 | compatible = "gianfar"; | ||
98 | reg = <24520 20>; | ||
99 | #address-cells = <1>; | ||
100 | #size-cells = <0>; | ||
101 | linux,phandle = <24520>; | ||
102 | |||
103 | /* Vitesse 8201 */ | ||
104 | ethernet-phy@1c { | ||
105 | linux,phandle = <245201c>; | ||
106 | interrupt-parent = <700>; | ||
107 | interrupts = <12 2>; | ||
108 | reg = <1c>; | ||
109 | device_type = "ethernet-phy"; | ||
110 | }; | ||
111 | }; | ||
112 | |||
113 | ethernet@24000 { | ||
114 | device_type = "network"; | ||
115 | model = "TSEC"; | ||
116 | compatible = "gianfar"; | ||
117 | reg = <24000 1000>; | ||
118 | local-mac-address = [ 00 00 00 00 00 00 ]; | ||
119 | interrupts = <20 8 21 8 22 8>; | ||
120 | interrupt-parent = <700>; | ||
121 | phy-handle = <245201c>; | ||
122 | }; | ||
123 | |||
124 | serial@4500 { | ||
125 | device_type = "serial"; | ||
126 | compatible = "ns16550"; | ||
127 | reg = <4500 100>; | ||
128 | clock-frequency = <0>; // from bootloader | ||
129 | interrupts = <9 8>; | ||
130 | interrupt-parent = <700>; | ||
131 | }; | ||
132 | |||
133 | serial@4600 { | ||
134 | device_type = "serial"; | ||
135 | compatible = "ns16550"; | ||
136 | reg = <4600 100>; | ||
137 | clock-frequency = <0>; // from bootloader | ||
138 | interrupts = <a 8>; | ||
139 | interrupt-parent = <700>; | ||
140 | }; | ||
141 | |||
142 | pci@8600 { | ||
143 | interrupt-map-mask = <f800 0 0 7>; | ||
144 | interrupt-map = < | ||
145 | /* IDSEL 0x0F - PCI Slot */ | ||
146 | 7800 0 0 1 700 14 8 /* PCI_INTA */ | ||
147 | 7800 0 0 2 700 15 8 /* PCI_INTB */ | ||
148 | >; | ||
149 | interrupt-parent = <700>; | ||
150 | interrupts = <43 8>; | ||
151 | bus-range = <1 1>; | ||
152 | ranges = <42000000 0 a0000000 a0000000 0 10000000 | ||
153 | 02000000 0 b0000000 b0000000 0 10000000 | ||
154 | 01000000 0 00000000 e3000000 0 01000000>; | ||
155 | clock-frequency = <3f940aa>; | ||
156 | #interrupt-cells = <1>; | ||
157 | #size-cells = <2>; | ||
158 | #address-cells = <3>; | ||
159 | reg = <8600 100>; | ||
160 | compatible = "83xx"; | ||
161 | device_type = "pci"; | ||
162 | }; | ||
163 | |||
164 | crypto@30000 { | ||
165 | device_type = "crypto"; | ||
166 | model = "SEC2"; | ||
167 | compatible = "talitos"; | ||
168 | reg = <30000 10000>; | ||
169 | interrupts = <b 8>; | ||
170 | interrupt-parent = <700>; | ||
171 | num-channels = <4>; | ||
172 | channel-fifo-len = <18>; | ||
173 | exec-units-mask = <0000007e>; | ||
174 | descriptor-types-mask = <01010ebf>; | ||
175 | }; | ||
176 | |||
177 | pic@700 { | ||
178 | linux,phandle = <700>; | ||
179 | interrupt-controller; | ||
180 | #address-cells = <0>; | ||
181 | #interrupt-cells = <2>; | ||
182 | reg = <700 100>; | ||
183 | built-in; | ||
184 | device_type = "ipic"; | ||
185 | }; | ||
186 | }; | ||
187 | }; | ||
diff --git a/arch/powerpc/boot/dts/mpc8349emds.dts b/arch/powerpc/boot/dts/mpc834x_mds.dts index efceb3432653..dc121b3cb4a9 100644 --- a/arch/powerpc/boot/dts/mpc8349emds.dts +++ b/arch/powerpc/boot/dts/mpc834x_mds.dts | |||
@@ -39,6 +39,11 @@ | |||
39 | reg = <00000000 10000000>; // 256MB at 0 | 39 | reg = <00000000 10000000>; // 256MB at 0 |
40 | }; | 40 | }; |
41 | 41 | ||
42 | bcsr@e2400000 { | ||
43 | device_type = "board-control"; | ||
44 | reg = <e2400000 8000>; | ||
45 | }; | ||
46 | |||
42 | soc8349@e0000000 { | 47 | soc8349@e0000000 { |
43 | #address-cells = <1>; | 48 | #address-cells = <1>; |
44 | #size-cells = <1>; | 49 | #size-cells = <1>; |
@@ -103,6 +108,7 @@ | |||
103 | #size-cells = <0>; | 108 | #size-cells = <0>; |
104 | interrupt-parent = <700>; | 109 | interrupt-parent = <700>; |
105 | interrupts = <26 2>; | 110 | interrupts = <26 2>; |
111 | dr_mode = "otg"; | ||
106 | phy_type = "ulpi"; | 112 | phy_type = "ulpi"; |
107 | }; | 113 | }; |
108 | 114 | ||
diff --git a/arch/powerpc/boot/dts/mpc8568mds.dts b/arch/powerpc/boot/dts/mpc8568mds.dts new file mode 100644 index 000000000000..06d24653e422 --- /dev/null +++ b/arch/powerpc/boot/dts/mpc8568mds.dts | |||
@@ -0,0 +1,380 @@ | |||
1 | /* | ||
2 | * MPC8568E MDS Device Tree Source | ||
3 | * | ||
4 | * Copyright 2007 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | */ | ||
11 | |||
12 | |||
13 | /* | ||
14 | /memreserve/ 00000000 1000000; | ||
15 | */ | ||
16 | |||
17 | / { | ||
18 | model = "MPC8568EMDS"; | ||
19 | compatible = "MPC85xxMDS"; | ||
20 | #address-cells = <1>; | ||
21 | #size-cells = <1>; | ||
22 | linux,phandle = <100>; | ||
23 | |||
24 | cpus { | ||
25 | #cpus = <1>; | ||
26 | #address-cells = <1>; | ||
27 | #size-cells = <0>; | ||
28 | linux,phandle = <200>; | ||
29 | |||
30 | PowerPC,8568@0 { | ||
31 | device_type = "cpu"; | ||
32 | reg = <0>; | ||
33 | d-cache-line-size = <20>; // 32 bytes | ||
34 | i-cache-line-size = <20>; // 32 bytes | ||
35 | d-cache-size = <8000>; // L1, 32K | ||
36 | i-cache-size = <8000>; // L1, 32K | ||
37 | timebase-frequency = <0>; | ||
38 | bus-frequency = <0>; | ||
39 | clock-frequency = <0>; | ||
40 | 32-bit; | ||
41 | linux,phandle = <201>; | ||
42 | }; | ||
43 | }; | ||
44 | |||
45 | memory { | ||
46 | device_type = "memory"; | ||
47 | linux,phandle = <300>; | ||
48 | reg = <00000000 10000000>; | ||
49 | }; | ||
50 | |||
51 | bcsr@f8000000 { | ||
52 | device_type = "board-control"; | ||
53 | reg = <f8000000 8000>; | ||
54 | }; | ||
55 | |||
56 | soc8568@e0000000 { | ||
57 | #address-cells = <1>; | ||
58 | #size-cells = <1>; | ||
59 | #interrupt-cells = <2>; | ||
60 | device_type = "soc"; | ||
61 | ranges = <0 e0000000 00100000>; | ||
62 | reg = <e0000000 00100000>; | ||
63 | bus-frequency = <0>; | ||
64 | |||
65 | i2c@3000 { | ||
66 | device_type = "i2c"; | ||
67 | compatible = "fsl-i2c"; | ||
68 | reg = <3000 100>; | ||
69 | interrupts = <1b 2>; | ||
70 | interrupt-parent = <40000>; | ||
71 | dfsrr; | ||
72 | }; | ||
73 | |||
74 | i2c@3100 { | ||
75 | device_type = "i2c"; | ||
76 | compatible = "fsl-i2c"; | ||
77 | reg = <3100 100>; | ||
78 | interrupts = <1b 2>; | ||
79 | interrupt-parent = <40000>; | ||
80 | dfsrr; | ||
81 | }; | ||
82 | |||
83 | mdio@24520 { | ||
84 | #address-cells = <1>; | ||
85 | #size-cells = <0>; | ||
86 | device_type = "mdio"; | ||
87 | compatible = "gianfar"; | ||
88 | reg = <24520 20>; | ||
89 | linux,phandle = <24520>; | ||
90 | ethernet-phy@0 { | ||
91 | linux,phandle = <2452000>; | ||
92 | interrupt-parent = <40000>; | ||
93 | interrupts = <31 1>; | ||
94 | reg = <0>; | ||
95 | device_type = "ethernet-phy"; | ||
96 | }; | ||
97 | ethernet-phy@1 { | ||
98 | linux,phandle = <2452001>; | ||
99 | interrupt-parent = <40000>; | ||
100 | interrupts = <32 1>; | ||
101 | reg = <1>; | ||
102 | device_type = "ethernet-phy"; | ||
103 | }; | ||
104 | |||
105 | ethernet-phy@2 { | ||
106 | linux,phandle = <2452002>; | ||
107 | interrupt-parent = <40000>; | ||
108 | interrupts = <31 1>; | ||
109 | reg = <2>; | ||
110 | device_type = "ethernet-phy"; | ||
111 | }; | ||
112 | ethernet-phy@3 { | ||
113 | linux,phandle = <2452003>; | ||
114 | interrupt-parent = <40000>; | ||
115 | interrupts = <32 1>; | ||
116 | reg = <3>; | ||
117 | device_type = "ethernet-phy"; | ||
118 | }; | ||
119 | }; | ||
120 | |||
121 | ethernet@24000 { | ||
122 | #address-cells = <1>; | ||
123 | #size-cells = <0>; | ||
124 | device_type = "network"; | ||
125 | model = "eTSEC"; | ||
126 | compatible = "gianfar"; | ||
127 | reg = <24000 1000>; | ||
128 | mac-address = [ 00 00 00 00 00 00 ]; | ||
129 | interrupts = <d 2 e 2 12 2>; | ||
130 | interrupt-parent = <40000>; | ||
131 | phy-handle = <2452002>; | ||
132 | }; | ||
133 | |||
134 | ethernet@25000 { | ||
135 | #address-cells = <1>; | ||
136 | #size-cells = <0>; | ||
137 | device_type = "network"; | ||
138 | model = "eTSEC"; | ||
139 | compatible = "gianfar"; | ||
140 | reg = <25000 1000>; | ||
141 | mac-address = [ 00 00 00 00 00 00]; | ||
142 | interrupts = <13 2 14 2 18 2>; | ||
143 | interrupt-parent = <40000>; | ||
144 | phy-handle = <2452003>; | ||
145 | }; | ||
146 | |||
147 | serial@4500 { | ||
148 | device_type = "serial"; | ||
149 | compatible = "ns16550"; | ||
150 | reg = <4500 100>; | ||
151 | clock-frequency = <0>; | ||
152 | interrupts = <1a 2>; | ||
153 | interrupt-parent = <40000>; | ||
154 | }; | ||
155 | |||
156 | serial@4600 { | ||
157 | device_type = "serial"; | ||
158 | compatible = "ns16550"; | ||
159 | reg = <4600 100>; | ||
160 | clock-frequency = <0>; | ||
161 | interrupts = <1a 2>; | ||
162 | interrupt-parent = <40000>; | ||
163 | }; | ||
164 | |||
165 | crypto@30000 { | ||
166 | device_type = "crypto"; | ||
167 | model = "SEC2"; | ||
168 | compatible = "talitos"; | ||
169 | reg = <30000 f000>; | ||
170 | interrupts = <1d 2>; | ||
171 | interrupt-parent = <40000>; | ||
172 | num-channels = <4>; | ||
173 | channel-fifo-len = <18>; | ||
174 | exec-units-mask = <000000fe>; | ||
175 | descriptor-types-mask = <012b0ebf>; | ||
176 | }; | ||
177 | |||
178 | pic@40000 { | ||
179 | linux,phandle = <40000>; | ||
180 | clock-frequency = <0>; | ||
181 | interrupt-controller; | ||
182 | #address-cells = <0>; | ||
183 | #interrupt-cells = <2>; | ||
184 | reg = <40000 40000>; | ||
185 | built-in; | ||
186 | compatible = "chrp,open-pic"; | ||
187 | device_type = "open-pic"; | ||
188 | big-endian; | ||
189 | }; | ||
190 | par_io@e0100 { | ||
191 | reg = <e0100 100>; | ||
192 | device_type = "par_io"; | ||
193 | num-ports = <7>; | ||
194 | |||
195 | ucc_pin@01 { | ||
196 | linux,phandle = <e010001>; | ||
197 | pio-map = < | ||
198 | /* port pin dir open_drain assignment has_irq */ | ||
199 | 4 0a 1 0 2 0 /* TxD0 */ | ||
200 | 4 09 1 0 2 0 /* TxD1 */ | ||
201 | 4 08 1 0 2 0 /* TxD2 */ | ||
202 | 4 07 1 0 2 0 /* TxD3 */ | ||
203 | 4 17 1 0 2 0 /* TxD4 */ | ||
204 | 4 16 1 0 2 0 /* TxD5 */ | ||
205 | 4 15 1 0 2 0 /* TxD6 */ | ||
206 | 4 14 1 0 2 0 /* TxD7 */ | ||
207 | 4 0f 2 0 2 0 /* RxD0 */ | ||
208 | 4 0e 2 0 2 0 /* RxD1 */ | ||
209 | 4 0d 2 0 2 0 /* RxD2 */ | ||
210 | 4 0c 2 0 2 0 /* RxD3 */ | ||
211 | 4 1d 2 0 2 0 /* RxD4 */ | ||
212 | 4 1c 2 0 2 0 /* RxD5 */ | ||
213 | 4 1b 2 0 2 0 /* RxD6 */ | ||
214 | 4 1a 2 0 2 0 /* RxD7 */ | ||
215 | 4 0b 1 0 2 0 /* TX_EN */ | ||
216 | 4 18 1 0 2 0 /* TX_ER */ | ||
217 | 4 0f 2 0 2 0 /* RX_DV */ | ||
218 | 4 1e 2 0 2 0 /* RX_ER */ | ||
219 | 4 11 2 0 2 0 /* RX_CLK */ | ||
220 | 4 13 1 0 2 0 /* GTX_CLK */ | ||
221 | 1 1f 2 0 3 0>; /* GTX125 */ | ||
222 | }; | ||
223 | ucc_pin@02 { | ||
224 | linux,phandle = <e010002>; | ||
225 | pio-map = < | ||
226 | /* port pin dir open_drain assignment has_irq */ | ||
227 | 5 0a 1 0 2 0 /* TxD0 */ | ||
228 | 5 09 1 0 2 0 /* TxD1 */ | ||
229 | 5 08 1 0 2 0 /* TxD2 */ | ||
230 | 5 07 1 0 2 0 /* TxD3 */ | ||
231 | 5 17 1 0 2 0 /* TxD4 */ | ||
232 | 5 16 1 0 2 0 /* TxD5 */ | ||
233 | 5 15 1 0 2 0 /* TxD6 */ | ||
234 | 5 14 1 0 2 0 /* TxD7 */ | ||
235 | 5 0f 2 0 2 0 /* RxD0 */ | ||
236 | 5 0e 2 0 2 0 /* RxD1 */ | ||
237 | 5 0d 2 0 2 0 /* RxD2 */ | ||
238 | 5 0c 2 0 2 0 /* RxD3 */ | ||
239 | 5 1d 2 0 2 0 /* RxD4 */ | ||
240 | 5 1c 2 0 2 0 /* RxD5 */ | ||
241 | 5 1b 2 0 2 0 /* RxD6 */ | ||
242 | 5 1a 2 0 2 0 /* RxD7 */ | ||
243 | 5 0b 1 0 2 0 /* TX_EN */ | ||
244 | 5 18 1 0 2 0 /* TX_ER */ | ||
245 | 5 10 2 0 2 0 /* RX_DV */ | ||
246 | 5 1e 2 0 2 0 /* RX_ER */ | ||
247 | 5 11 2 0 2 0 /* RX_CLK */ | ||
248 | 5 13 1 0 2 0 /* GTX_CLK */ | ||
249 | 1 1f 2 0 3 0 /* GTX125 */ | ||
250 | 4 06 3 0 2 0 /* MDIO */ | ||
251 | 4 05 1 0 2 0>; /* MDC */ | ||
252 | }; | ||
253 | }; | ||
254 | }; | ||
255 | |||
256 | qe@e0080000 { | ||
257 | #address-cells = <1>; | ||
258 | #size-cells = <1>; | ||
259 | device_type = "qe"; | ||
260 | model = "QE"; | ||
261 | ranges = <0 e0080000 00040000>; | ||
262 | reg = <e0080000 480>; | ||
263 | brg-frequency = <0>; | ||
264 | bus-frequency = <179A7B00>; | ||
265 | |||
266 | muram@10000 { | ||
267 | device_type = "muram"; | ||
268 | ranges = <0 00010000 0000c000>; | ||
269 | |||
270 | data-only@0{ | ||
271 | reg = <0 c000>; | ||
272 | }; | ||
273 | }; | ||
274 | |||
275 | spi@4c0 { | ||
276 | device_type = "spi"; | ||
277 | compatible = "fsl_spi"; | ||
278 | reg = <4c0 40>; | ||
279 | interrupts = <2>; | ||
280 | interrupt-parent = <80>; | ||
281 | mode = "cpu"; | ||
282 | }; | ||
283 | |||
284 | spi@500 { | ||
285 | device_type = "spi"; | ||
286 | compatible = "fsl_spi"; | ||
287 | reg = <500 40>; | ||
288 | interrupts = <1>; | ||
289 | interrupt-parent = <80>; | ||
290 | mode = "cpu"; | ||
291 | }; | ||
292 | |||
293 | ucc@2000 { | ||
294 | device_type = "network"; | ||
295 | compatible = "ucc_geth"; | ||
296 | model = "UCC"; | ||
297 | device-id = <1>; | ||
298 | reg = <2000 200>; | ||
299 | interrupts = <20>; | ||
300 | interrupt-parent = <80>; | ||
301 | mac-address = [ 00 04 9f 00 23 23 ]; | ||
302 | rx-clock = <0>; | ||
303 | tx-clock = <19>; | ||
304 | phy-handle = <212000>; | ||
305 | pio-handle = <e010001>; | ||
306 | }; | ||
307 | |||
308 | ucc@3000 { | ||
309 | device_type = "network"; | ||
310 | compatible = "ucc_geth"; | ||
311 | model = "UCC"; | ||
312 | device-id = <2>; | ||
313 | reg = <3000 200>; | ||
314 | interrupts = <21>; | ||
315 | interrupt-parent = <80>; | ||
316 | mac-address = [ 00 11 22 33 44 55 ]; | ||
317 | rx-clock = <0>; | ||
318 | tx-clock = <14>; | ||
319 | phy-handle = <212001>; | ||
320 | pio-handle = <e010002>; | ||
321 | }; | ||
322 | |||
323 | mdio@2120 { | ||
324 | #address-cells = <1>; | ||
325 | #size-cells = <0>; | ||
326 | reg = <2120 18>; | ||
327 | device_type = "mdio"; | ||
328 | compatible = "ucc_geth_phy"; | ||
329 | |||
330 | /* These are the same PHYs as on | ||
331 | * gianfar's MDIO bus */ | ||
332 | ethernet-phy@00 { | ||
333 | linux,phandle = <212000>; | ||
334 | interrupt-parent = <40000>; | ||
335 | interrupts = <31 1>; | ||
336 | reg = <0>; | ||
337 | device_type = "ethernet-phy"; | ||
338 | interface = <6>; //ENET_1000_GMII | ||
339 | }; | ||
340 | ethernet-phy@01 { | ||
341 | linux,phandle = <212001>; | ||
342 | interrupt-parent = <40000>; | ||
343 | interrupts = <32 1>; | ||
344 | reg = <1>; | ||
345 | device_type = "ethernet-phy"; | ||
346 | interface = <6>; | ||
347 | }; | ||
348 | ethernet-phy@02 { | ||
349 | linux,phandle = <212002>; | ||
350 | interrupt-parent = <40000>; | ||
351 | interrupts = <31 1>; | ||
352 | reg = <2>; | ||
353 | device_type = "ethernet-phy"; | ||
354 | interface = <6>; //ENET_1000_GMII | ||
355 | }; | ||
356 | ethernet-phy@03 { | ||
357 | linux,phandle = <212003>; | ||
358 | interrupt-parent = <40000>; | ||
359 | interrupts = <32 1>; | ||
360 | reg = <3>; | ||
361 | device_type = "ethernet-phy"; | ||
362 | interface = <6>; //ENET_1000_GMII | ||
363 | }; | ||
364 | }; | ||
365 | |||
366 | qeic@80 { | ||
367 | linux,phandle = <80>; | ||
368 | interrupt-controller; | ||
369 | device_type = "qeic"; | ||
370 | #address-cells = <0>; | ||
371 | #interrupt-cells = <1>; | ||
372 | reg = <80 80>; | ||
373 | built-in; | ||
374 | big-endian; | ||
375 | interrupts = <1e 2 1e 2>; //high:30 low:30 | ||
376 | interrupt-parent = <40000>; | ||
377 | }; | ||
378 | |||
379 | }; | ||
380 | }; | ||
diff --git a/arch/powerpc/configs/linkstation_defconfig b/arch/powerpc/configs/linkstation_defconfig index 405c1c908213..dde66a597a8d 100644 --- a/arch/powerpc/configs/linkstation_defconfig +++ b/arch/powerpc/configs/linkstation_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.20-rc5 | 3 | # Linux kernel version: 2.6.20-rc6 |
4 | # Mon Jan 22 22:17:58 2007 | 4 | # Sun Jan 28 23:13:56 2007 |
5 | # | 5 | # |
6 | # CONFIG_PPC64 is not set | 6 | # CONFIG_PPC64 is not set |
7 | CONFIG_PPC32=y | 7 | CONFIG_PPC32=y |
@@ -58,7 +58,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 | |||
58 | # | 58 | # |
59 | # General setup | 59 | # General setup |
60 | # | 60 | # |
61 | CONFIG_LOCALVERSION="-kuroboxHG" | 61 | CONFIG_LOCALVERSION="" |
62 | CONFIG_LOCALVERSION_AUTO=y | 62 | CONFIG_LOCALVERSION_AUTO=y |
63 | CONFIG_SWAP=y | 63 | CONFIG_SWAP=y |
64 | CONFIG_SYSVIPC=y | 64 | CONFIG_SYSVIPC=y |
@@ -206,7 +206,7 @@ CONFIG_SPLIT_PTLOCK_CPUS=4 | |||
206 | CONFIG_PROC_DEVICETREE=y | 206 | CONFIG_PROC_DEVICETREE=y |
207 | # CONFIG_CMDLINE_BOOL is not set | 207 | # CONFIG_CMDLINE_BOOL is not set |
208 | # CONFIG_PM is not set | 208 | # CONFIG_PM is not set |
209 | # CONFIG_SECCOMP is not set | 209 | CONFIG_SECCOMP=y |
210 | CONFIG_ISA_DMA_API=y | 210 | CONFIG_ISA_DMA_API=y |
211 | 211 | ||
212 | # | 212 | # |
@@ -312,39 +312,40 @@ CONFIG_NF_CONNTRACK=m | |||
312 | # CONFIG_NF_CT_ACCT is not set | 312 | # CONFIG_NF_CT_ACCT is not set |
313 | # CONFIG_NF_CONNTRACK_MARK is not set | 313 | # CONFIG_NF_CONNTRACK_MARK is not set |
314 | # CONFIG_NF_CONNTRACK_EVENTS is not set | 314 | # CONFIG_NF_CONNTRACK_EVENTS is not set |
315 | # CONFIG_NF_CT_PROTO_SCTP is not set | 315 | CONFIG_NF_CT_PROTO_GRE=m |
316 | # CONFIG_NF_CONNTRACK_AMANDA is not set | 316 | CONFIG_NF_CT_PROTO_SCTP=m |
317 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
317 | CONFIG_NF_CONNTRACK_FTP=m | 318 | CONFIG_NF_CONNTRACK_FTP=m |
318 | # CONFIG_NF_CONNTRACK_H323 is not set | 319 | CONFIG_NF_CONNTRACK_H323=m |
319 | CONFIG_NF_CONNTRACK_IRC=m | 320 | CONFIG_NF_CONNTRACK_IRC=m |
320 | # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set | 321 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m |
321 | # CONFIG_NF_CONNTRACK_PPTP is not set | 322 | CONFIG_NF_CONNTRACK_PPTP=m |
322 | # CONFIG_NF_CONNTRACK_SIP is not set | 323 | CONFIG_NF_CONNTRACK_SIP=m |
323 | CONFIG_NF_CONNTRACK_TFTP=m | 324 | CONFIG_NF_CONNTRACK_TFTP=m |
324 | CONFIG_NETFILTER_XTABLES=m | 325 | CONFIG_NETFILTER_XTABLES=m |
325 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | 326 | # CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set |
326 | # CONFIG_NETFILTER_XT_TARGET_DSCP is not set | 327 | # CONFIG_NETFILTER_XT_TARGET_DSCP is not set |
327 | CONFIG_NETFILTER_XT_TARGET_MARK=m | 328 | # CONFIG_NETFILTER_XT_TARGET_MARK is not set |
328 | # CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set | 329 | # CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set |
329 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | 330 | # CONFIG_NETFILTER_XT_TARGET_NFLOG is not set |
330 | # CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set | 331 | # CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set |
331 | # CONFIG_NETFILTER_XT_MATCH_COMMENT is not set | 332 | # CONFIG_NETFILTER_XT_MATCH_COMMENT is not set |
332 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | 333 | # CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set |
333 | # CONFIG_NETFILTER_XT_MATCH_DCCP is not set | 334 | # CONFIG_NETFILTER_XT_MATCH_DCCP is not set |
334 | # CONFIG_NETFILTER_XT_MATCH_DSCP is not set | 335 | # CONFIG_NETFILTER_XT_MATCH_DSCP is not set |
335 | CONFIG_NETFILTER_XT_MATCH_ESP=m | 336 | # CONFIG_NETFILTER_XT_MATCH_ESP is not set |
336 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | 337 | # CONFIG_NETFILTER_XT_MATCH_HELPER is not set |
337 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | 338 | # CONFIG_NETFILTER_XT_MATCH_LENGTH is not set |
338 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | 339 | # CONFIG_NETFILTER_XT_MATCH_LIMIT is not set |
339 | CONFIG_NETFILTER_XT_MATCH_MAC=m | 340 | CONFIG_NETFILTER_XT_MATCH_MAC=m |
340 | CONFIG_NETFILTER_XT_MATCH_MARK=m | 341 | # CONFIG_NETFILTER_XT_MATCH_MARK is not set |
341 | # CONFIG_NETFILTER_XT_MATCH_POLICY is not set | 342 | # CONFIG_NETFILTER_XT_MATCH_POLICY is not set |
342 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | 343 | # CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set |
343 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | 344 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m |
344 | # CONFIG_NETFILTER_XT_MATCH_QUOTA is not set | 345 | # CONFIG_NETFILTER_XT_MATCH_QUOTA is not set |
345 | # CONFIG_NETFILTER_XT_MATCH_REALM is not set | 346 | # CONFIG_NETFILTER_XT_MATCH_REALM is not set |
346 | # CONFIG_NETFILTER_XT_MATCH_SCTP is not set | 347 | # CONFIG_NETFILTER_XT_MATCH_SCTP is not set |
347 | # CONFIG_NETFILTER_XT_MATCH_STATE is not set | 348 | CONFIG_NETFILTER_XT_MATCH_STATE=m |
348 | # CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set | 349 | # CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set |
349 | # CONFIG_NETFILTER_XT_MATCH_STRING is not set | 350 | # CONFIG_NETFILTER_XT_MATCH_STRING is not set |
350 | # CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set | 351 | # CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set |
@@ -359,12 +360,12 @@ CONFIG_NF_CONNTRACK_PROC_COMPAT=y | |||
359 | CONFIG_IP_NF_IPTABLES=m | 360 | CONFIG_IP_NF_IPTABLES=m |
360 | CONFIG_IP_NF_MATCH_IPRANGE=m | 361 | CONFIG_IP_NF_MATCH_IPRANGE=m |
361 | # CONFIG_IP_NF_MATCH_TOS is not set | 362 | # CONFIG_IP_NF_MATCH_TOS is not set |
362 | # CONFIG_IP_NF_MATCH_RECENT is not set | 363 | CONFIG_IP_NF_MATCH_RECENT=m |
363 | # CONFIG_IP_NF_MATCH_ECN is not set | 364 | # CONFIG_IP_NF_MATCH_ECN is not set |
364 | # CONFIG_IP_NF_MATCH_AH is not set | 365 | # CONFIG_IP_NF_MATCH_AH is not set |
365 | # CONFIG_IP_NF_MATCH_TTL is not set | 366 | # CONFIG_IP_NF_MATCH_TTL is not set |
366 | # CONFIG_IP_NF_MATCH_OWNER is not set | 367 | CONFIG_IP_NF_MATCH_OWNER=m |
367 | # CONFIG_IP_NF_MATCH_ADDRTYPE is not set | 368 | CONFIG_IP_NF_MATCH_ADDRTYPE=m |
368 | CONFIG_IP_NF_FILTER=m | 369 | CONFIG_IP_NF_FILTER=m |
369 | CONFIG_IP_NF_TARGET_REJECT=m | 370 | CONFIG_IP_NF_TARGET_REJECT=m |
370 | # CONFIG_IP_NF_TARGET_LOG is not set | 371 | # CONFIG_IP_NF_TARGET_LOG is not set |
@@ -374,16 +375,17 @@ CONFIG_NF_NAT=m | |||
374 | CONFIG_NF_NAT_NEEDED=y | 375 | CONFIG_NF_NAT_NEEDED=y |
375 | CONFIG_IP_NF_TARGET_MASQUERADE=m | 376 | CONFIG_IP_NF_TARGET_MASQUERADE=m |
376 | CONFIG_IP_NF_TARGET_REDIRECT=m | 377 | CONFIG_IP_NF_TARGET_REDIRECT=m |
377 | CONFIG_IP_NF_TARGET_NETMAP=m | 378 | # CONFIG_IP_NF_TARGET_NETMAP is not set |
378 | CONFIG_IP_NF_TARGET_SAME=m | 379 | # CONFIG_IP_NF_TARGET_SAME is not set |
379 | # CONFIG_NF_NAT_SNMP_BASIC is not set | 380 | # CONFIG_NF_NAT_SNMP_BASIC is not set |
381 | CONFIG_NF_NAT_PROTO_GRE=m | ||
380 | CONFIG_NF_NAT_FTP=m | 382 | CONFIG_NF_NAT_FTP=m |
381 | CONFIG_NF_NAT_IRC=m | 383 | CONFIG_NF_NAT_IRC=m |
382 | CONFIG_NF_NAT_TFTP=m | 384 | CONFIG_NF_NAT_TFTP=m |
383 | # CONFIG_NF_NAT_AMANDA is not set | 385 | CONFIG_NF_NAT_AMANDA=m |
384 | # CONFIG_NF_NAT_PPTP is not set | 386 | CONFIG_NF_NAT_PPTP=m |
385 | # CONFIG_NF_NAT_H323 is not set | 387 | CONFIG_NF_NAT_H323=m |
386 | # CONFIG_NF_NAT_SIP is not set | 388 | CONFIG_NF_NAT_SIP=m |
387 | CONFIG_IP_NF_MANGLE=m | 389 | CONFIG_IP_NF_MANGLE=m |
388 | CONFIG_IP_NF_TARGET_TOS=m | 390 | CONFIG_IP_NF_TARGET_TOS=m |
389 | CONFIG_IP_NF_TARGET_ECN=m | 391 | CONFIG_IP_NF_TARGET_ECN=m |
@@ -472,6 +474,7 @@ CONFIG_MTD_PARTITIONS=y | |||
472 | # User Modules And Translation Layers | 474 | # User Modules And Translation Layers |
473 | # | 475 | # |
474 | CONFIG_MTD_CHAR=y | 476 | CONFIG_MTD_CHAR=y |
477 | CONFIG_MTD_BLKDEVS=y | ||
475 | CONFIG_MTD_BLOCK=y | 478 | CONFIG_MTD_BLOCK=y |
476 | # CONFIG_FTL is not set | 479 | # CONFIG_FTL is not set |
477 | # CONFIG_NFTL is not set | 480 | # CONFIG_NFTL is not set |
@@ -518,6 +521,7 @@ CONFIG_MTD_PHYSMAP=y | |||
518 | CONFIG_MTD_PHYSMAP_START=0xffc00000 | 521 | CONFIG_MTD_PHYSMAP_START=0xffc00000 |
519 | CONFIG_MTD_PHYSMAP_LEN=0x400000 | 522 | CONFIG_MTD_PHYSMAP_LEN=0x400000 |
520 | CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | 523 | CONFIG_MTD_PHYSMAP_BANKWIDTH=1 |
524 | # CONFIG_MTD_PHYSMAP_OF is not set | ||
521 | # CONFIG_MTD_PLATRAM is not set | 525 | # CONFIG_MTD_PLATRAM is not set |
522 | 526 | ||
523 | # | 527 | # |
@@ -540,6 +544,7 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | |||
540 | # NAND Flash Device Drivers | 544 | # NAND Flash Device Drivers |
541 | # | 545 | # |
542 | # CONFIG_MTD_NAND is not set | 546 | # CONFIG_MTD_NAND is not set |
547 | # CONFIG_MTD_NAND_CAFE is not set | ||
543 | 548 | ||
544 | # | 549 | # |
545 | # OneNAND Flash Device Drivers | 550 | # OneNAND Flash Device Drivers |
@@ -696,7 +701,7 @@ CONFIG_ATA=y | |||
696 | # CONFIG_PATA_HPT37X is not set | 701 | # CONFIG_PATA_HPT37X is not set |
697 | # CONFIG_PATA_HPT3X2N is not set | 702 | # CONFIG_PATA_HPT3X2N is not set |
698 | # CONFIG_PATA_HPT3X3 is not set | 703 | # CONFIG_PATA_HPT3X3 is not set |
699 | # CONFIG_PATA_IT821X is not set | 704 | CONFIG_PATA_IT821X=y |
700 | # CONFIG_PATA_JMICRON is not set | 705 | # CONFIG_PATA_JMICRON is not set |
701 | # CONFIG_PATA_TRIFLEX is not set | 706 | # CONFIG_PATA_TRIFLEX is not set |
702 | # CONFIG_PATA_MARVELL is not set | 707 | # CONFIG_PATA_MARVELL is not set |
@@ -763,11 +768,33 @@ CONFIG_TUN=m | |||
763 | # | 768 | # |
764 | # PHY device support | 769 | # PHY device support |
765 | # | 770 | # |
771 | # CONFIG_PHYLIB is not set | ||
766 | 772 | ||
767 | # | 773 | # |
768 | # Ethernet (10 or 100Mbit) | 774 | # Ethernet (10 or 100Mbit) |
769 | # | 775 | # |
770 | # CONFIG_NET_ETHERNET is not set | 776 | CONFIG_NET_ETHERNET=y |
777 | # CONFIG_MII is not set | ||
778 | # CONFIG_HAPPYMEAL is not set | ||
779 | # CONFIG_SUNGEM is not set | ||
780 | # CONFIG_CASSINI is not set | ||
781 | # CONFIG_NET_VENDOR_3COM is not set | ||
782 | |||
783 | # | ||
784 | # Tulip family network device support | ||
785 | # | ||
786 | CONFIG_NET_TULIP=y | ||
787 | # CONFIG_DE2104X is not set | ||
788 | CONFIG_TULIP=y | ||
789 | # CONFIG_TULIP_MWI is not set | ||
790 | CONFIG_TULIP_MMIO=y | ||
791 | # CONFIG_TULIP_NAPI is not set | ||
792 | # CONFIG_DE4X5 is not set | ||
793 | # CONFIG_WINBOND_840 is not set | ||
794 | # CONFIG_DM9102 is not set | ||
795 | # CONFIG_ULI526X is not set | ||
796 | # CONFIG_HP100 is not set | ||
797 | # CONFIG_NET_PCI is not set | ||
771 | 798 | ||
772 | # | 799 | # |
773 | # Ethernet (1000 Mbit) | 800 | # Ethernet (1000 Mbit) |
@@ -829,7 +856,8 @@ CONFIG_NET_RADIO=y | |||
829 | # CONFIG_USB_ZD1201 is not set | 856 | # CONFIG_USB_ZD1201 is not set |
830 | # CONFIG_HOSTAP is not set | 857 | # CONFIG_HOSTAP is not set |
831 | # CONFIG_BCM43XX is not set | 858 | # CONFIG_BCM43XX is not set |
832 | # CONFIG_ZD1211RW is not set | 859 | CONFIG_ZD1211RW=m |
860 | # CONFIG_ZD1211RW_DEBUG is not set | ||
833 | CONFIG_NET_WIRELESS=y | 861 | CONFIG_NET_WIRELESS=y |
834 | 862 | ||
835 | # | 863 | # |
@@ -1098,7 +1126,7 @@ CONFIG_DUMMY_CONSOLE=y | |||
1098 | # | 1126 | # |
1099 | # HID Devices | 1127 | # HID Devices |
1100 | # | 1128 | # |
1101 | CONFIG_HID=y | 1129 | CONFIG_HID=m |
1102 | 1130 | ||
1103 | # | 1131 | # |
1104 | # USB support | 1132 | # USB support |
@@ -1115,7 +1143,6 @@ CONFIG_USB=y | |||
1115 | CONFIG_USB_DEVICEFS=y | 1143 | CONFIG_USB_DEVICEFS=y |
1116 | # CONFIG_USB_BANDWIDTH is not set | 1144 | # CONFIG_USB_BANDWIDTH is not set |
1117 | # CONFIG_USB_DYNAMIC_MINORS is not set | 1145 | # CONFIG_USB_DYNAMIC_MINORS is not set |
1118 | # CONFIG_USB_MULTITHREAD_PROBE is not set | ||
1119 | # CONFIG_USB_OTG is not set | 1146 | # CONFIG_USB_OTG is not set |
1120 | 1147 | ||
1121 | # | 1148 | # |
@@ -1136,7 +1163,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
1136 | # USB Device Class drivers | 1163 | # USB Device Class drivers |
1137 | # | 1164 | # |
1138 | # CONFIG_USB_ACM is not set | 1165 | # CONFIG_USB_ACM is not set |
1139 | # CONFIG_USB_PRINTER is not set | 1166 | CONFIG_USB_PRINTER=m |
1140 | 1167 | ||
1141 | # | 1168 | # |
1142 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | 1169 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' |
@@ -1371,7 +1398,11 @@ CONFIG_FS_MBCACHE=y | |||
1371 | # CONFIG_REISERFS_FS is not set | 1398 | # CONFIG_REISERFS_FS is not set |
1372 | # CONFIG_JFS_FS is not set | 1399 | # CONFIG_JFS_FS is not set |
1373 | CONFIG_FS_POSIX_ACL=y | 1400 | CONFIG_FS_POSIX_ACL=y |
1374 | # CONFIG_XFS_FS is not set | 1401 | CONFIG_XFS_FS=m |
1402 | # CONFIG_XFS_QUOTA is not set | ||
1403 | # CONFIG_XFS_SECURITY is not set | ||
1404 | # CONFIG_XFS_POSIX_ACL is not set | ||
1405 | # CONFIG_XFS_RT is not set | ||
1375 | # CONFIG_GFS2_FS is not set | 1406 | # CONFIG_GFS2_FS is not set |
1376 | # CONFIG_OCFS2_FS is not set | 1407 | # CONFIG_OCFS2_FS is not set |
1377 | # CONFIG_MINIX_FS is not set | 1408 | # CONFIG_MINIX_FS is not set |
@@ -1461,7 +1492,12 @@ CONFIG_SUNRPC_GSS=y | |||
1461 | CONFIG_RPCSEC_GSS_KRB5=y | 1492 | CONFIG_RPCSEC_GSS_KRB5=y |
1462 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1493 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
1463 | # CONFIG_SMB_FS is not set | 1494 | # CONFIG_SMB_FS is not set |
1464 | # CONFIG_CIFS is not set | 1495 | CONFIG_CIFS=m |
1496 | # CONFIG_CIFS_STATS is not set | ||
1497 | # CONFIG_CIFS_WEAK_PW_HASH is not set | ||
1498 | # CONFIG_CIFS_XATTR is not set | ||
1499 | # CONFIG_CIFS_DEBUG2 is not set | ||
1500 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1465 | # CONFIG_NCP_FS is not set | 1501 | # CONFIG_NCP_FS is not set |
1466 | # CONFIG_CODA_FS is not set | 1502 | # CONFIG_CODA_FS is not set |
1467 | # CONFIG_AFS_FS is not set | 1503 | # CONFIG_AFS_FS is not set |
@@ -1495,7 +1531,7 @@ CONFIG_NLS_CODEPAGE_437=m | |||
1495 | # CONFIG_NLS_CODEPAGE_869 is not set | 1531 | # CONFIG_NLS_CODEPAGE_869 is not set |
1496 | # CONFIG_NLS_CODEPAGE_936 is not set | 1532 | # CONFIG_NLS_CODEPAGE_936 is not set |
1497 | # CONFIG_NLS_CODEPAGE_950 is not set | 1533 | # CONFIG_NLS_CODEPAGE_950 is not set |
1498 | # CONFIG_NLS_CODEPAGE_932 is not set | 1534 | CONFIG_NLS_CODEPAGE_932=m |
1499 | # CONFIG_NLS_CODEPAGE_949 is not set | 1535 | # CONFIG_NLS_CODEPAGE_949 is not set |
1500 | # CONFIG_NLS_CODEPAGE_874 is not set | 1536 | # CONFIG_NLS_CODEPAGE_874 is not set |
1501 | # CONFIG_NLS_ISO8859_8 is not set | 1537 | # CONFIG_NLS_ISO8859_8 is not set |
@@ -1526,12 +1562,14 @@ CONFIG_NLS_UTF8=m | |||
1526 | # Library routines | 1562 | # Library routines |
1527 | # | 1563 | # |
1528 | CONFIG_BITREVERSE=y | 1564 | CONFIG_BITREVERSE=y |
1529 | # CONFIG_CRC_CCITT is not set | 1565 | CONFIG_CRC_CCITT=m |
1530 | # CONFIG_CRC16 is not set | 1566 | # CONFIG_CRC16 is not set |
1531 | CONFIG_CRC32=y | 1567 | CONFIG_CRC32=y |
1532 | CONFIG_LIBCRC32C=m | 1568 | CONFIG_LIBCRC32C=m |
1533 | CONFIG_ZLIB_INFLATE=m | 1569 | CONFIG_ZLIB_INFLATE=m |
1534 | CONFIG_ZLIB_DEFLATE=m | 1570 | CONFIG_ZLIB_DEFLATE=m |
1571 | CONFIG_TEXTSEARCH=y | ||
1572 | CONFIG_TEXTSEARCH_KMP=m | ||
1535 | CONFIG_PLIST=y | 1573 | CONFIG_PLIST=y |
1536 | CONFIG_IOMAP_COPY=y | 1574 | CONFIG_IOMAP_COPY=y |
1537 | 1575 | ||
diff --git a/arch/powerpc/configs/mpc8313_rdb_defconfig b/arch/powerpc/configs/mpc8313_rdb_defconfig new file mode 100644 index 000000000000..f87523716c44 --- /dev/null +++ b/arch/powerpc/configs/mpc8313_rdb_defconfig | |||
@@ -0,0 +1,1409 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20 | ||
4 | # Wed Feb 7 22:08:04 2007 | ||
5 | # | ||
6 | # CONFIG_PPC64 is not set | ||
7 | CONFIG_PPC32=y | ||
8 | CONFIG_PPC_MERGE=y | ||
9 | CONFIG_MMU=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_IRQ_PER_CPU=y | ||
12 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
13 | CONFIG_ARCH_HAS_ILOG2_U32=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
16 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
17 | CONFIG_PPC=y | ||
18 | CONFIG_EARLY_PRINTK=y | ||
19 | CONFIG_GENERIC_NVRAM=y | ||
20 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
21 | CONFIG_ARCH_MAY_HAVE_PC_FDC=y | ||
22 | CONFIG_PPC_OF=y | ||
23 | CONFIG_PPC_UDBG_16550=y | ||
24 | # CONFIG_GENERIC_TBSYNC is not set | ||
25 | CONFIG_AUDIT_ARCH=y | ||
26 | CONFIG_GENERIC_BUG=y | ||
27 | CONFIG_DEFAULT_UIMAGE=y | ||
28 | |||
29 | # | ||
30 | # Processor support | ||
31 | # | ||
32 | # CONFIG_CLASSIC32 is not set | ||
33 | # CONFIG_PPC_82xx is not set | ||
34 | CONFIG_PPC_83xx=y | ||
35 | # CONFIG_PPC_85xx is not set | ||
36 | # CONFIG_PPC_86xx is not set | ||
37 | # CONFIG_PPC_8xx is not set | ||
38 | # CONFIG_40x is not set | ||
39 | # CONFIG_44x is not set | ||
40 | # CONFIG_E200 is not set | ||
41 | CONFIG_6xx=y | ||
42 | CONFIG_83xx=y | ||
43 | CONFIG_PPC_FPU=y | ||
44 | # CONFIG_PPC_DCR_NATIVE is not set | ||
45 | # CONFIG_PPC_DCR_MMIO is not set | ||
46 | CONFIG_PPC_STD_MMU=y | ||
47 | CONFIG_PPC_STD_MMU_32=y | ||
48 | # CONFIG_SMP is not set | ||
49 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
50 | |||
51 | # | ||
52 | # Code maturity level options | ||
53 | # | ||
54 | CONFIG_EXPERIMENTAL=y | ||
55 | CONFIG_BROKEN_ON_SMP=y | ||
56 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
57 | |||
58 | # | ||
59 | # General setup | ||
60 | # | ||
61 | CONFIG_LOCALVERSION="" | ||
62 | CONFIG_LOCALVERSION_AUTO=y | ||
63 | CONFIG_SWAP=y | ||
64 | CONFIG_SYSVIPC=y | ||
65 | # CONFIG_IPC_NS is not set | ||
66 | # CONFIG_POSIX_MQUEUE is not set | ||
67 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
68 | # CONFIG_TASKSTATS is not set | ||
69 | # CONFIG_UTS_NS is not set | ||
70 | # CONFIG_AUDIT is not set | ||
71 | # CONFIG_IKCONFIG is not set | ||
72 | CONFIG_SYSFS_DEPRECATED=y | ||
73 | # CONFIG_RELAY is not set | ||
74 | CONFIG_INITRAMFS_SOURCE="" | ||
75 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
76 | CONFIG_SYSCTL=y | ||
77 | CONFIG_EMBEDDED=y | ||
78 | CONFIG_SYSCTL_SYSCALL=y | ||
79 | # CONFIG_KALLSYMS is not set | ||
80 | CONFIG_HOTPLUG=y | ||
81 | CONFIG_PRINTK=y | ||
82 | CONFIG_BUG=y | ||
83 | CONFIG_ELF_CORE=y | ||
84 | CONFIG_BASE_FULL=y | ||
85 | CONFIG_FUTEX=y | ||
86 | # CONFIG_EPOLL is not set | ||
87 | CONFIG_SHMEM=y | ||
88 | CONFIG_SLAB=y | ||
89 | CONFIG_VM_EVENT_COUNTERS=y | ||
90 | CONFIG_RT_MUTEXES=y | ||
91 | # CONFIG_TINY_SHMEM is not set | ||
92 | CONFIG_BASE_SMALL=0 | ||
93 | # CONFIG_SLOB is not set | ||
94 | |||
95 | # | ||
96 | # Loadable module support | ||
97 | # | ||
98 | CONFIG_MODULES=y | ||
99 | CONFIG_MODULE_UNLOAD=y | ||
100 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
101 | # CONFIG_MODVERSIONS is not set | ||
102 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
103 | # CONFIG_KMOD is not set | ||
104 | |||
105 | # | ||
106 | # Block layer | ||
107 | # | ||
108 | CONFIG_BLOCK=y | ||
109 | # CONFIG_LBD is not set | ||
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_LSF is not set | ||
112 | |||
113 | # | ||
114 | # IO Schedulers | ||
115 | # | ||
116 | CONFIG_IOSCHED_NOOP=y | ||
117 | CONFIG_IOSCHED_AS=y | ||
118 | CONFIG_IOSCHED_DEADLINE=y | ||
119 | CONFIG_IOSCHED_CFQ=y | ||
120 | CONFIG_DEFAULT_AS=y | ||
121 | # CONFIG_DEFAULT_DEADLINE is not set | ||
122 | # CONFIG_DEFAULT_CFQ is not set | ||
123 | # CONFIG_DEFAULT_NOOP is not set | ||
124 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
125 | CONFIG_PPC_GEN550=y | ||
126 | # CONFIG_WANT_EARLY_SERIAL is not set | ||
127 | |||
128 | # | ||
129 | # Platform support | ||
130 | # | ||
131 | CONFIG_MPC8313_RDB=y | ||
132 | # CONFIG_MPC832x_MDS is not set | ||
133 | # CONFIG_MPC834x_SYS is not set | ||
134 | # CONFIG_MPC834x_ITX is not set | ||
135 | # CONFIG_MPC8360E_PB is not set | ||
136 | CONFIG_PPC_MPC831x=y | ||
137 | # CONFIG_MPIC is not set | ||
138 | |||
139 | # | ||
140 | # Kernel options | ||
141 | # | ||
142 | # CONFIG_HIGHMEM is not set | ||
143 | # CONFIG_HZ_100 is not set | ||
144 | CONFIG_HZ_250=y | ||
145 | # CONFIG_HZ_300 is not set | ||
146 | # CONFIG_HZ_1000 is not set | ||
147 | CONFIG_HZ=250 | ||
148 | CONFIG_PREEMPT_NONE=y | ||
149 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
150 | # CONFIG_PREEMPT is not set | ||
151 | CONFIG_BINFMT_ELF=y | ||
152 | # CONFIG_BINFMT_MISC is not set | ||
153 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
154 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
155 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
156 | CONFIG_SELECT_MEMORY_MODEL=y | ||
157 | CONFIG_FLATMEM_MANUAL=y | ||
158 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
159 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
160 | CONFIG_FLATMEM=y | ||
161 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
162 | # CONFIG_SPARSEMEM_STATIC is not set | ||
163 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
164 | # CONFIG_RESOURCES_64BIT is not set | ||
165 | CONFIG_PROC_DEVICETREE=y | ||
166 | # CONFIG_CMDLINE_BOOL is not set | ||
167 | # CONFIG_PM is not set | ||
168 | CONFIG_SECCOMP=y | ||
169 | CONFIG_ISA_DMA_API=y | ||
170 | |||
171 | # | ||
172 | # Bus options | ||
173 | # | ||
174 | CONFIG_GENERIC_ISA_DMA=y | ||
175 | # CONFIG_MPIC_WEIRD is not set | ||
176 | # CONFIG_PPC_I8259 is not set | ||
177 | CONFIG_PPC_INDIRECT_PCI=y | ||
178 | CONFIG_FSL_SOC=y | ||
179 | CONFIG_PCI=y | ||
180 | CONFIG_PCI_DOMAINS=y | ||
181 | # CONFIG_PCIEPORTBUS is not set | ||
182 | # CONFIG_PCI_DEBUG is not set | ||
183 | |||
184 | # | ||
185 | # PCCARD (PCMCIA/CardBus) support | ||
186 | # | ||
187 | # CONFIG_PCCARD is not set | ||
188 | |||
189 | # | ||
190 | # PCI Hotplug Support | ||
191 | # | ||
192 | # CONFIG_HOTPLUG_PCI is not set | ||
193 | |||
194 | # | ||
195 | # Advanced setup | ||
196 | # | ||
197 | # CONFIG_ADVANCED_OPTIONS is not set | ||
198 | |||
199 | # | ||
200 | # Default settings for advanced configuration options are used | ||
201 | # | ||
202 | CONFIG_HIGHMEM_START=0xfe000000 | ||
203 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
204 | CONFIG_KERNEL_START=0xc0000000 | ||
205 | CONFIG_TASK_SIZE=0x80000000 | ||
206 | CONFIG_BOOT_LOAD=0x00800000 | ||
207 | |||
208 | # | ||
209 | # Networking | ||
210 | # | ||
211 | CONFIG_NET=y | ||
212 | |||
213 | # | ||
214 | # Networking options | ||
215 | # | ||
216 | # CONFIG_NETDEBUG is not set | ||
217 | CONFIG_PACKET=y | ||
218 | # CONFIG_PACKET_MMAP is not set | ||
219 | CONFIG_UNIX=y | ||
220 | CONFIG_XFRM=y | ||
221 | # CONFIG_XFRM_USER is not set | ||
222 | # CONFIG_XFRM_SUB_POLICY is not set | ||
223 | # CONFIG_NET_KEY is not set | ||
224 | CONFIG_INET=y | ||
225 | CONFIG_IP_MULTICAST=y | ||
226 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
227 | CONFIG_IP_FIB_HASH=y | ||
228 | CONFIG_IP_PNP=y | ||
229 | CONFIG_IP_PNP_DHCP=y | ||
230 | CONFIG_IP_PNP_BOOTP=y | ||
231 | # CONFIG_IP_PNP_RARP is not set | ||
232 | # CONFIG_NET_IPIP is not set | ||
233 | # CONFIG_NET_IPGRE is not set | ||
234 | # CONFIG_IP_MROUTE is not set | ||
235 | # CONFIG_ARPD is not set | ||
236 | CONFIG_SYN_COOKIES=y | ||
237 | # CONFIG_INET_AH is not set | ||
238 | # CONFIG_INET_ESP is not set | ||
239 | # CONFIG_INET_IPCOMP is not set | ||
240 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
241 | # CONFIG_INET_TUNNEL is not set | ||
242 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
243 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
244 | CONFIG_INET_XFRM_MODE_BEET=y | ||
245 | CONFIG_INET_DIAG=y | ||
246 | CONFIG_INET_TCP_DIAG=y | ||
247 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
248 | CONFIG_TCP_CONG_CUBIC=y | ||
249 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
250 | # CONFIG_TCP_MD5SIG is not set | ||
251 | # CONFIG_IPV6 is not set | ||
252 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
253 | # CONFIG_INET6_TUNNEL is not set | ||
254 | # CONFIG_NETWORK_SECMARK is not set | ||
255 | # CONFIG_NETFILTER is not set | ||
256 | |||
257 | # | ||
258 | # DCCP Configuration (EXPERIMENTAL) | ||
259 | # | ||
260 | # CONFIG_IP_DCCP is not set | ||
261 | |||
262 | # | ||
263 | # SCTP Configuration (EXPERIMENTAL) | ||
264 | # | ||
265 | # CONFIG_IP_SCTP is not set | ||
266 | |||
267 | # | ||
268 | # TIPC Configuration (EXPERIMENTAL) | ||
269 | # | ||
270 | # CONFIG_TIPC is not set | ||
271 | # CONFIG_ATM is not set | ||
272 | # CONFIG_BRIDGE is not set | ||
273 | # CONFIG_VLAN_8021Q is not set | ||
274 | # CONFIG_DECNET is not set | ||
275 | # CONFIG_LLC2 is not set | ||
276 | # CONFIG_IPX is not set | ||
277 | # CONFIG_ATALK is not set | ||
278 | # CONFIG_X25 is not set | ||
279 | # CONFIG_LAPB is not set | ||
280 | # CONFIG_ECONET is not set | ||
281 | # CONFIG_WAN_ROUTER is not set | ||
282 | |||
283 | # | ||
284 | # QoS and/or fair queueing | ||
285 | # | ||
286 | # CONFIG_NET_SCHED is not set | ||
287 | |||
288 | # | ||
289 | # Network testing | ||
290 | # | ||
291 | # CONFIG_NET_PKTGEN is not set | ||
292 | # CONFIG_HAMRADIO is not set | ||
293 | # CONFIG_IRDA is not set | ||
294 | # CONFIG_BT is not set | ||
295 | # CONFIG_IEEE80211 is not set | ||
296 | |||
297 | # | ||
298 | # Device Drivers | ||
299 | # | ||
300 | |||
301 | # | ||
302 | # Generic Driver Options | ||
303 | # | ||
304 | CONFIG_STANDALONE=y | ||
305 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
306 | # CONFIG_FW_LOADER is not set | ||
307 | # CONFIG_DEBUG_DRIVER is not set | ||
308 | # CONFIG_SYS_HYPERVISOR is not set | ||
309 | |||
310 | # | ||
311 | # Connector - unified userspace <-> kernelspace linker | ||
312 | # | ||
313 | # CONFIG_CONNECTOR is not set | ||
314 | |||
315 | # | ||
316 | # Memory Technology Devices (MTD) | ||
317 | # | ||
318 | CONFIG_MTD=y | ||
319 | # CONFIG_MTD_DEBUG is not set | ||
320 | # CONFIG_MTD_CONCAT is not set | ||
321 | # CONFIG_MTD_PARTITIONS is not set | ||
322 | |||
323 | # | ||
324 | # User Modules And Translation Layers | ||
325 | # | ||
326 | CONFIG_MTD_CHAR=y | ||
327 | # CONFIG_MTD_BLKDEVS is not set | ||
328 | # CONFIG_MTD_BLOCK is not set | ||
329 | # CONFIG_MTD_BLOCK_RO is not set | ||
330 | # CONFIG_FTL is not set | ||
331 | # CONFIG_NFTL is not set | ||
332 | # CONFIG_INFTL is not set | ||
333 | # CONFIG_RFD_FTL is not set | ||
334 | # CONFIG_SSFDC is not set | ||
335 | |||
336 | # | ||
337 | # RAM/ROM/Flash chip drivers | ||
338 | # | ||
339 | CONFIG_MTD_CFI=y | ||
340 | # CONFIG_MTD_JEDECPROBE is not set | ||
341 | CONFIG_MTD_GEN_PROBE=y | ||
342 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
343 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
344 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
345 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
346 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
347 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
348 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
349 | CONFIG_MTD_CFI_I1=y | ||
350 | CONFIG_MTD_CFI_I2=y | ||
351 | # CONFIG_MTD_CFI_I4 is not set | ||
352 | # CONFIG_MTD_CFI_I8 is not set | ||
353 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
354 | CONFIG_MTD_CFI_AMDSTD=y | ||
355 | # CONFIG_MTD_CFI_STAA is not set | ||
356 | CONFIG_MTD_CFI_UTIL=y | ||
357 | # CONFIG_MTD_RAM is not set | ||
358 | # CONFIG_MTD_ROM is not set | ||
359 | # CONFIG_MTD_ABSENT is not set | ||
360 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
361 | |||
362 | # | ||
363 | # Mapping drivers for chip access | ||
364 | # | ||
365 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
366 | CONFIG_MTD_PHYSMAP=y | ||
367 | CONFIG_MTD_PHYSMAP_START=0xfe000000 | ||
368 | CONFIG_MTD_PHYSMAP_LEN=0x1000000 | ||
369 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
370 | # CONFIG_MTD_PHYSMAP_OF is not set | ||
371 | # CONFIG_MTD_PLATRAM is not set | ||
372 | |||
373 | # | ||
374 | # Self-contained MTD device drivers | ||
375 | # | ||
376 | # CONFIG_MTD_PMC551 is not set | ||
377 | # CONFIG_MTD_DATAFLASH is not set | ||
378 | # CONFIG_MTD_M25P80 is not set | ||
379 | # CONFIG_MTD_SLRAM is not set | ||
380 | # CONFIG_MTD_PHRAM is not set | ||
381 | # CONFIG_MTD_MTDRAM is not set | ||
382 | # CONFIG_MTD_BLOCK2MTD is not set | ||
383 | |||
384 | # | ||
385 | # Disk-On-Chip Device Drivers | ||
386 | # | ||
387 | # CONFIG_MTD_DOC2000 is not set | ||
388 | # CONFIG_MTD_DOC2001 is not set | ||
389 | # CONFIG_MTD_DOC2001PLUS is not set | ||
390 | |||
391 | # | ||
392 | # NAND Flash Device Drivers | ||
393 | # | ||
394 | # CONFIG_MTD_NAND is not set | ||
395 | # CONFIG_MTD_NAND_CAFE is not set | ||
396 | |||
397 | # | ||
398 | # OneNAND Flash Device Drivers | ||
399 | # | ||
400 | # CONFIG_MTD_ONENAND is not set | ||
401 | |||
402 | # | ||
403 | # Parallel port support | ||
404 | # | ||
405 | # CONFIG_PARPORT is not set | ||
406 | |||
407 | # | ||
408 | # Plug and Play support | ||
409 | # | ||
410 | |||
411 | # | ||
412 | # Block devices | ||
413 | # | ||
414 | # CONFIG_BLK_DEV_FD is not set | ||
415 | # CONFIG_BLK_CPQ_DA is not set | ||
416 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
417 | # CONFIG_BLK_DEV_DAC960 is not set | ||
418 | # CONFIG_BLK_DEV_UMEM is not set | ||
419 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
420 | CONFIG_BLK_DEV_LOOP=y | ||
421 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
422 | # CONFIG_BLK_DEV_NBD is not set | ||
423 | # CONFIG_BLK_DEV_SX8 is not set | ||
424 | # CONFIG_BLK_DEV_UB is not set | ||
425 | CONFIG_BLK_DEV_RAM=y | ||
426 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
427 | CONFIG_BLK_DEV_RAM_SIZE=32768 | ||
428 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
429 | CONFIG_BLK_DEV_INITRD=y | ||
430 | # CONFIG_CDROM_PKTCDVD is not set | ||
431 | # CONFIG_ATA_OVER_ETH is not set | ||
432 | |||
433 | # | ||
434 | # Misc devices | ||
435 | # | ||
436 | # CONFIG_SGI_IOC4 is not set | ||
437 | # CONFIG_TIFM_CORE is not set | ||
438 | |||
439 | # | ||
440 | # ATA/ATAPI/MFM/RLL support | ||
441 | # | ||
442 | # CONFIG_IDE is not set | ||
443 | |||
444 | # | ||
445 | # SCSI device support | ||
446 | # | ||
447 | # CONFIG_RAID_ATTRS is not set | ||
448 | CONFIG_SCSI=y | ||
449 | # CONFIG_SCSI_TGT is not set | ||
450 | # CONFIG_SCSI_NETLINK is not set | ||
451 | CONFIG_SCSI_PROC_FS=y | ||
452 | |||
453 | # | ||
454 | # SCSI support type (disk, tape, CD-ROM) | ||
455 | # | ||
456 | # CONFIG_BLK_DEV_SD is not set | ||
457 | # CONFIG_CHR_DEV_ST is not set | ||
458 | # CONFIG_CHR_DEV_OSST is not set | ||
459 | # CONFIG_BLK_DEV_SR is not set | ||
460 | CONFIG_CHR_DEV_SG=y | ||
461 | # CONFIG_CHR_DEV_SCH is not set | ||
462 | |||
463 | # | ||
464 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
465 | # | ||
466 | # CONFIG_SCSI_MULTI_LUN is not set | ||
467 | # CONFIG_SCSI_CONSTANTS is not set | ||
468 | # CONFIG_SCSI_LOGGING is not set | ||
469 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
470 | |||
471 | # | ||
472 | # SCSI Transports | ||
473 | # | ||
474 | CONFIG_SCSI_SPI_ATTRS=y | ||
475 | # CONFIG_SCSI_FC_ATTRS is not set | ||
476 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
477 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
478 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
479 | |||
480 | # | ||
481 | # SCSI low-level drivers | ||
482 | # | ||
483 | # CONFIG_ISCSI_TCP is not set | ||
484 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
485 | # CONFIG_SCSI_3W_9XXX is not set | ||
486 | # CONFIG_SCSI_ACARD is not set | ||
487 | # CONFIG_SCSI_AACRAID is not set | ||
488 | # CONFIG_SCSI_AIC7XXX is not set | ||
489 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
490 | # CONFIG_SCSI_AIC79XX is not set | ||
491 | # CONFIG_SCSI_AIC94XX is not set | ||
492 | # CONFIG_SCSI_DPT_I2O is not set | ||
493 | # CONFIG_SCSI_ARCMSR is not set | ||
494 | # CONFIG_MEGARAID_NEWGEN is not set | ||
495 | # CONFIG_MEGARAID_LEGACY is not set | ||
496 | # CONFIG_MEGARAID_SAS is not set | ||
497 | # CONFIG_SCSI_HPTIOP is not set | ||
498 | # CONFIG_SCSI_BUSLOGIC is not set | ||
499 | # CONFIG_SCSI_DMX3191D is not set | ||
500 | # CONFIG_SCSI_EATA is not set | ||
501 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
502 | # CONFIG_SCSI_GDTH is not set | ||
503 | # CONFIG_SCSI_IPS is not set | ||
504 | # CONFIG_SCSI_INITIO is not set | ||
505 | # CONFIG_SCSI_INIA100 is not set | ||
506 | # CONFIG_SCSI_STEX is not set | ||
507 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
508 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
509 | # CONFIG_SCSI_QLA_FC is not set | ||
510 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
511 | # CONFIG_SCSI_LPFC is not set | ||
512 | # CONFIG_SCSI_DC395x is not set | ||
513 | # CONFIG_SCSI_DC390T is not set | ||
514 | # CONFIG_SCSI_NSP32 is not set | ||
515 | # CONFIG_SCSI_DEBUG is not set | ||
516 | # CONFIG_SCSI_SRP is not set | ||
517 | |||
518 | # | ||
519 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
520 | # | ||
521 | # CONFIG_ATA is not set | ||
522 | |||
523 | # | ||
524 | # Multi-device support (RAID and LVM) | ||
525 | # | ||
526 | CONFIG_MD=y | ||
527 | CONFIG_BLK_DEV_MD=y | ||
528 | CONFIG_MD_LINEAR=y | ||
529 | CONFIG_MD_RAID0=y | ||
530 | CONFIG_MD_RAID1=y | ||
531 | # CONFIG_MD_RAID10 is not set | ||
532 | # CONFIG_MD_RAID456 is not set | ||
533 | # CONFIG_MD_MULTIPATH is not set | ||
534 | # CONFIG_MD_FAULTY is not set | ||
535 | # CONFIG_BLK_DEV_DM is not set | ||
536 | |||
537 | # | ||
538 | # Fusion MPT device support | ||
539 | # | ||
540 | # CONFIG_FUSION is not set | ||
541 | # CONFIG_FUSION_SPI is not set | ||
542 | # CONFIG_FUSION_FC is not set | ||
543 | # CONFIG_FUSION_SAS is not set | ||
544 | |||
545 | # | ||
546 | # IEEE 1394 (FireWire) support | ||
547 | # | ||
548 | # CONFIG_IEEE1394 is not set | ||
549 | |||
550 | # | ||
551 | # I2O device support | ||
552 | # | ||
553 | # CONFIG_I2O is not set | ||
554 | |||
555 | # | ||
556 | # Macintosh device drivers | ||
557 | # | ||
558 | # CONFIG_MAC_EMUMOUSEBTN is not set | ||
559 | # CONFIG_WINDFARM is not set | ||
560 | |||
561 | # | ||
562 | # Network device support | ||
563 | # | ||
564 | CONFIG_NETDEVICES=y | ||
565 | # CONFIG_DUMMY is not set | ||
566 | # CONFIG_BONDING is not set | ||
567 | # CONFIG_EQUALIZER is not set | ||
568 | # CONFIG_TUN is not set | ||
569 | |||
570 | # | ||
571 | # ARCnet devices | ||
572 | # | ||
573 | # CONFIG_ARCNET is not set | ||
574 | |||
575 | # | ||
576 | # PHY device support | ||
577 | # | ||
578 | CONFIG_PHYLIB=y | ||
579 | |||
580 | # | ||
581 | # MII PHY device drivers | ||
582 | # | ||
583 | # CONFIG_MARVELL_PHY is not set | ||
584 | # CONFIG_DAVICOM_PHY is not set | ||
585 | # CONFIG_QSEMI_PHY is not set | ||
586 | # CONFIG_LXT_PHY is not set | ||
587 | CONFIG_CICADA_PHY=y | ||
588 | # CONFIG_VITESSE_PHY is not set | ||
589 | # CONFIG_SMSC_PHY is not set | ||
590 | # CONFIG_BROADCOM_PHY is not set | ||
591 | # CONFIG_FIXED_PHY is not set | ||
592 | |||
593 | # | ||
594 | # Ethernet (10 or 100Mbit) | ||
595 | # | ||
596 | CONFIG_NET_ETHERNET=y | ||
597 | CONFIG_MII=y | ||
598 | # CONFIG_HAPPYMEAL is not set | ||
599 | # CONFIG_SUNGEM is not set | ||
600 | # CONFIG_CASSINI is not set | ||
601 | # CONFIG_NET_VENDOR_3COM is not set | ||
602 | |||
603 | # | ||
604 | # Tulip family network device support | ||
605 | # | ||
606 | # CONFIG_NET_TULIP is not set | ||
607 | # CONFIG_HP100 is not set | ||
608 | CONFIG_NET_PCI=y | ||
609 | # CONFIG_PCNET32 is not set | ||
610 | # CONFIG_AMD8111_ETH is not set | ||
611 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
612 | # CONFIG_B44 is not set | ||
613 | # CONFIG_FORCEDETH is not set | ||
614 | # CONFIG_DGRS is not set | ||
615 | # CONFIG_EEPRO100 is not set | ||
616 | CONFIG_E100=y | ||
617 | # CONFIG_FEALNX is not set | ||
618 | # CONFIG_NATSEMI is not set | ||
619 | # CONFIG_NE2K_PCI is not set | ||
620 | # CONFIG_8139CP is not set | ||
621 | # CONFIG_8139TOO is not set | ||
622 | # CONFIG_SIS900 is not set | ||
623 | # CONFIG_EPIC100 is not set | ||
624 | # CONFIG_SUNDANCE is not set | ||
625 | # CONFIG_TLAN is not set | ||
626 | # CONFIG_VIA_RHINE is not set | ||
627 | |||
628 | # | ||
629 | # Ethernet (1000 Mbit) | ||
630 | # | ||
631 | # CONFIG_ACENIC is not set | ||
632 | # CONFIG_DL2K is not set | ||
633 | # CONFIG_E1000 is not set | ||
634 | # CONFIG_NS83820 is not set | ||
635 | # CONFIG_HAMACHI is not set | ||
636 | # CONFIG_YELLOWFIN is not set | ||
637 | # CONFIG_R8169 is not set | ||
638 | # CONFIG_SIS190 is not set | ||
639 | # CONFIG_SKGE is not set | ||
640 | # CONFIG_SKY2 is not set | ||
641 | # CONFIG_SK98LIN is not set | ||
642 | # CONFIG_VIA_VELOCITY is not set | ||
643 | # CONFIG_TIGON3 is not set | ||
644 | # CONFIG_BNX2 is not set | ||
645 | CONFIG_GIANFAR=y | ||
646 | CONFIG_GFAR_NAPI=y | ||
647 | # CONFIG_QLA3XXX is not set | ||
648 | |||
649 | # | ||
650 | # Ethernet (10000 Mbit) | ||
651 | # | ||
652 | # CONFIG_CHELSIO_T1 is not set | ||
653 | # CONFIG_IXGB is not set | ||
654 | # CONFIG_S2IO is not set | ||
655 | # CONFIG_MYRI10GE is not set | ||
656 | # CONFIG_NETXEN_NIC is not set | ||
657 | |||
658 | # | ||
659 | # Token Ring devices | ||
660 | # | ||
661 | # CONFIG_TR is not set | ||
662 | |||
663 | # | ||
664 | # Wireless LAN (non-hamradio) | ||
665 | # | ||
666 | # CONFIG_NET_RADIO is not set | ||
667 | |||
668 | # | ||
669 | # Wan interfaces | ||
670 | # | ||
671 | # CONFIG_WAN is not set | ||
672 | # CONFIG_FDDI is not set | ||
673 | # CONFIG_HIPPI is not set | ||
674 | # CONFIG_PPP is not set | ||
675 | # CONFIG_SLIP is not set | ||
676 | # CONFIG_NET_FC is not set | ||
677 | # CONFIG_SHAPER is not set | ||
678 | # CONFIG_NETCONSOLE is not set | ||
679 | # CONFIG_NETPOLL is not set | ||
680 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
681 | |||
682 | # | ||
683 | # ISDN subsystem | ||
684 | # | ||
685 | # CONFIG_ISDN is not set | ||
686 | |||
687 | # | ||
688 | # Telephony Support | ||
689 | # | ||
690 | # CONFIG_PHONE is not set | ||
691 | |||
692 | # | ||
693 | # Input device support | ||
694 | # | ||
695 | CONFIG_INPUT=y | ||
696 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
697 | |||
698 | # | ||
699 | # Userland interfaces | ||
700 | # | ||
701 | # CONFIG_INPUT_MOUSEDEV is not set | ||
702 | # CONFIG_INPUT_JOYDEV is not set | ||
703 | # CONFIG_INPUT_TSDEV is not set | ||
704 | # CONFIG_INPUT_EVDEV is not set | ||
705 | # CONFIG_INPUT_EVBUG is not set | ||
706 | |||
707 | # | ||
708 | # Input Device Drivers | ||
709 | # | ||
710 | # CONFIG_INPUT_KEYBOARD is not set | ||
711 | # CONFIG_INPUT_MOUSE is not set | ||
712 | # CONFIG_INPUT_JOYSTICK is not set | ||
713 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
714 | # CONFIG_INPUT_MISC is not set | ||
715 | |||
716 | # | ||
717 | # Hardware I/O ports | ||
718 | # | ||
719 | # CONFIG_SERIO is not set | ||
720 | # CONFIG_GAMEPORT is not set | ||
721 | |||
722 | # | ||
723 | # Character devices | ||
724 | # | ||
725 | # CONFIG_VT is not set | ||
726 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
727 | |||
728 | # | ||
729 | # Serial drivers | ||
730 | # | ||
731 | CONFIG_SERIAL_8250=y | ||
732 | CONFIG_SERIAL_8250_CONSOLE=y | ||
733 | CONFIG_SERIAL_8250_PCI=y | ||
734 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
735 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
736 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
737 | |||
738 | # | ||
739 | # Non-8250 serial port support | ||
740 | # | ||
741 | # CONFIG_SERIAL_UARTLITE is not set | ||
742 | CONFIG_SERIAL_CORE=y | ||
743 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
744 | # CONFIG_SERIAL_JSM is not set | ||
745 | CONFIG_UNIX98_PTYS=y | ||
746 | CONFIG_LEGACY_PTYS=y | ||
747 | CONFIG_LEGACY_PTY_COUNT=256 | ||
748 | |||
749 | # | ||
750 | # IPMI | ||
751 | # | ||
752 | # CONFIG_IPMI_HANDLER is not set | ||
753 | |||
754 | # | ||
755 | # Watchdog Cards | ||
756 | # | ||
757 | CONFIG_WATCHDOG=y | ||
758 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
759 | |||
760 | # | ||
761 | # Watchdog Device Drivers | ||
762 | # | ||
763 | # CONFIG_SOFT_WATCHDOG is not set | ||
764 | CONFIG_83xx_WDT=y | ||
765 | |||
766 | # | ||
767 | # PCI-based Watchdog Cards | ||
768 | # | ||
769 | # CONFIG_PCIPCWATCHDOG is not set | ||
770 | # CONFIG_WDTPCI is not set | ||
771 | |||
772 | # | ||
773 | # USB-based Watchdog Cards | ||
774 | # | ||
775 | # CONFIG_USBPCWATCHDOG is not set | ||
776 | CONFIG_HW_RANDOM=y | ||
777 | # CONFIG_NVRAM is not set | ||
778 | # CONFIG_GEN_RTC is not set | ||
779 | # CONFIG_DTLK is not set | ||
780 | # CONFIG_R3964 is not set | ||
781 | # CONFIG_APPLICOM is not set | ||
782 | # CONFIG_AGP is not set | ||
783 | # CONFIG_DRM is not set | ||
784 | # CONFIG_RAW_DRIVER is not set | ||
785 | |||
786 | # | ||
787 | # TPM devices | ||
788 | # | ||
789 | # CONFIG_TCG_TPM is not set | ||
790 | |||
791 | # | ||
792 | # I2C support | ||
793 | # | ||
794 | CONFIG_I2C=y | ||
795 | CONFIG_I2C_CHARDEV=y | ||
796 | |||
797 | # | ||
798 | # I2C Algorithms | ||
799 | # | ||
800 | # CONFIG_I2C_ALGOBIT is not set | ||
801 | # CONFIG_I2C_ALGOPCF is not set | ||
802 | # CONFIG_I2C_ALGOPCA is not set | ||
803 | |||
804 | # | ||
805 | # I2C Hardware Bus support | ||
806 | # | ||
807 | # CONFIG_I2C_ALI1535 is not set | ||
808 | # CONFIG_I2C_ALI1563 is not set | ||
809 | # CONFIG_I2C_ALI15X3 is not set | ||
810 | # CONFIG_I2C_AMD756 is not set | ||
811 | # CONFIG_I2C_AMD8111 is not set | ||
812 | # CONFIG_I2C_I801 is not set | ||
813 | # CONFIG_I2C_I810 is not set | ||
814 | # CONFIG_I2C_PIIX4 is not set | ||
815 | CONFIG_I2C_MPC=y | ||
816 | # CONFIG_I2C_NFORCE2 is not set | ||
817 | # CONFIG_I2C_OCORES is not set | ||
818 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
819 | # CONFIG_I2C_PROSAVAGE is not set | ||
820 | # CONFIG_I2C_SAVAGE4 is not set | ||
821 | # CONFIG_I2C_SIS5595 is not set | ||
822 | # CONFIG_I2C_SIS630 is not set | ||
823 | # CONFIG_I2C_SIS96X is not set | ||
824 | # CONFIG_I2C_STUB is not set | ||
825 | # CONFIG_I2C_VIA is not set | ||
826 | # CONFIG_I2C_VIAPRO is not set | ||
827 | # CONFIG_I2C_VOODOO3 is not set | ||
828 | # CONFIG_I2C_PCA_ISA is not set | ||
829 | |||
830 | # | ||
831 | # Miscellaneous I2C Chip support | ||
832 | # | ||
833 | # CONFIG_SENSORS_DS1337 is not set | ||
834 | # CONFIG_SENSORS_DS1374 is not set | ||
835 | # CONFIG_SENSORS_EEPROM is not set | ||
836 | # CONFIG_SENSORS_PCF8574 is not set | ||
837 | # CONFIG_SENSORS_PCA9539 is not set | ||
838 | # CONFIG_SENSORS_PCF8591 is not set | ||
839 | # CONFIG_SENSORS_M41T00 is not set | ||
840 | # CONFIG_SENSORS_MAX6875 is not set | ||
841 | # CONFIG_I2C_DEBUG_CORE is not set | ||
842 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
843 | # CONFIG_I2C_DEBUG_BUS is not set | ||
844 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
845 | |||
846 | # | ||
847 | # SPI support | ||
848 | # | ||
849 | CONFIG_SPI=y | ||
850 | # CONFIG_SPI_DEBUG is not set | ||
851 | CONFIG_SPI_MASTER=y | ||
852 | |||
853 | # | ||
854 | # SPI Master Controller Drivers | ||
855 | # | ||
856 | CONFIG_SPI_BITBANG=y | ||
857 | CONFIG_SPI_MPC83xx=y | ||
858 | |||
859 | # | ||
860 | # SPI Protocol Masters | ||
861 | # | ||
862 | |||
863 | # | ||
864 | # Dallas's 1-wire bus | ||
865 | # | ||
866 | # CONFIG_W1 is not set | ||
867 | |||
868 | # | ||
869 | # Hardware Monitoring support | ||
870 | # | ||
871 | CONFIG_HWMON=y | ||
872 | # CONFIG_HWMON_VID is not set | ||
873 | # CONFIG_SENSORS_ABITUGURU is not set | ||
874 | # CONFIG_SENSORS_ADM1021 is not set | ||
875 | # CONFIG_SENSORS_ADM1025 is not set | ||
876 | # CONFIG_SENSORS_ADM1026 is not set | ||
877 | # CONFIG_SENSORS_ADM1031 is not set | ||
878 | # CONFIG_SENSORS_ADM9240 is not set | ||
879 | # CONFIG_SENSORS_ASB100 is not set | ||
880 | # CONFIG_SENSORS_ATXP1 is not set | ||
881 | # CONFIG_SENSORS_DS1621 is not set | ||
882 | # CONFIG_SENSORS_F71805F is not set | ||
883 | # CONFIG_SENSORS_FSCHER is not set | ||
884 | # CONFIG_SENSORS_FSCPOS is not set | ||
885 | # CONFIG_SENSORS_GL518SM is not set | ||
886 | # CONFIG_SENSORS_GL520SM is not set | ||
887 | # CONFIG_SENSORS_IT87 is not set | ||
888 | # CONFIG_SENSORS_LM63 is not set | ||
889 | # CONFIG_SENSORS_LM70 is not set | ||
890 | # CONFIG_SENSORS_LM75 is not set | ||
891 | # CONFIG_SENSORS_LM77 is not set | ||
892 | # CONFIG_SENSORS_LM78 is not set | ||
893 | # CONFIG_SENSORS_LM80 is not set | ||
894 | # CONFIG_SENSORS_LM83 is not set | ||
895 | # CONFIG_SENSORS_LM85 is not set | ||
896 | # CONFIG_SENSORS_LM87 is not set | ||
897 | # CONFIG_SENSORS_LM90 is not set | ||
898 | # CONFIG_SENSORS_LM92 is not set | ||
899 | # CONFIG_SENSORS_MAX1619 is not set | ||
900 | # CONFIG_SENSORS_PC87360 is not set | ||
901 | # CONFIG_SENSORS_PC87427 is not set | ||
902 | # CONFIG_SENSORS_SIS5595 is not set | ||
903 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
904 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
905 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
906 | # CONFIG_SENSORS_VIA686A is not set | ||
907 | # CONFIG_SENSORS_VT1211 is not set | ||
908 | # CONFIG_SENSORS_VT8231 is not set | ||
909 | # CONFIG_SENSORS_W83781D is not set | ||
910 | # CONFIG_SENSORS_W83791D is not set | ||
911 | # CONFIG_SENSORS_W83792D is not set | ||
912 | # CONFIG_SENSORS_W83793 is not set | ||
913 | # CONFIG_SENSORS_W83L785TS is not set | ||
914 | # CONFIG_SENSORS_W83627HF is not set | ||
915 | # CONFIG_SENSORS_W83627EHF is not set | ||
916 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
917 | |||
918 | # | ||
919 | # Multimedia devices | ||
920 | # | ||
921 | # CONFIG_VIDEO_DEV is not set | ||
922 | |||
923 | # | ||
924 | # Digital Video Broadcasting Devices | ||
925 | # | ||
926 | # CONFIG_DVB is not set | ||
927 | # CONFIG_USB_DABUSB is not set | ||
928 | |||
929 | # | ||
930 | # Graphics support | ||
931 | # | ||
932 | CONFIG_FIRMWARE_EDID=y | ||
933 | # CONFIG_FB is not set | ||
934 | # CONFIG_FB_IBM_GXT4500 is not set | ||
935 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
936 | |||
937 | # | ||
938 | # Sound | ||
939 | # | ||
940 | # CONFIG_SOUND is not set | ||
941 | |||
942 | # | ||
943 | # HID Devices | ||
944 | # | ||
945 | CONFIG_HID=y | ||
946 | |||
947 | # | ||
948 | # USB support | ||
949 | # | ||
950 | CONFIG_USB_ARCH_HAS_HCD=y | ||
951 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
952 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
953 | CONFIG_USB=y | ||
954 | # CONFIG_USB_DEBUG is not set | ||
955 | |||
956 | # | ||
957 | # Miscellaneous USB options | ||
958 | # | ||
959 | CONFIG_USB_DEVICEFS=y | ||
960 | # CONFIG_USB_BANDWIDTH is not set | ||
961 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
962 | # CONFIG_USB_OTG is not set | ||
963 | |||
964 | # | ||
965 | # USB Host Controller Drivers | ||
966 | # | ||
967 | CONFIG_USB_EHCI_HCD=y | ||
968 | # CONFIG_USB_EHCI_SPLIT_ISO is not set | ||
969 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set | ||
970 | # CONFIG_USB_EHCI_TT_NEWSCHED is not set | ||
971 | # CONFIG_USB_ISP116X_HCD is not set | ||
972 | CONFIG_USB_OHCI_HCD=y | ||
973 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
974 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
975 | CONFIG_USB_UHCI_HCD=y | ||
976 | # CONFIG_USB_SL811_HCD is not set | ||
977 | |||
978 | # | ||
979 | # USB Device Class drivers | ||
980 | # | ||
981 | # CONFIG_USB_ACM is not set | ||
982 | # CONFIG_USB_PRINTER is not set | ||
983 | |||
984 | # | ||
985 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
986 | # | ||
987 | |||
988 | # | ||
989 | # may also be needed; see USB_STORAGE Help for more information | ||
990 | # | ||
991 | CONFIG_USB_STORAGE=y | ||
992 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
993 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
994 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
995 | # CONFIG_USB_STORAGE_DPCM is not set | ||
996 | # CONFIG_USB_STORAGE_USBAT is not set | ||
997 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
998 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
999 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
1000 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
1001 | # CONFIG_USB_STORAGE_KARMA is not set | ||
1002 | # CONFIG_USB_LIBUSUAL is not set | ||
1003 | |||
1004 | # | ||
1005 | # USB Input Devices | ||
1006 | # | ||
1007 | # CONFIG_USB_HID is not set | ||
1008 | |||
1009 | # | ||
1010 | # USB HID Boot Protocol drivers | ||
1011 | # | ||
1012 | # CONFIG_USB_KBD is not set | ||
1013 | # CONFIG_USB_MOUSE is not set | ||
1014 | # CONFIG_USB_AIPTEK is not set | ||
1015 | # CONFIG_USB_WACOM is not set | ||
1016 | # CONFIG_USB_ACECAD is not set | ||
1017 | # CONFIG_USB_KBTAB is not set | ||
1018 | # CONFIG_USB_POWERMATE is not set | ||
1019 | # CONFIG_USB_TOUCHSCREEN is not set | ||
1020 | # CONFIG_USB_YEALINK is not set | ||
1021 | # CONFIG_USB_XPAD is not set | ||
1022 | # CONFIG_USB_ATI_REMOTE is not set | ||
1023 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
1024 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
1025 | # CONFIG_USB_APPLETOUCH is not set | ||
1026 | |||
1027 | # | ||
1028 | # USB Imaging devices | ||
1029 | # | ||
1030 | # CONFIG_USB_MDC800 is not set | ||
1031 | # CONFIG_USB_MICROTEK is not set | ||
1032 | |||
1033 | # | ||
1034 | # USB Network Adapters | ||
1035 | # | ||
1036 | # CONFIG_USB_CATC is not set | ||
1037 | # CONFIG_USB_KAWETH is not set | ||
1038 | # CONFIG_USB_PEGASUS is not set | ||
1039 | # CONFIG_USB_RTL8150 is not set | ||
1040 | # CONFIG_USB_USBNET_MII is not set | ||
1041 | # CONFIG_USB_USBNET is not set | ||
1042 | CONFIG_USB_MON=y | ||
1043 | |||
1044 | # | ||
1045 | # USB port drivers | ||
1046 | # | ||
1047 | |||
1048 | # | ||
1049 | # USB Serial Converter support | ||
1050 | # | ||
1051 | # CONFIG_USB_SERIAL is not set | ||
1052 | |||
1053 | # | ||
1054 | # USB Miscellaneous drivers | ||
1055 | # | ||
1056 | # CONFIG_USB_EMI62 is not set | ||
1057 | # CONFIG_USB_EMI26 is not set | ||
1058 | # CONFIG_USB_ADUTUX is not set | ||
1059 | # CONFIG_USB_AUERSWALD is not set | ||
1060 | # CONFIG_USB_RIO500 is not set | ||
1061 | # CONFIG_USB_LEGOTOWER is not set | ||
1062 | # CONFIG_USB_LCD is not set | ||
1063 | # CONFIG_USB_LED is not set | ||
1064 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
1065 | # CONFIG_USB_CYTHERM is not set | ||
1066 | # CONFIG_USB_PHIDGET is not set | ||
1067 | # CONFIG_USB_IDMOUSE is not set | ||
1068 | # CONFIG_USB_FTDI_ELAN is not set | ||
1069 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1070 | # CONFIG_USB_SISUSBVGA is not set | ||
1071 | # CONFIG_USB_LD is not set | ||
1072 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1073 | # CONFIG_USB_TEST is not set | ||
1074 | |||
1075 | # | ||
1076 | # USB DSL modem support | ||
1077 | # | ||
1078 | |||
1079 | # | ||
1080 | # USB Gadget Support | ||
1081 | # | ||
1082 | CONFIG_USB_GADGET=y | ||
1083 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1084 | CONFIG_USB_GADGET_SELECTED=y | ||
1085 | CONFIG_USB_GADGET_NET2280=y | ||
1086 | CONFIG_USB_NET2280=y | ||
1087 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1088 | # CONFIG_USB_GADGET_GOKU is not set | ||
1089 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1090 | # CONFIG_USB_GADGET_OMAP is not set | ||
1091 | # CONFIG_USB_GADGET_AT91 is not set | ||
1092 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1093 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1094 | # CONFIG_USB_ZERO is not set | ||
1095 | CONFIG_USB_ETH=y | ||
1096 | CONFIG_USB_ETH_RNDIS=y | ||
1097 | # CONFIG_USB_GADGETFS is not set | ||
1098 | # CONFIG_USB_FILE_STORAGE is not set | ||
1099 | # CONFIG_USB_G_SERIAL is not set | ||
1100 | # CONFIG_USB_MIDI_GADGET is not set | ||
1101 | |||
1102 | # | ||
1103 | # MMC/SD Card support | ||
1104 | # | ||
1105 | # CONFIG_MMC is not set | ||
1106 | |||
1107 | # | ||
1108 | # LED devices | ||
1109 | # | ||
1110 | # CONFIG_NEW_LEDS is not set | ||
1111 | |||
1112 | # | ||
1113 | # LED drivers | ||
1114 | # | ||
1115 | |||
1116 | # | ||
1117 | # LED Triggers | ||
1118 | # | ||
1119 | |||
1120 | # | ||
1121 | # InfiniBand support | ||
1122 | # | ||
1123 | # CONFIG_INFINIBAND is not set | ||
1124 | |||
1125 | # | ||
1126 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
1127 | # | ||
1128 | |||
1129 | # | ||
1130 | # Real Time Clock | ||
1131 | # | ||
1132 | CONFIG_RTC_LIB=y | ||
1133 | CONFIG_RTC_CLASS=y | ||
1134 | CONFIG_RTC_HCTOSYS=y | ||
1135 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1136 | # CONFIG_RTC_DEBUG is not set | ||
1137 | |||
1138 | # | ||
1139 | # RTC interfaces | ||
1140 | # | ||
1141 | CONFIG_RTC_INTF_SYSFS=y | ||
1142 | CONFIG_RTC_INTF_PROC=y | ||
1143 | CONFIG_RTC_INTF_DEV=y | ||
1144 | CONFIG_RTC_INTF_DEV_UIE_EMUL=y | ||
1145 | |||
1146 | # | ||
1147 | # RTC drivers | ||
1148 | # | ||
1149 | # CONFIG_RTC_DRV_X1205 is not set | ||
1150 | CONFIG_RTC_DRV_DS1307=y | ||
1151 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1152 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1153 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1154 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1155 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1156 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1157 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
1158 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1159 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1160 | # CONFIG_RTC_DRV_TEST is not set | ||
1161 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
1162 | # CONFIG_RTC_DRV_V3020 is not set | ||
1163 | |||
1164 | # | ||
1165 | # DMA Engine support | ||
1166 | # | ||
1167 | CONFIG_DMA_ENGINE=y | ||
1168 | |||
1169 | # | ||
1170 | # DMA Clients | ||
1171 | # | ||
1172 | CONFIG_NET_DMA=y | ||
1173 | |||
1174 | # | ||
1175 | # DMA Devices | ||
1176 | # | ||
1177 | CONFIG_INTEL_IOATDMA=y | ||
1178 | |||
1179 | # | ||
1180 | # Virtualization | ||
1181 | # | ||
1182 | |||
1183 | # | ||
1184 | # File systems | ||
1185 | # | ||
1186 | CONFIG_EXT2_FS=y | ||
1187 | # CONFIG_EXT2_FS_XATTR is not set | ||
1188 | # CONFIG_EXT2_FS_XIP is not set | ||
1189 | CONFIG_EXT3_FS=y | ||
1190 | CONFIG_EXT3_FS_XATTR=y | ||
1191 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1192 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1193 | # CONFIG_EXT4DEV_FS is not set | ||
1194 | CONFIG_JBD=y | ||
1195 | # CONFIG_JBD_DEBUG is not set | ||
1196 | CONFIG_FS_MBCACHE=y | ||
1197 | # CONFIG_REISERFS_FS is not set | ||
1198 | # CONFIG_JFS_FS is not set | ||
1199 | # CONFIG_FS_POSIX_ACL is not set | ||
1200 | # CONFIG_XFS_FS is not set | ||
1201 | # CONFIG_GFS2_FS is not set | ||
1202 | # CONFIG_OCFS2_FS is not set | ||
1203 | # CONFIG_MINIX_FS is not set | ||
1204 | # CONFIG_ROMFS_FS is not set | ||
1205 | CONFIG_INOTIFY=y | ||
1206 | CONFIG_INOTIFY_USER=y | ||
1207 | # CONFIG_QUOTA is not set | ||
1208 | CONFIG_DNOTIFY=y | ||
1209 | # CONFIG_AUTOFS_FS is not set | ||
1210 | # CONFIG_AUTOFS4_FS is not set | ||
1211 | # CONFIG_FUSE_FS is not set | ||
1212 | |||
1213 | # | ||
1214 | # CD-ROM/DVD Filesystems | ||
1215 | # | ||
1216 | # CONFIG_ISO9660_FS is not set | ||
1217 | # CONFIG_UDF_FS is not set | ||
1218 | |||
1219 | # | ||
1220 | # DOS/FAT/NT Filesystems | ||
1221 | # | ||
1222 | # CONFIG_MSDOS_FS is not set | ||
1223 | # CONFIG_VFAT_FS is not set | ||
1224 | # CONFIG_NTFS_FS is not set | ||
1225 | |||
1226 | # | ||
1227 | # Pseudo filesystems | ||
1228 | # | ||
1229 | CONFIG_PROC_FS=y | ||
1230 | CONFIG_PROC_KCORE=y | ||
1231 | CONFIG_PROC_SYSCTL=y | ||
1232 | CONFIG_SYSFS=y | ||
1233 | CONFIG_TMPFS=y | ||
1234 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1235 | # CONFIG_HUGETLB_PAGE is not set | ||
1236 | CONFIG_RAMFS=y | ||
1237 | # CONFIG_CONFIGFS_FS is not set | ||
1238 | |||
1239 | # | ||
1240 | # Miscellaneous filesystems | ||
1241 | # | ||
1242 | # CONFIG_ADFS_FS is not set | ||
1243 | # CONFIG_AFFS_FS is not set | ||
1244 | # CONFIG_HFS_FS is not set | ||
1245 | # CONFIG_HFSPLUS_FS is not set | ||
1246 | # CONFIG_BEFS_FS is not set | ||
1247 | # CONFIG_BFS_FS is not set | ||
1248 | # CONFIG_EFS_FS is not set | ||
1249 | # CONFIG_JFFS2_FS is not set | ||
1250 | # CONFIG_CRAMFS is not set | ||
1251 | # CONFIG_VXFS_FS is not set | ||
1252 | # CONFIG_HPFS_FS is not set | ||
1253 | # CONFIG_QNX4FS_FS is not set | ||
1254 | # CONFIG_SYSV_FS is not set | ||
1255 | # CONFIG_UFS_FS is not set | ||
1256 | |||
1257 | # | ||
1258 | # Network File Systems | ||
1259 | # | ||
1260 | CONFIG_NFS_FS=y | ||
1261 | CONFIG_NFS_V3=y | ||
1262 | # CONFIG_NFS_V3_ACL is not set | ||
1263 | CONFIG_NFS_V4=y | ||
1264 | # CONFIG_NFS_DIRECTIO is not set | ||
1265 | # CONFIG_NFSD is not set | ||
1266 | CONFIG_ROOT_NFS=y | ||
1267 | CONFIG_LOCKD=y | ||
1268 | CONFIG_LOCKD_V4=y | ||
1269 | CONFIG_NFS_COMMON=y | ||
1270 | CONFIG_SUNRPC=y | ||
1271 | CONFIG_SUNRPC_GSS=y | ||
1272 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1273 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1274 | # CONFIG_SMB_FS is not set | ||
1275 | # CONFIG_CIFS is not set | ||
1276 | # CONFIG_NCP_FS is not set | ||
1277 | # CONFIG_CODA_FS is not set | ||
1278 | # CONFIG_AFS_FS is not set | ||
1279 | # CONFIG_9P_FS is not set | ||
1280 | |||
1281 | # | ||
1282 | # Partition Types | ||
1283 | # | ||
1284 | CONFIG_PARTITION_ADVANCED=y | ||
1285 | # CONFIG_ACORN_PARTITION is not set | ||
1286 | # CONFIG_OSF_PARTITION is not set | ||
1287 | # CONFIG_AMIGA_PARTITION is not set | ||
1288 | # CONFIG_ATARI_PARTITION is not set | ||
1289 | # CONFIG_MAC_PARTITION is not set | ||
1290 | CONFIG_MSDOS_PARTITION=y | ||
1291 | # CONFIG_BSD_DISKLABEL is not set | ||
1292 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1293 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1294 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1295 | # CONFIG_LDM_PARTITION is not set | ||
1296 | # CONFIG_SGI_PARTITION is not set | ||
1297 | # CONFIG_ULTRIX_PARTITION is not set | ||
1298 | # CONFIG_SUN_PARTITION is not set | ||
1299 | # CONFIG_KARMA_PARTITION is not set | ||
1300 | # CONFIG_EFI_PARTITION is not set | ||
1301 | |||
1302 | # | ||
1303 | # Native Language Support | ||
1304 | # | ||
1305 | # CONFIG_NLS is not set | ||
1306 | |||
1307 | # | ||
1308 | # Distributed Lock Manager | ||
1309 | # | ||
1310 | # CONFIG_DLM is not set | ||
1311 | |||
1312 | # | ||
1313 | # Library routines | ||
1314 | # | ||
1315 | CONFIG_BITREVERSE=y | ||
1316 | # CONFIG_CRC_CCITT is not set | ||
1317 | # CONFIG_CRC16 is not set | ||
1318 | CONFIG_CRC32=y | ||
1319 | # CONFIG_LIBCRC32C is not set | ||
1320 | CONFIG_PLIST=y | ||
1321 | CONFIG_IOMAP_COPY=y | ||
1322 | |||
1323 | # | ||
1324 | # Instrumentation Support | ||
1325 | # | ||
1326 | # CONFIG_PROFILING is not set | ||
1327 | |||
1328 | # | ||
1329 | # Kernel hacking | ||
1330 | # | ||
1331 | # CONFIG_PRINTK_TIME is not set | ||
1332 | CONFIG_ENABLE_MUST_CHECK=y | ||
1333 | # CONFIG_MAGIC_SYSRQ is not set | ||
1334 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1335 | # CONFIG_DEBUG_FS is not set | ||
1336 | # CONFIG_HEADERS_CHECK is not set | ||
1337 | CONFIG_DEBUG_KERNEL=y | ||
1338 | CONFIG_LOG_BUF_SHIFT=14 | ||
1339 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1340 | # CONFIG_SCHEDSTATS is not set | ||
1341 | # CONFIG_DEBUG_SLAB is not set | ||
1342 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1343 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1344 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1345 | # CONFIG_DEBUG_MUTEXES is not set | ||
1346 | # CONFIG_DEBUG_RWSEMS is not set | ||
1347 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1348 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1349 | # CONFIG_DEBUG_KOBJECT is not set | ||
1350 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1351 | # CONFIG_DEBUG_INFO is not set | ||
1352 | # CONFIG_DEBUG_VM is not set | ||
1353 | # CONFIG_DEBUG_LIST is not set | ||
1354 | CONFIG_FORCED_INLINING=y | ||
1355 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1356 | # CONFIG_DEBUG_STACKOVERFLOW is not set | ||
1357 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1358 | # CONFIG_DEBUGGER is not set | ||
1359 | # CONFIG_BDI_SWITCH is not set | ||
1360 | # CONFIG_BOOTX_TEXT is not set | ||
1361 | # CONFIG_SERIAL_TEXT_DEBUG is not set | ||
1362 | # CONFIG_PPC_EARLY_DEBUG is not set | ||
1363 | |||
1364 | # | ||
1365 | # Security options | ||
1366 | # | ||
1367 | # CONFIG_KEYS is not set | ||
1368 | # CONFIG_SECURITY is not set | ||
1369 | |||
1370 | # | ||
1371 | # Cryptographic options | ||
1372 | # | ||
1373 | CONFIG_CRYPTO=y | ||
1374 | CONFIG_CRYPTO_ALGAPI=y | ||
1375 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1376 | CONFIG_CRYPTO_MANAGER=y | ||
1377 | # CONFIG_CRYPTO_HMAC is not set | ||
1378 | # CONFIG_CRYPTO_XCBC is not set | ||
1379 | # CONFIG_CRYPTO_NULL is not set | ||
1380 | # CONFIG_CRYPTO_MD4 is not set | ||
1381 | CONFIG_CRYPTO_MD5=y | ||
1382 | # CONFIG_CRYPTO_SHA1 is not set | ||
1383 | # CONFIG_CRYPTO_SHA256 is not set | ||
1384 | # CONFIG_CRYPTO_SHA512 is not set | ||
1385 | # CONFIG_CRYPTO_WP512 is not set | ||
1386 | # CONFIG_CRYPTO_TGR192 is not set | ||
1387 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1388 | # CONFIG_CRYPTO_ECB is not set | ||
1389 | CONFIG_CRYPTO_CBC=y | ||
1390 | # CONFIG_CRYPTO_LRW is not set | ||
1391 | CONFIG_CRYPTO_DES=y | ||
1392 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1393 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1394 | # CONFIG_CRYPTO_SERPENT is not set | ||
1395 | # CONFIG_CRYPTO_AES is not set | ||
1396 | # CONFIG_CRYPTO_CAST5 is not set | ||
1397 | # CONFIG_CRYPTO_CAST6 is not set | ||
1398 | # CONFIG_CRYPTO_TEA is not set | ||
1399 | # CONFIG_CRYPTO_ARC4 is not set | ||
1400 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1401 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1402 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1403 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1404 | # CONFIG_CRYPTO_CRC32C is not set | ||
1405 | # CONFIG_CRYPTO_TEST is not set | ||
1406 | |||
1407 | # | ||
1408 | # Hardware crypto devices | ||
1409 | # | ||
diff --git a/arch/powerpc/configs/mpc834x_itx_defconfig b/arch/powerpc/configs/mpc834x_itx_defconfig index 7902806429f8..23d8964846e0 100644 --- a/arch/powerpc/configs/mpc834x_itx_defconfig +++ b/arch/powerpc/configs/mpc834x_itx_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.20-rc5 | 3 | # Linux kernel version: 2.6.20 |
4 | # Fri Jan 26 00:19:02 2007 | 4 | # Wed Feb 7 13:12:18 2007 |
5 | # | 5 | # |
6 | # CONFIG_PPC64 is not set | 6 | # CONFIG_PPC64 is not set |
7 | CONFIG_PPC32=y | 7 | CONFIG_PPC32=y |
@@ -34,9 +34,9 @@ CONFIG_DEFAULT_UIMAGE=y | |||
34 | CONFIG_PPC_83xx=y | 34 | CONFIG_PPC_83xx=y |
35 | # CONFIG_PPC_85xx is not set | 35 | # CONFIG_PPC_85xx is not set |
36 | # CONFIG_PPC_86xx is not set | 36 | # CONFIG_PPC_86xx is not set |
37 | # CONFIG_PPC_8xx is not set | ||
37 | # CONFIG_40x is not set | 38 | # CONFIG_40x is not set |
38 | # CONFIG_44x is not set | 39 | # CONFIG_44x is not set |
39 | # CONFIG_8xx is not set | ||
40 | # CONFIG_E200 is not set | 40 | # CONFIG_E200 is not set |
41 | CONFIG_6xx=y | 41 | CONFIG_6xx=y |
42 | CONFIG_83xx=y | 42 | CONFIG_83xx=y |
@@ -178,7 +178,6 @@ CONFIG_FSL_SOC=y | |||
178 | CONFIG_PCI=y | 178 | CONFIG_PCI=y |
179 | CONFIG_PCI_DOMAINS=y | 179 | CONFIG_PCI_DOMAINS=y |
180 | # CONFIG_PCIEPORTBUS is not set | 180 | # CONFIG_PCIEPORTBUS is not set |
181 | # CONFIG_PCI_DEBUG is not set | ||
182 | 181 | ||
183 | # | 182 | # |
184 | # PCCARD (PCMCIA/CardBus) support | 183 | # PCCARD (PCMCIA/CardBus) support |
@@ -303,7 +302,6 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
303 | CONFIG_STANDALONE=y | 302 | CONFIG_STANDALONE=y |
304 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 303 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
305 | # CONFIG_FW_LOADER is not set | 304 | # CONFIG_FW_LOADER is not set |
306 | # CONFIG_DEBUG_DRIVER is not set | ||
307 | # CONFIG_SYS_HYPERVISOR is not set | 305 | # CONFIG_SYS_HYPERVISOR is not set |
308 | 306 | ||
309 | # | 307 | # |
@@ -523,6 +521,7 @@ CONFIG_SCSI_SPI_ATTRS=y | |||
523 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | 521 | # Serial ATA (prod) and Parallel ATA (experimental) drivers |
524 | # | 522 | # |
525 | CONFIG_ATA=y | 523 | CONFIG_ATA=y |
524 | # CONFIG_ATA_NONSTANDARD is not set | ||
526 | # CONFIG_SATA_AHCI is not set | 525 | # CONFIG_SATA_AHCI is not set |
527 | # CONFIG_SATA_SVW is not set | 526 | # CONFIG_SATA_SVW is not set |
528 | # CONFIG_ATA_PIIX is not set | 527 | # CONFIG_ATA_PIIX is not set |
@@ -647,37 +646,7 @@ CONFIG_CICADA_PHY=y | |||
647 | # | 646 | # |
648 | # Ethernet (10 or 100Mbit) | 647 | # Ethernet (10 or 100Mbit) |
649 | # | 648 | # |
650 | CONFIG_NET_ETHERNET=y | 649 | # CONFIG_NET_ETHERNET is not set |
651 | CONFIG_MII=y | ||
652 | # CONFIG_HAPPYMEAL is not set | ||
653 | # CONFIG_SUNGEM is not set | ||
654 | # CONFIG_CASSINI is not set | ||
655 | # CONFIG_NET_VENDOR_3COM is not set | ||
656 | |||
657 | # | ||
658 | # Tulip family network device support | ||
659 | # | ||
660 | # CONFIG_NET_TULIP is not set | ||
661 | # CONFIG_HP100 is not set | ||
662 | CONFIG_NET_PCI=y | ||
663 | # CONFIG_PCNET32 is not set | ||
664 | # CONFIG_AMD8111_ETH is not set | ||
665 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
666 | # CONFIG_B44 is not set | ||
667 | # CONFIG_FORCEDETH is not set | ||
668 | # CONFIG_DGRS is not set | ||
669 | # CONFIG_EEPRO100 is not set | ||
670 | CONFIG_E100=y | ||
671 | # CONFIG_FEALNX is not set | ||
672 | # CONFIG_NATSEMI is not set | ||
673 | # CONFIG_NE2K_PCI is not set | ||
674 | # CONFIG_8139CP is not set | ||
675 | # CONFIG_8139TOO is not set | ||
676 | # CONFIG_SIS900 is not set | ||
677 | # CONFIG_EPIC100 is not set | ||
678 | # CONFIG_SUNDANCE is not set | ||
679 | # CONFIG_TLAN is not set | ||
680 | # CONFIG_VIA_RHINE is not set | ||
681 | 650 | ||
682 | # | 651 | # |
683 | # Ethernet (1000 Mbit) | 652 | # Ethernet (1000 Mbit) |
@@ -693,7 +662,6 @@ CONFIG_E100=y | |||
693 | # CONFIG_SKGE is not set | 662 | # CONFIG_SKGE is not set |
694 | # CONFIG_SKY2 is not set | 663 | # CONFIG_SKY2 is not set |
695 | # CONFIG_SK98LIN is not set | 664 | # CONFIG_SK98LIN is not set |
696 | # CONFIG_VIA_VELOCITY is not set | ||
697 | # CONFIG_TIGON3 is not set | 665 | # CONFIG_TIGON3 is not set |
698 | # CONFIG_BNX2 is not set | 666 | # CONFIG_BNX2 is not set |
699 | CONFIG_GIANFAR=y | 667 | CONFIG_GIANFAR=y |
@@ -746,26 +714,7 @@ CONFIG_GFAR_NAPI=y | |||
746 | # | 714 | # |
747 | # Input device support | 715 | # Input device support |
748 | # | 716 | # |
749 | CONFIG_INPUT=y | 717 | # CONFIG_INPUT is not set |
750 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
751 | |||
752 | # | ||
753 | # Userland interfaces | ||
754 | # | ||
755 | # CONFIG_INPUT_MOUSEDEV is not set | ||
756 | # CONFIG_INPUT_JOYDEV is not set | ||
757 | # CONFIG_INPUT_TSDEV is not set | ||
758 | # CONFIG_INPUT_EVDEV is not set | ||
759 | # CONFIG_INPUT_EVBUG is not set | ||
760 | |||
761 | # | ||
762 | # Input Device Drivers | ||
763 | # | ||
764 | # CONFIG_INPUT_KEYBOARD is not set | ||
765 | # CONFIG_INPUT_MOUSE is not set | ||
766 | # CONFIG_INPUT_JOYSTICK is not set | ||
767 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
768 | # CONFIG_INPUT_MISC is not set | ||
769 | 718 | ||
770 | # | 719 | # |
771 | # Hardware I/O ports | 720 | # Hardware I/O ports |
@@ -784,7 +733,7 @@ CONFIG_INPUT=y | |||
784 | # | 733 | # |
785 | CONFIG_SERIAL_8250=y | 734 | CONFIG_SERIAL_8250=y |
786 | CONFIG_SERIAL_8250_CONSOLE=y | 735 | CONFIG_SERIAL_8250_CONSOLE=y |
787 | CONFIG_SERIAL_8250_PCI=y | 736 | # CONFIG_SERIAL_8250_PCI is not set |
788 | CONFIG_SERIAL_8250_NR_UARTS=4 | 737 | CONFIG_SERIAL_8250_NR_UARTS=4 |
789 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | 738 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 |
790 | # CONFIG_SERIAL_8250_EXTENDED is not set | 739 | # CONFIG_SERIAL_8250_EXTENDED is not set |
@@ -887,7 +836,7 @@ CONFIG_I2C_MPC=y | |||
887 | # CONFIG_SENSORS_DS1337 is not set | 836 | # CONFIG_SENSORS_DS1337 is not set |
888 | # CONFIG_SENSORS_DS1374 is not set | 837 | # CONFIG_SENSORS_DS1374 is not set |
889 | # CONFIG_SENSORS_EEPROM is not set | 838 | # CONFIG_SENSORS_EEPROM is not set |
890 | # CONFIG_SENSORS_PCF8574 is not set | 839 | CONFIG_SENSORS_PCF8574=y |
891 | # CONFIG_SENSORS_PCA9539 is not set | 840 | # CONFIG_SENSORS_PCA9539 is not set |
892 | # CONFIG_SENSORS_PCF8591 is not set | 841 | # CONFIG_SENSORS_PCF8591 is not set |
893 | # CONFIG_SENSORS_M41T00 is not set | 842 | # CONFIG_SENSORS_M41T00 is not set |
@@ -901,7 +850,6 @@ CONFIG_I2C_MPC=y | |||
901 | # SPI support | 850 | # SPI support |
902 | # | 851 | # |
903 | CONFIG_SPI=y | 852 | CONFIG_SPI=y |
904 | # CONFIG_SPI_DEBUG is not set | ||
905 | CONFIG_SPI_MASTER=y | 853 | CONFIG_SPI_MASTER=y |
906 | 854 | ||
907 | # | 855 | # |
@@ -922,52 +870,8 @@ CONFIG_SPI_MPC83xx=y | |||
922 | # | 870 | # |
923 | # Hardware Monitoring support | 871 | # Hardware Monitoring support |
924 | # | 872 | # |
925 | CONFIG_HWMON=y | 873 | # CONFIG_HWMON is not set |
926 | # CONFIG_HWMON_VID is not set | 874 | # CONFIG_HWMON_VID is not set |
927 | # CONFIG_SENSORS_ABITUGURU is not set | ||
928 | # CONFIG_SENSORS_ADM1021 is not set | ||
929 | # CONFIG_SENSORS_ADM1025 is not set | ||
930 | # CONFIG_SENSORS_ADM1026 is not set | ||
931 | # CONFIG_SENSORS_ADM1031 is not set | ||
932 | # CONFIG_SENSORS_ADM9240 is not set | ||
933 | # CONFIG_SENSORS_ASB100 is not set | ||
934 | # CONFIG_SENSORS_ATXP1 is not set | ||
935 | # CONFIG_SENSORS_DS1621 is not set | ||
936 | # CONFIG_SENSORS_F71805F is not set | ||
937 | # CONFIG_SENSORS_FSCHER is not set | ||
938 | # CONFIG_SENSORS_FSCPOS is not set | ||
939 | # CONFIG_SENSORS_GL518SM is not set | ||
940 | # CONFIG_SENSORS_GL520SM is not set | ||
941 | # CONFIG_SENSORS_IT87 is not set | ||
942 | # CONFIG_SENSORS_LM63 is not set | ||
943 | # CONFIG_SENSORS_LM70 is not set | ||
944 | # CONFIG_SENSORS_LM75 is not set | ||
945 | # CONFIG_SENSORS_LM77 is not set | ||
946 | # CONFIG_SENSORS_LM78 is not set | ||
947 | # CONFIG_SENSORS_LM80 is not set | ||
948 | # CONFIG_SENSORS_LM83 is not set | ||
949 | # CONFIG_SENSORS_LM85 is not set | ||
950 | # CONFIG_SENSORS_LM87 is not set | ||
951 | # CONFIG_SENSORS_LM90 is not set | ||
952 | # CONFIG_SENSORS_LM92 is not set | ||
953 | # CONFIG_SENSORS_MAX1619 is not set | ||
954 | # CONFIG_SENSORS_PC87360 is not set | ||
955 | # CONFIG_SENSORS_PC87427 is not set | ||
956 | # CONFIG_SENSORS_SIS5595 is not set | ||
957 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
958 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
959 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
960 | # CONFIG_SENSORS_VIA686A is not set | ||
961 | # CONFIG_SENSORS_VT1211 is not set | ||
962 | # CONFIG_SENSORS_VT8231 is not set | ||
963 | # CONFIG_SENSORS_W83781D is not set | ||
964 | # CONFIG_SENSORS_W83791D is not set | ||
965 | # CONFIG_SENSORS_W83792D is not set | ||
966 | # CONFIG_SENSORS_W83793 is not set | ||
967 | # CONFIG_SENSORS_W83L785TS is not set | ||
968 | # CONFIG_SENSORS_W83627HF is not set | ||
969 | # CONFIG_SENSORS_W83627EHF is not set | ||
970 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
971 | 875 | ||
972 | # | 876 | # |
973 | # Multimedia devices | 877 | # Multimedia devices |
@@ -983,7 +887,7 @@ CONFIG_HWMON=y | |||
983 | # | 887 | # |
984 | # Graphics support | 888 | # Graphics support |
985 | # | 889 | # |
986 | CONFIG_FIRMWARE_EDID=y | 890 | # CONFIG_FIRMWARE_EDID is not set |
987 | # CONFIG_FB is not set | 891 | # CONFIG_FB is not set |
988 | # CONFIG_FB_IBM_GXT4500 is not set | 892 | # CONFIG_FB_IBM_GXT4500 is not set |
989 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | 893 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set |
@@ -994,11 +898,6 @@ CONFIG_FIRMWARE_EDID=y | |||
994 | # CONFIG_SOUND is not set | 898 | # CONFIG_SOUND is not set |
995 | 899 | ||
996 | # | 900 | # |
997 | # HID Devices | ||
998 | # | ||
999 | CONFIG_HID=y | ||
1000 | |||
1001 | # | ||
1002 | # USB support | 901 | # USB support |
1003 | # | 902 | # |
1004 | CONFIG_USB_ARCH_HAS_HCD=y | 903 | CONFIG_USB_ARCH_HAS_HCD=y |
@@ -1023,10 +922,8 @@ CONFIG_USB_EHCI_HCD=y | |||
1023 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set | 922 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set |
1024 | # CONFIG_USB_EHCI_TT_NEWSCHED is not set | 923 | # CONFIG_USB_EHCI_TT_NEWSCHED is not set |
1025 | # CONFIG_USB_ISP116X_HCD is not set | 924 | # CONFIG_USB_ISP116X_HCD is not set |
1026 | CONFIG_USB_OHCI_HCD=y | 925 | # CONFIG_USB_OHCI_HCD is not set |
1027 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | 926 | # CONFIG_USB_UHCI_HCD is not set |
1028 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
1029 | CONFIG_USB_UHCI_HCD=y | ||
1030 | # CONFIG_USB_SL811_HCD is not set | 927 | # CONFIG_USB_SL811_HCD is not set |
1031 | 928 | ||
1032 | # | 929 | # |
@@ -1058,25 +955,10 @@ CONFIG_USB_STORAGE=y | |||
1058 | # | 955 | # |
1059 | # USB Input Devices | 956 | # USB Input Devices |
1060 | # | 957 | # |
1061 | # CONFIG_USB_HID is not set | ||
1062 | 958 | ||
1063 | # | 959 | # |
1064 | # USB HID Boot Protocol drivers | 960 | # USB HID Boot Protocol drivers |
1065 | # | 961 | # |
1066 | # CONFIG_USB_KBD is not set | ||
1067 | # CONFIG_USB_MOUSE is not set | ||
1068 | # CONFIG_USB_AIPTEK is not set | ||
1069 | # CONFIG_USB_WACOM is not set | ||
1070 | # CONFIG_USB_ACECAD is not set | ||
1071 | # CONFIG_USB_KBTAB is not set | ||
1072 | # CONFIG_USB_POWERMATE is not set | ||
1073 | # CONFIG_USB_TOUCHSCREEN is not set | ||
1074 | # CONFIG_USB_YEALINK is not set | ||
1075 | # CONFIG_USB_XPAD is not set | ||
1076 | # CONFIG_USB_ATI_REMOTE is not set | ||
1077 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
1078 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
1079 | # CONFIG_USB_APPLETOUCH is not set | ||
1080 | 962 | ||
1081 | # | 963 | # |
1082 | # USB Imaging devices | 964 | # USB Imaging devices |
@@ -1133,25 +1015,7 @@ CONFIG_USB_MON=y | |||
1133 | # | 1015 | # |
1134 | # USB Gadget Support | 1016 | # USB Gadget Support |
1135 | # | 1017 | # |
1136 | CONFIG_USB_GADGET=y | 1018 | # CONFIG_USB_GADGET is not set |
1137 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1138 | CONFIG_USB_GADGET_SELECTED=y | ||
1139 | CONFIG_USB_GADGET_NET2280=y | ||
1140 | CONFIG_USB_NET2280=y | ||
1141 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1142 | # CONFIG_USB_GADGET_GOKU is not set | ||
1143 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1144 | # CONFIG_USB_GADGET_OMAP is not set | ||
1145 | # CONFIG_USB_GADGET_AT91 is not set | ||
1146 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1147 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1148 | # CONFIG_USB_ZERO is not set | ||
1149 | CONFIG_USB_ETH=y | ||
1150 | CONFIG_USB_ETH_RNDIS=y | ||
1151 | # CONFIG_USB_GADGETFS is not set | ||
1152 | # CONFIG_USB_FILE_STORAGE is not set | ||
1153 | # CONFIG_USB_G_SERIAL is not set | ||
1154 | # CONFIG_USB_MIDI_GADGET is not set | ||
1155 | 1019 | ||
1156 | # | 1020 | # |
1157 | # MMC/SD Card support | 1021 | # MMC/SD Card support |
@@ -1273,8 +1137,11 @@ CONFIG_DNOTIFY=y | |||
1273 | # | 1137 | # |
1274 | # DOS/FAT/NT Filesystems | 1138 | # DOS/FAT/NT Filesystems |
1275 | # | 1139 | # |
1276 | # CONFIG_MSDOS_FS is not set | 1140 | CONFIG_FAT_FS=y |
1277 | # CONFIG_VFAT_FS is not set | 1141 | CONFIG_MSDOS_FS=y |
1142 | CONFIG_VFAT_FS=y | ||
1143 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1144 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1278 | # CONFIG_NTFS_FS is not set | 1145 | # CONFIG_NTFS_FS is not set |
1279 | 1146 | ||
1280 | # | 1147 | # |
@@ -1340,7 +1207,7 @@ CONFIG_PARTITION_ADVANCED=y | |||
1340 | # CONFIG_OSF_PARTITION is not set | 1207 | # CONFIG_OSF_PARTITION is not set |
1341 | # CONFIG_AMIGA_PARTITION is not set | 1208 | # CONFIG_AMIGA_PARTITION is not set |
1342 | # CONFIG_ATARI_PARTITION is not set | 1209 | # CONFIG_ATARI_PARTITION is not set |
1343 | # CONFIG_MAC_PARTITION is not set | 1210 | CONFIG_MAC_PARTITION=y |
1344 | CONFIG_MSDOS_PARTITION=y | 1211 | CONFIG_MSDOS_PARTITION=y |
1345 | # CONFIG_BSD_DISKLABEL is not set | 1212 | # CONFIG_BSD_DISKLABEL is not set |
1346 | # CONFIG_MINIX_SUBPARTITION is not set | 1213 | # CONFIG_MINIX_SUBPARTITION is not set |
@@ -1356,7 +1223,46 @@ CONFIG_MSDOS_PARTITION=y | |||
1356 | # | 1223 | # |
1357 | # Native Language Support | 1224 | # Native Language Support |
1358 | # | 1225 | # |
1359 | # CONFIG_NLS is not set | 1226 | CONFIG_NLS=y |
1227 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1228 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
1229 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1230 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1231 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1232 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1233 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1234 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1235 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1236 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1237 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1238 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1239 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1240 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1241 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1242 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1243 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1244 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1245 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1246 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1247 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1248 | # CONFIG_NLS_ISO8859_8 is not set | ||
1249 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1250 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1251 | # CONFIG_NLS_ASCII is not set | ||
1252 | # CONFIG_NLS_ISO8859_1 is not set | ||
1253 | # CONFIG_NLS_ISO8859_2 is not set | ||
1254 | # CONFIG_NLS_ISO8859_3 is not set | ||
1255 | # CONFIG_NLS_ISO8859_4 is not set | ||
1256 | # CONFIG_NLS_ISO8859_5 is not set | ||
1257 | # CONFIG_NLS_ISO8859_6 is not set | ||
1258 | # CONFIG_NLS_ISO8859_7 is not set | ||
1259 | # CONFIG_NLS_ISO8859_9 is not set | ||
1260 | # CONFIG_NLS_ISO8859_13 is not set | ||
1261 | # CONFIG_NLS_ISO8859_14 is not set | ||
1262 | # CONFIG_NLS_ISO8859_15 is not set | ||
1263 | # CONFIG_NLS_KOI8_R is not set | ||
1264 | # CONFIG_NLS_KOI8_U is not set | ||
1265 | # CONFIG_NLS_UTF8 is not set | ||
1360 | 1266 | ||
1361 | # | 1267 | # |
1362 | # Distributed Lock Manager | 1268 | # Distributed Lock Manager |
@@ -1388,27 +1294,9 @@ CONFIG_ENABLE_MUST_CHECK=y | |||
1388 | # CONFIG_UNUSED_SYMBOLS is not set | 1294 | # CONFIG_UNUSED_SYMBOLS is not set |
1389 | # CONFIG_DEBUG_FS is not set | 1295 | # CONFIG_DEBUG_FS is not set |
1390 | # CONFIG_HEADERS_CHECK is not set | 1296 | # CONFIG_HEADERS_CHECK is not set |
1391 | CONFIG_DEBUG_KERNEL=y | 1297 | # CONFIG_DEBUG_KERNEL is not set |
1392 | CONFIG_LOG_BUF_SHIFT=14 | 1298 | CONFIG_LOG_BUF_SHIFT=14 |
1393 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1394 | # CONFIG_SCHEDSTATS is not set | ||
1395 | # CONFIG_DEBUG_SLAB is not set | ||
1396 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1397 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1398 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1399 | # CONFIG_DEBUG_MUTEXES is not set | ||
1400 | # CONFIG_DEBUG_RWSEMS is not set | ||
1401 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1402 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1403 | # CONFIG_DEBUG_KOBJECT is not set | ||
1404 | # CONFIG_DEBUG_BUGVERBOSE is not set | 1299 | # CONFIG_DEBUG_BUGVERBOSE is not set |
1405 | # CONFIG_DEBUG_INFO is not set | ||
1406 | # CONFIG_DEBUG_VM is not set | ||
1407 | # CONFIG_DEBUG_LIST is not set | ||
1408 | CONFIG_FORCED_INLINING=y | ||
1409 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1410 | # CONFIG_DEBUGGER is not set | ||
1411 | # CONFIG_BDI_SWITCH is not set | ||
1412 | # CONFIG_BOOTX_TEXT is not set | 1300 | # CONFIG_BOOTX_TEXT is not set |
1413 | # CONFIG_SERIAL_TEXT_DEBUG is not set | 1301 | # CONFIG_SERIAL_TEXT_DEBUG is not set |
1414 | # CONFIG_PPC_EARLY_DEBUG is not set | 1302 | # CONFIG_PPC_EARLY_DEBUG is not set |
diff --git a/arch/powerpc/configs/mpc834x_itxgp_defconfig b/arch/powerpc/configs/mpc834x_itxgp_defconfig new file mode 100644 index 000000000000..4aa666c9cb94 --- /dev/null +++ b/arch/powerpc/configs/mpc834x_itxgp_defconfig | |||
@@ -0,0 +1,1174 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20 | ||
4 | # Fri Feb 9 13:28:19 2007 | ||
5 | # | ||
6 | # CONFIG_PPC64 is not set | ||
7 | CONFIG_PPC32=y | ||
8 | CONFIG_PPC_MERGE=y | ||
9 | CONFIG_MMU=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_IRQ_PER_CPU=y | ||
12 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
13 | CONFIG_ARCH_HAS_ILOG2_U32=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
16 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
17 | CONFIG_PPC=y | ||
18 | CONFIG_EARLY_PRINTK=y | ||
19 | CONFIG_GENERIC_NVRAM=y | ||
20 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
21 | CONFIG_ARCH_MAY_HAVE_PC_FDC=y | ||
22 | CONFIG_PPC_OF=y | ||
23 | CONFIG_PPC_UDBG_16550=y | ||
24 | # CONFIG_GENERIC_TBSYNC is not set | ||
25 | CONFIG_AUDIT_ARCH=y | ||
26 | CONFIG_GENERIC_BUG=y | ||
27 | CONFIG_DEFAULT_UIMAGE=y | ||
28 | |||
29 | # | ||
30 | # Processor support | ||
31 | # | ||
32 | # CONFIG_CLASSIC32 is not set | ||
33 | # CONFIG_PPC_82xx is not set | ||
34 | CONFIG_PPC_83xx=y | ||
35 | # CONFIG_PPC_85xx is not set | ||
36 | # CONFIG_PPC_86xx is not set | ||
37 | # CONFIG_PPC_8xx is not set | ||
38 | # CONFIG_40x is not set | ||
39 | # CONFIG_44x is not set | ||
40 | # CONFIG_E200 is not set | ||
41 | CONFIG_6xx=y | ||
42 | CONFIG_83xx=y | ||
43 | CONFIG_PPC_FPU=y | ||
44 | # CONFIG_PPC_DCR_NATIVE is not set | ||
45 | # CONFIG_PPC_DCR_MMIO is not set | ||
46 | CONFIG_PPC_STD_MMU=y | ||
47 | CONFIG_PPC_STD_MMU_32=y | ||
48 | # CONFIG_SMP is not set | ||
49 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
50 | |||
51 | # | ||
52 | # Code maturity level options | ||
53 | # | ||
54 | CONFIG_EXPERIMENTAL=y | ||
55 | CONFIG_BROKEN_ON_SMP=y | ||
56 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
57 | |||
58 | # | ||
59 | # General setup | ||
60 | # | ||
61 | CONFIG_LOCALVERSION="" | ||
62 | CONFIG_LOCALVERSION_AUTO=y | ||
63 | CONFIG_SWAP=y | ||
64 | CONFIG_SYSVIPC=y | ||
65 | # CONFIG_IPC_NS is not set | ||
66 | # CONFIG_POSIX_MQUEUE is not set | ||
67 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
68 | # CONFIG_TASKSTATS is not set | ||
69 | # CONFIG_UTS_NS is not set | ||
70 | # CONFIG_AUDIT is not set | ||
71 | # CONFIG_IKCONFIG is not set | ||
72 | CONFIG_SYSFS_DEPRECATED=y | ||
73 | # CONFIG_RELAY is not set | ||
74 | CONFIG_INITRAMFS_SOURCE="" | ||
75 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
76 | CONFIG_SYSCTL=y | ||
77 | CONFIG_EMBEDDED=y | ||
78 | CONFIG_SYSCTL_SYSCALL=y | ||
79 | # CONFIG_KALLSYMS is not set | ||
80 | CONFIG_HOTPLUG=y | ||
81 | CONFIG_PRINTK=y | ||
82 | CONFIG_BUG=y | ||
83 | CONFIG_ELF_CORE=y | ||
84 | CONFIG_BASE_FULL=y | ||
85 | CONFIG_FUTEX=y | ||
86 | # CONFIG_EPOLL is not set | ||
87 | CONFIG_SHMEM=y | ||
88 | CONFIG_SLAB=y | ||
89 | CONFIG_VM_EVENT_COUNTERS=y | ||
90 | CONFIG_RT_MUTEXES=y | ||
91 | # CONFIG_TINY_SHMEM is not set | ||
92 | CONFIG_BASE_SMALL=0 | ||
93 | # CONFIG_SLOB is not set | ||
94 | |||
95 | # | ||
96 | # Loadable module support | ||
97 | # | ||
98 | CONFIG_MODULES=y | ||
99 | CONFIG_MODULE_UNLOAD=y | ||
100 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
101 | # CONFIG_MODVERSIONS is not set | ||
102 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
103 | # CONFIG_KMOD is not set | ||
104 | |||
105 | # | ||
106 | # Block layer | ||
107 | # | ||
108 | CONFIG_BLOCK=y | ||
109 | # CONFIG_LBD is not set | ||
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_LSF is not set | ||
112 | |||
113 | # | ||
114 | # IO Schedulers | ||
115 | # | ||
116 | CONFIG_IOSCHED_NOOP=y | ||
117 | CONFIG_IOSCHED_AS=y | ||
118 | CONFIG_IOSCHED_DEADLINE=y | ||
119 | CONFIG_IOSCHED_CFQ=y | ||
120 | CONFIG_DEFAULT_AS=y | ||
121 | # CONFIG_DEFAULT_DEADLINE is not set | ||
122 | # CONFIG_DEFAULT_CFQ is not set | ||
123 | # CONFIG_DEFAULT_NOOP is not set | ||
124 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
125 | CONFIG_PPC_GEN550=y | ||
126 | # CONFIG_WANT_EARLY_SERIAL is not set | ||
127 | |||
128 | # | ||
129 | # Platform support | ||
130 | # | ||
131 | # CONFIG_MPC832x_MDS is not set | ||
132 | # CONFIG_MPC834x_SYS is not set | ||
133 | CONFIG_MPC834x_ITX=y | ||
134 | # CONFIG_MPC8360E_PB is not set | ||
135 | CONFIG_MPC834x=y | ||
136 | # CONFIG_MPIC is not set | ||
137 | |||
138 | # | ||
139 | # Kernel options | ||
140 | # | ||
141 | # CONFIG_HIGHMEM is not set | ||
142 | # CONFIG_HZ_100 is not set | ||
143 | CONFIG_HZ_250=y | ||
144 | # CONFIG_HZ_300 is not set | ||
145 | # CONFIG_HZ_1000 is not set | ||
146 | CONFIG_HZ=250 | ||
147 | CONFIG_PREEMPT_NONE=y | ||
148 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
149 | # CONFIG_PREEMPT is not set | ||
150 | CONFIG_BINFMT_ELF=y | ||
151 | # CONFIG_BINFMT_MISC is not set | ||
152 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
153 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
154 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
155 | CONFIG_SELECT_MEMORY_MODEL=y | ||
156 | CONFIG_FLATMEM_MANUAL=y | ||
157 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
158 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
159 | CONFIG_FLATMEM=y | ||
160 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
161 | # CONFIG_SPARSEMEM_STATIC is not set | ||
162 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
163 | # CONFIG_RESOURCES_64BIT is not set | ||
164 | CONFIG_PROC_DEVICETREE=y | ||
165 | # CONFIG_CMDLINE_BOOL is not set | ||
166 | # CONFIG_PM is not set | ||
167 | CONFIG_SECCOMP=y | ||
168 | CONFIG_ISA_DMA_API=y | ||
169 | |||
170 | # | ||
171 | # Bus options | ||
172 | # | ||
173 | CONFIG_GENERIC_ISA_DMA=y | ||
174 | # CONFIG_MPIC_WEIRD is not set | ||
175 | # CONFIG_PPC_I8259 is not set | ||
176 | CONFIG_PPC_INDIRECT_PCI=y | ||
177 | CONFIG_FSL_SOC=y | ||
178 | CONFIG_PCI=y | ||
179 | CONFIG_PCI_DOMAINS=y | ||
180 | # CONFIG_PCIEPORTBUS is not set | ||
181 | |||
182 | # | ||
183 | # PCCARD (PCMCIA/CardBus) support | ||
184 | # | ||
185 | # CONFIG_PCCARD is not set | ||
186 | |||
187 | # | ||
188 | # PCI Hotplug Support | ||
189 | # | ||
190 | # CONFIG_HOTPLUG_PCI is not set | ||
191 | |||
192 | # | ||
193 | # Advanced setup | ||
194 | # | ||
195 | # CONFIG_ADVANCED_OPTIONS is not set | ||
196 | |||
197 | # | ||
198 | # Default settings for advanced configuration options are used | ||
199 | # | ||
200 | CONFIG_HIGHMEM_START=0xfe000000 | ||
201 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
202 | CONFIG_KERNEL_START=0xc0000000 | ||
203 | CONFIG_TASK_SIZE=0x80000000 | ||
204 | CONFIG_BOOT_LOAD=0x00800000 | ||
205 | |||
206 | # | ||
207 | # Networking | ||
208 | # | ||
209 | CONFIG_NET=y | ||
210 | |||
211 | # | ||
212 | # Networking options | ||
213 | # | ||
214 | # CONFIG_NETDEBUG is not set | ||
215 | CONFIG_PACKET=y | ||
216 | # CONFIG_PACKET_MMAP is not set | ||
217 | CONFIG_UNIX=y | ||
218 | CONFIG_XFRM=y | ||
219 | # CONFIG_XFRM_USER is not set | ||
220 | # CONFIG_XFRM_SUB_POLICY is not set | ||
221 | # CONFIG_NET_KEY is not set | ||
222 | CONFIG_INET=y | ||
223 | CONFIG_IP_MULTICAST=y | ||
224 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
225 | CONFIG_IP_FIB_HASH=y | ||
226 | CONFIG_IP_PNP=y | ||
227 | CONFIG_IP_PNP_DHCP=y | ||
228 | CONFIG_IP_PNP_BOOTP=y | ||
229 | # CONFIG_IP_PNP_RARP is not set | ||
230 | # CONFIG_NET_IPIP is not set | ||
231 | # CONFIG_NET_IPGRE is not set | ||
232 | # CONFIG_IP_MROUTE is not set | ||
233 | # CONFIG_ARPD is not set | ||
234 | CONFIG_SYN_COOKIES=y | ||
235 | # CONFIG_INET_AH is not set | ||
236 | # CONFIG_INET_ESP is not set | ||
237 | # CONFIG_INET_IPCOMP is not set | ||
238 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
239 | # CONFIG_INET_TUNNEL is not set | ||
240 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
241 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
242 | CONFIG_INET_XFRM_MODE_BEET=y | ||
243 | CONFIG_INET_DIAG=y | ||
244 | CONFIG_INET_TCP_DIAG=y | ||
245 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
246 | CONFIG_TCP_CONG_CUBIC=y | ||
247 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
248 | # CONFIG_TCP_MD5SIG is not set | ||
249 | # CONFIG_IPV6 is not set | ||
250 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
251 | # CONFIG_INET6_TUNNEL is not set | ||
252 | # CONFIG_NETWORK_SECMARK is not set | ||
253 | # CONFIG_NETFILTER is not set | ||
254 | |||
255 | # | ||
256 | # DCCP Configuration (EXPERIMENTAL) | ||
257 | # | ||
258 | # CONFIG_IP_DCCP is not set | ||
259 | |||
260 | # | ||
261 | # SCTP Configuration (EXPERIMENTAL) | ||
262 | # | ||
263 | # CONFIG_IP_SCTP is not set | ||
264 | |||
265 | # | ||
266 | # TIPC Configuration (EXPERIMENTAL) | ||
267 | # | ||
268 | # CONFIG_TIPC is not set | ||
269 | # CONFIG_ATM is not set | ||
270 | # CONFIG_BRIDGE is not set | ||
271 | # CONFIG_VLAN_8021Q is not set | ||
272 | # CONFIG_DECNET is not set | ||
273 | # CONFIG_LLC2 is not set | ||
274 | # CONFIG_IPX is not set | ||
275 | # CONFIG_ATALK is not set | ||
276 | # CONFIG_X25 is not set | ||
277 | # CONFIG_LAPB is not set | ||
278 | # CONFIG_ECONET is not set | ||
279 | # CONFIG_WAN_ROUTER is not set | ||
280 | |||
281 | # | ||
282 | # QoS and/or fair queueing | ||
283 | # | ||
284 | # CONFIG_NET_SCHED is not set | ||
285 | |||
286 | # | ||
287 | # Network testing | ||
288 | # | ||
289 | # CONFIG_NET_PKTGEN is not set | ||
290 | # CONFIG_HAMRADIO is not set | ||
291 | # CONFIG_IRDA is not set | ||
292 | # CONFIG_BT is not set | ||
293 | # CONFIG_IEEE80211 is not set | ||
294 | |||
295 | # | ||
296 | # Device Drivers | ||
297 | # | ||
298 | |||
299 | # | ||
300 | # Generic Driver Options | ||
301 | # | ||
302 | CONFIG_STANDALONE=y | ||
303 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
304 | # CONFIG_FW_LOADER is not set | ||
305 | # CONFIG_SYS_HYPERVISOR is not set | ||
306 | |||
307 | # | ||
308 | # Connector - unified userspace <-> kernelspace linker | ||
309 | # | ||
310 | # CONFIG_CONNECTOR is not set | ||
311 | |||
312 | # | ||
313 | # Memory Technology Devices (MTD) | ||
314 | # | ||
315 | CONFIG_MTD=y | ||
316 | # CONFIG_MTD_DEBUG is not set | ||
317 | # CONFIG_MTD_CONCAT is not set | ||
318 | # CONFIG_MTD_PARTITIONS is not set | ||
319 | |||
320 | # | ||
321 | # User Modules And Translation Layers | ||
322 | # | ||
323 | CONFIG_MTD_CHAR=y | ||
324 | # CONFIG_MTD_BLKDEVS is not set | ||
325 | # CONFIG_MTD_BLOCK is not set | ||
326 | # CONFIG_MTD_BLOCK_RO is not set | ||
327 | # CONFIG_FTL is not set | ||
328 | # CONFIG_NFTL is not set | ||
329 | # CONFIG_INFTL is not set | ||
330 | # CONFIG_RFD_FTL is not set | ||
331 | # CONFIG_SSFDC is not set | ||
332 | |||
333 | # | ||
334 | # RAM/ROM/Flash chip drivers | ||
335 | # | ||
336 | CONFIG_MTD_CFI=y | ||
337 | # CONFIG_MTD_JEDECPROBE is not set | ||
338 | CONFIG_MTD_GEN_PROBE=y | ||
339 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
340 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
341 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
342 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
343 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
344 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
345 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
346 | CONFIG_MTD_CFI_I1=y | ||
347 | CONFIG_MTD_CFI_I2=y | ||
348 | # CONFIG_MTD_CFI_I4 is not set | ||
349 | # CONFIG_MTD_CFI_I8 is not set | ||
350 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
351 | CONFIG_MTD_CFI_AMDSTD=y | ||
352 | # CONFIG_MTD_CFI_STAA is not set | ||
353 | CONFIG_MTD_CFI_UTIL=y | ||
354 | # CONFIG_MTD_RAM is not set | ||
355 | # CONFIG_MTD_ROM is not set | ||
356 | # CONFIG_MTD_ABSENT is not set | ||
357 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
358 | |||
359 | # | ||
360 | # Mapping drivers for chip access | ||
361 | # | ||
362 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
363 | CONFIG_MTD_PHYSMAP=y | ||
364 | CONFIG_MTD_PHYSMAP_START=0xfe000000 | ||
365 | CONFIG_MTD_PHYSMAP_LEN=0x800000 | ||
366 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
367 | # CONFIG_MTD_PHYSMAP_OF is not set | ||
368 | # CONFIG_MTD_PLATRAM is not set | ||
369 | |||
370 | # | ||
371 | # Self-contained MTD device drivers | ||
372 | # | ||
373 | # CONFIG_MTD_PMC551 is not set | ||
374 | # CONFIG_MTD_DATAFLASH is not set | ||
375 | # CONFIG_MTD_M25P80 is not set | ||
376 | # CONFIG_MTD_SLRAM is not set | ||
377 | # CONFIG_MTD_PHRAM is not set | ||
378 | # CONFIG_MTD_MTDRAM is not set | ||
379 | # CONFIG_MTD_BLOCK2MTD is not set | ||
380 | |||
381 | # | ||
382 | # Disk-On-Chip Device Drivers | ||
383 | # | ||
384 | # CONFIG_MTD_DOC2000 is not set | ||
385 | # CONFIG_MTD_DOC2001 is not set | ||
386 | # CONFIG_MTD_DOC2001PLUS is not set | ||
387 | |||
388 | # | ||
389 | # NAND Flash Device Drivers | ||
390 | # | ||
391 | # CONFIG_MTD_NAND is not set | ||
392 | # CONFIG_MTD_NAND_CAFE is not set | ||
393 | |||
394 | # | ||
395 | # OneNAND Flash Device Drivers | ||
396 | # | ||
397 | # CONFIG_MTD_ONENAND is not set | ||
398 | |||
399 | # | ||
400 | # Parallel port support | ||
401 | # | ||
402 | # CONFIG_PARPORT is not set | ||
403 | |||
404 | # | ||
405 | # Plug and Play support | ||
406 | # | ||
407 | |||
408 | # | ||
409 | # Block devices | ||
410 | # | ||
411 | # CONFIG_BLK_DEV_FD is not set | ||
412 | # CONFIG_BLK_CPQ_DA is not set | ||
413 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
414 | # CONFIG_BLK_DEV_DAC960 is not set | ||
415 | # CONFIG_BLK_DEV_UMEM is not set | ||
416 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
417 | CONFIG_BLK_DEV_LOOP=y | ||
418 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
419 | # CONFIG_BLK_DEV_NBD is not set | ||
420 | # CONFIG_BLK_DEV_SX8 is not set | ||
421 | CONFIG_BLK_DEV_RAM=y | ||
422 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
423 | CONFIG_BLK_DEV_RAM_SIZE=32768 | ||
424 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
425 | CONFIG_BLK_DEV_INITRD=y | ||
426 | # CONFIG_CDROM_PKTCDVD is not set | ||
427 | # CONFIG_ATA_OVER_ETH is not set | ||
428 | |||
429 | # | ||
430 | # Misc devices | ||
431 | # | ||
432 | # CONFIG_SGI_IOC4 is not set | ||
433 | # CONFIG_TIFM_CORE is not set | ||
434 | |||
435 | # | ||
436 | # ATA/ATAPI/MFM/RLL support | ||
437 | # | ||
438 | # CONFIG_IDE is not set | ||
439 | |||
440 | # | ||
441 | # SCSI device support | ||
442 | # | ||
443 | # CONFIG_RAID_ATTRS is not set | ||
444 | CONFIG_SCSI=y | ||
445 | # CONFIG_SCSI_TGT is not set | ||
446 | # CONFIG_SCSI_NETLINK is not set | ||
447 | CONFIG_SCSI_PROC_FS=y | ||
448 | |||
449 | # | ||
450 | # SCSI support type (disk, tape, CD-ROM) | ||
451 | # | ||
452 | CONFIG_BLK_DEV_SD=y | ||
453 | # CONFIG_CHR_DEV_ST is not set | ||
454 | # CONFIG_CHR_DEV_OSST is not set | ||
455 | # CONFIG_BLK_DEV_SR is not set | ||
456 | CONFIG_CHR_DEV_SG=y | ||
457 | # CONFIG_CHR_DEV_SCH is not set | ||
458 | |||
459 | # | ||
460 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
461 | # | ||
462 | # CONFIG_SCSI_MULTI_LUN is not set | ||
463 | # CONFIG_SCSI_CONSTANTS is not set | ||
464 | # CONFIG_SCSI_LOGGING is not set | ||
465 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
466 | |||
467 | # | ||
468 | # SCSI Transports | ||
469 | # | ||
470 | CONFIG_SCSI_SPI_ATTRS=y | ||
471 | # CONFIG_SCSI_FC_ATTRS is not set | ||
472 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
473 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
474 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
475 | |||
476 | # | ||
477 | # SCSI low-level drivers | ||
478 | # | ||
479 | # CONFIG_ISCSI_TCP is not set | ||
480 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
481 | # CONFIG_SCSI_3W_9XXX is not set | ||
482 | # CONFIG_SCSI_ACARD is not set | ||
483 | # CONFIG_SCSI_AACRAID is not set | ||
484 | # CONFIG_SCSI_AIC7XXX is not set | ||
485 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
486 | # CONFIG_SCSI_AIC79XX is not set | ||
487 | # CONFIG_SCSI_AIC94XX is not set | ||
488 | # CONFIG_SCSI_DPT_I2O is not set | ||
489 | # CONFIG_SCSI_ARCMSR is not set | ||
490 | # CONFIG_MEGARAID_NEWGEN is not set | ||
491 | # CONFIG_MEGARAID_LEGACY is not set | ||
492 | # CONFIG_MEGARAID_SAS is not set | ||
493 | # CONFIG_SCSI_HPTIOP is not set | ||
494 | # CONFIG_SCSI_BUSLOGIC is not set | ||
495 | # CONFIG_SCSI_DMX3191D is not set | ||
496 | # CONFIG_SCSI_EATA is not set | ||
497 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
498 | # CONFIG_SCSI_GDTH is not set | ||
499 | # CONFIG_SCSI_IPS is not set | ||
500 | # CONFIG_SCSI_INITIO is not set | ||
501 | # CONFIG_SCSI_INIA100 is not set | ||
502 | # CONFIG_SCSI_STEX is not set | ||
503 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
504 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
505 | # CONFIG_SCSI_QLA_FC is not set | ||
506 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
507 | # CONFIG_SCSI_LPFC is not set | ||
508 | # CONFIG_SCSI_DC395x is not set | ||
509 | # CONFIG_SCSI_DC390T is not set | ||
510 | # CONFIG_SCSI_NSP32 is not set | ||
511 | # CONFIG_SCSI_DEBUG is not set | ||
512 | # CONFIG_SCSI_SRP is not set | ||
513 | |||
514 | # | ||
515 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
516 | # | ||
517 | # CONFIG_ATA is not set | ||
518 | |||
519 | # | ||
520 | # Multi-device support (RAID and LVM) | ||
521 | # | ||
522 | # CONFIG_MD is not set | ||
523 | |||
524 | # | ||
525 | # Fusion MPT device support | ||
526 | # | ||
527 | # CONFIG_FUSION is not set | ||
528 | # CONFIG_FUSION_SPI is not set | ||
529 | # CONFIG_FUSION_FC is not set | ||
530 | # CONFIG_FUSION_SAS is not set | ||
531 | |||
532 | # | ||
533 | # IEEE 1394 (FireWire) support | ||
534 | # | ||
535 | # CONFIG_IEEE1394 is not set | ||
536 | |||
537 | # | ||
538 | # I2O device support | ||
539 | # | ||
540 | # CONFIG_I2O is not set | ||
541 | |||
542 | # | ||
543 | # Macintosh device drivers | ||
544 | # | ||
545 | # CONFIG_MAC_EMUMOUSEBTN is not set | ||
546 | # CONFIG_WINDFARM is not set | ||
547 | |||
548 | # | ||
549 | # Network device support | ||
550 | # | ||
551 | CONFIG_NETDEVICES=y | ||
552 | # CONFIG_DUMMY is not set | ||
553 | # CONFIG_BONDING is not set | ||
554 | # CONFIG_EQUALIZER is not set | ||
555 | # CONFIG_TUN is not set | ||
556 | |||
557 | # | ||
558 | # ARCnet devices | ||
559 | # | ||
560 | # CONFIG_ARCNET is not set | ||
561 | |||
562 | # | ||
563 | # PHY device support | ||
564 | # | ||
565 | CONFIG_PHYLIB=y | ||
566 | |||
567 | # | ||
568 | # MII PHY device drivers | ||
569 | # | ||
570 | # CONFIG_MARVELL_PHY is not set | ||
571 | # CONFIG_DAVICOM_PHY is not set | ||
572 | # CONFIG_QSEMI_PHY is not set | ||
573 | # CONFIG_LXT_PHY is not set | ||
574 | CONFIG_CICADA_PHY=y | ||
575 | # CONFIG_VITESSE_PHY is not set | ||
576 | # CONFIG_SMSC_PHY is not set | ||
577 | # CONFIG_BROADCOM_PHY is not set | ||
578 | # CONFIG_FIXED_PHY is not set | ||
579 | |||
580 | # | ||
581 | # Ethernet (10 or 100Mbit) | ||
582 | # | ||
583 | # CONFIG_NET_ETHERNET is not set | ||
584 | |||
585 | # | ||
586 | # Ethernet (1000 Mbit) | ||
587 | # | ||
588 | # CONFIG_ACENIC is not set | ||
589 | # CONFIG_DL2K is not set | ||
590 | # CONFIG_E1000 is not set | ||
591 | # CONFIG_NS83820 is not set | ||
592 | # CONFIG_HAMACHI is not set | ||
593 | # CONFIG_YELLOWFIN is not set | ||
594 | # CONFIG_R8169 is not set | ||
595 | # CONFIG_SIS190 is not set | ||
596 | # CONFIG_SKGE is not set | ||
597 | # CONFIG_SKY2 is not set | ||
598 | # CONFIG_SK98LIN is not set | ||
599 | # CONFIG_TIGON3 is not set | ||
600 | # CONFIG_BNX2 is not set | ||
601 | CONFIG_GIANFAR=y | ||
602 | CONFIG_GFAR_NAPI=y | ||
603 | # CONFIG_QLA3XXX is not set | ||
604 | |||
605 | # | ||
606 | # Ethernet (10000 Mbit) | ||
607 | # | ||
608 | # CONFIG_CHELSIO_T1 is not set | ||
609 | # CONFIG_IXGB is not set | ||
610 | # CONFIG_S2IO is not set | ||
611 | # CONFIG_MYRI10GE is not set | ||
612 | # CONFIG_NETXEN_NIC is not set | ||
613 | |||
614 | # | ||
615 | # Token Ring devices | ||
616 | # | ||
617 | # CONFIG_TR is not set | ||
618 | |||
619 | # | ||
620 | # Wireless LAN (non-hamradio) | ||
621 | # | ||
622 | # CONFIG_NET_RADIO is not set | ||
623 | |||
624 | # | ||
625 | # Wan interfaces | ||
626 | # | ||
627 | # CONFIG_WAN is not set | ||
628 | # CONFIG_FDDI is not set | ||
629 | # CONFIG_HIPPI is not set | ||
630 | # CONFIG_PPP is not set | ||
631 | # CONFIG_SLIP is not set | ||
632 | # CONFIG_NET_FC is not set | ||
633 | # CONFIG_SHAPER is not set | ||
634 | # CONFIG_NETCONSOLE is not set | ||
635 | # CONFIG_NETPOLL is not set | ||
636 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
637 | |||
638 | # | ||
639 | # ISDN subsystem | ||
640 | # | ||
641 | # CONFIG_ISDN is not set | ||
642 | |||
643 | # | ||
644 | # Telephony Support | ||
645 | # | ||
646 | # CONFIG_PHONE is not set | ||
647 | |||
648 | # | ||
649 | # Input device support | ||
650 | # | ||
651 | # CONFIG_INPUT is not set | ||
652 | |||
653 | # | ||
654 | # Hardware I/O ports | ||
655 | # | ||
656 | # CONFIG_SERIO is not set | ||
657 | # CONFIG_GAMEPORT is not set | ||
658 | |||
659 | # | ||
660 | # Character devices | ||
661 | # | ||
662 | # CONFIG_VT is not set | ||
663 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
664 | |||
665 | # | ||
666 | # Serial drivers | ||
667 | # | ||
668 | CONFIG_SERIAL_8250=y | ||
669 | CONFIG_SERIAL_8250_CONSOLE=y | ||
670 | # CONFIG_SERIAL_8250_PCI is not set | ||
671 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
672 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
673 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
674 | |||
675 | # | ||
676 | # Non-8250 serial port support | ||
677 | # | ||
678 | # CONFIG_SERIAL_UARTLITE is not set | ||
679 | CONFIG_SERIAL_CORE=y | ||
680 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
681 | # CONFIG_SERIAL_JSM is not set | ||
682 | CONFIG_UNIX98_PTYS=y | ||
683 | CONFIG_LEGACY_PTYS=y | ||
684 | CONFIG_LEGACY_PTY_COUNT=256 | ||
685 | |||
686 | # | ||
687 | # IPMI | ||
688 | # | ||
689 | # CONFIG_IPMI_HANDLER is not set | ||
690 | |||
691 | # | ||
692 | # Watchdog Cards | ||
693 | # | ||
694 | CONFIG_WATCHDOG=y | ||
695 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
696 | |||
697 | # | ||
698 | # Watchdog Device Drivers | ||
699 | # | ||
700 | # CONFIG_SOFT_WATCHDOG is not set | ||
701 | CONFIG_83xx_WDT=y | ||
702 | |||
703 | # | ||
704 | # PCI-based Watchdog Cards | ||
705 | # | ||
706 | # CONFIG_PCIPCWATCHDOG is not set | ||
707 | # CONFIG_WDTPCI is not set | ||
708 | CONFIG_HW_RANDOM=y | ||
709 | # CONFIG_NVRAM is not set | ||
710 | # CONFIG_GEN_RTC is not set | ||
711 | # CONFIG_DTLK is not set | ||
712 | # CONFIG_R3964 is not set | ||
713 | # CONFIG_APPLICOM is not set | ||
714 | # CONFIG_AGP is not set | ||
715 | # CONFIG_DRM is not set | ||
716 | # CONFIG_RAW_DRIVER is not set | ||
717 | |||
718 | # | ||
719 | # TPM devices | ||
720 | # | ||
721 | # CONFIG_TCG_TPM is not set | ||
722 | |||
723 | # | ||
724 | # I2C support | ||
725 | # | ||
726 | CONFIG_I2C=y | ||
727 | CONFIG_I2C_CHARDEV=y | ||
728 | |||
729 | # | ||
730 | # I2C Algorithms | ||
731 | # | ||
732 | # CONFIG_I2C_ALGOBIT is not set | ||
733 | # CONFIG_I2C_ALGOPCF is not set | ||
734 | # CONFIG_I2C_ALGOPCA is not set | ||
735 | |||
736 | # | ||
737 | # I2C Hardware Bus support | ||
738 | # | ||
739 | # CONFIG_I2C_ALI1535 is not set | ||
740 | # CONFIG_I2C_ALI1563 is not set | ||
741 | # CONFIG_I2C_ALI15X3 is not set | ||
742 | # CONFIG_I2C_AMD756 is not set | ||
743 | # CONFIG_I2C_AMD8111 is not set | ||
744 | # CONFIG_I2C_I801 is not set | ||
745 | # CONFIG_I2C_I810 is not set | ||
746 | # CONFIG_I2C_PIIX4 is not set | ||
747 | CONFIG_I2C_MPC=y | ||
748 | # CONFIG_I2C_NFORCE2 is not set | ||
749 | # CONFIG_I2C_OCORES is not set | ||
750 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
751 | # CONFIG_I2C_PROSAVAGE is not set | ||
752 | # CONFIG_I2C_SAVAGE4 is not set | ||
753 | # CONFIG_I2C_SIS5595 is not set | ||
754 | # CONFIG_I2C_SIS630 is not set | ||
755 | # CONFIG_I2C_SIS96X is not set | ||
756 | # CONFIG_I2C_STUB is not set | ||
757 | # CONFIG_I2C_VIA is not set | ||
758 | # CONFIG_I2C_VIAPRO is not set | ||
759 | # CONFIG_I2C_VOODOO3 is not set | ||
760 | # CONFIG_I2C_PCA_ISA is not set | ||
761 | |||
762 | # | ||
763 | # Miscellaneous I2C Chip support | ||
764 | # | ||
765 | # CONFIG_SENSORS_DS1337 is not set | ||
766 | # CONFIG_SENSORS_DS1374 is not set | ||
767 | # CONFIG_SENSORS_EEPROM is not set | ||
768 | CONFIG_SENSORS_PCF8574=y | ||
769 | # CONFIG_SENSORS_PCA9539 is not set | ||
770 | # CONFIG_SENSORS_PCF8591 is not set | ||
771 | # CONFIG_SENSORS_M41T00 is not set | ||
772 | # CONFIG_SENSORS_MAX6875 is not set | ||
773 | # CONFIG_I2C_DEBUG_CORE is not set | ||
774 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
775 | # CONFIG_I2C_DEBUG_BUS is not set | ||
776 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
777 | |||
778 | # | ||
779 | # SPI support | ||
780 | # | ||
781 | CONFIG_SPI=y | ||
782 | CONFIG_SPI_MASTER=y | ||
783 | |||
784 | # | ||
785 | # SPI Master Controller Drivers | ||
786 | # | ||
787 | CONFIG_SPI_BITBANG=y | ||
788 | CONFIG_SPI_MPC83xx=y | ||
789 | |||
790 | # | ||
791 | # SPI Protocol Masters | ||
792 | # | ||
793 | |||
794 | # | ||
795 | # Dallas's 1-wire bus | ||
796 | # | ||
797 | # CONFIG_W1 is not set | ||
798 | |||
799 | # | ||
800 | # Hardware Monitoring support | ||
801 | # | ||
802 | # CONFIG_HWMON is not set | ||
803 | # CONFIG_HWMON_VID is not set | ||
804 | |||
805 | # | ||
806 | # Multimedia devices | ||
807 | # | ||
808 | # CONFIG_VIDEO_DEV is not set | ||
809 | |||
810 | # | ||
811 | # Digital Video Broadcasting Devices | ||
812 | # | ||
813 | # CONFIG_DVB is not set | ||
814 | |||
815 | # | ||
816 | # Graphics support | ||
817 | # | ||
818 | # CONFIG_FIRMWARE_EDID is not set | ||
819 | # CONFIG_FB is not set | ||
820 | # CONFIG_FB_IBM_GXT4500 is not set | ||
821 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
822 | |||
823 | # | ||
824 | # Sound | ||
825 | # | ||
826 | # CONFIG_SOUND is not set | ||
827 | |||
828 | # | ||
829 | # USB support | ||
830 | # | ||
831 | CONFIG_USB_ARCH_HAS_HCD=y | ||
832 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
833 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
834 | # CONFIG_USB is not set | ||
835 | |||
836 | # | ||
837 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
838 | # | ||
839 | |||
840 | # | ||
841 | # USB Gadget Support | ||
842 | # | ||
843 | # CONFIG_USB_GADGET is not set | ||
844 | |||
845 | # | ||
846 | # MMC/SD Card support | ||
847 | # | ||
848 | # CONFIG_MMC is not set | ||
849 | |||
850 | # | ||
851 | # LED devices | ||
852 | # | ||
853 | # CONFIG_NEW_LEDS is not set | ||
854 | |||
855 | # | ||
856 | # LED drivers | ||
857 | # | ||
858 | |||
859 | # | ||
860 | # LED Triggers | ||
861 | # | ||
862 | |||
863 | # | ||
864 | # InfiniBand support | ||
865 | # | ||
866 | # CONFIG_INFINIBAND is not set | ||
867 | |||
868 | # | ||
869 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
870 | # | ||
871 | |||
872 | # | ||
873 | # Real Time Clock | ||
874 | # | ||
875 | CONFIG_RTC_LIB=y | ||
876 | CONFIG_RTC_CLASS=y | ||
877 | CONFIG_RTC_HCTOSYS=y | ||
878 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
879 | # CONFIG_RTC_DEBUG is not set | ||
880 | |||
881 | # | ||
882 | # RTC interfaces | ||
883 | # | ||
884 | CONFIG_RTC_INTF_SYSFS=y | ||
885 | CONFIG_RTC_INTF_PROC=y | ||
886 | CONFIG_RTC_INTF_DEV=y | ||
887 | CONFIG_RTC_INTF_DEV_UIE_EMUL=y | ||
888 | |||
889 | # | ||
890 | # RTC drivers | ||
891 | # | ||
892 | # CONFIG_RTC_DRV_X1205 is not set | ||
893 | CONFIG_RTC_DRV_DS1307=y | ||
894 | # CONFIG_RTC_DRV_DS1553 is not set | ||
895 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
896 | # CONFIG_RTC_DRV_DS1672 is not set | ||
897 | # CONFIG_RTC_DRV_DS1742 is not set | ||
898 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
899 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
900 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
901 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
902 | # CONFIG_RTC_DRV_M48T86 is not set | ||
903 | # CONFIG_RTC_DRV_TEST is not set | ||
904 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
905 | # CONFIG_RTC_DRV_V3020 is not set | ||
906 | |||
907 | # | ||
908 | # DMA Engine support | ||
909 | # | ||
910 | CONFIG_DMA_ENGINE=y | ||
911 | |||
912 | # | ||
913 | # DMA Clients | ||
914 | # | ||
915 | CONFIG_NET_DMA=y | ||
916 | |||
917 | # | ||
918 | # DMA Devices | ||
919 | # | ||
920 | CONFIG_INTEL_IOATDMA=y | ||
921 | |||
922 | # | ||
923 | # Virtualization | ||
924 | # | ||
925 | |||
926 | # | ||
927 | # File systems | ||
928 | # | ||
929 | CONFIG_EXT2_FS=y | ||
930 | # CONFIG_EXT2_FS_XATTR is not set | ||
931 | # CONFIG_EXT2_FS_XIP is not set | ||
932 | CONFIG_EXT3_FS=y | ||
933 | CONFIG_EXT3_FS_XATTR=y | ||
934 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
935 | # CONFIG_EXT3_FS_SECURITY is not set | ||
936 | # CONFIG_EXT4DEV_FS is not set | ||
937 | CONFIG_JBD=y | ||
938 | # CONFIG_JBD_DEBUG is not set | ||
939 | CONFIG_FS_MBCACHE=y | ||
940 | # CONFIG_REISERFS_FS is not set | ||
941 | # CONFIG_JFS_FS is not set | ||
942 | # CONFIG_FS_POSIX_ACL is not set | ||
943 | # CONFIG_XFS_FS is not set | ||
944 | # CONFIG_GFS2_FS is not set | ||
945 | # CONFIG_OCFS2_FS is not set | ||
946 | # CONFIG_MINIX_FS is not set | ||
947 | # CONFIG_ROMFS_FS is not set | ||
948 | CONFIG_INOTIFY=y | ||
949 | CONFIG_INOTIFY_USER=y | ||
950 | # CONFIG_QUOTA is not set | ||
951 | CONFIG_DNOTIFY=y | ||
952 | # CONFIG_AUTOFS_FS is not set | ||
953 | # CONFIG_AUTOFS4_FS is not set | ||
954 | # CONFIG_FUSE_FS is not set | ||
955 | |||
956 | # | ||
957 | # CD-ROM/DVD Filesystems | ||
958 | # | ||
959 | # CONFIG_ISO9660_FS is not set | ||
960 | # CONFIG_UDF_FS is not set | ||
961 | |||
962 | # | ||
963 | # DOS/FAT/NT Filesystems | ||
964 | # | ||
965 | CONFIG_FAT_FS=y | ||
966 | CONFIG_MSDOS_FS=y | ||
967 | CONFIG_VFAT_FS=y | ||
968 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
969 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
970 | # CONFIG_NTFS_FS is not set | ||
971 | |||
972 | # | ||
973 | # Pseudo filesystems | ||
974 | # | ||
975 | CONFIG_PROC_FS=y | ||
976 | CONFIG_PROC_KCORE=y | ||
977 | CONFIG_PROC_SYSCTL=y | ||
978 | CONFIG_SYSFS=y | ||
979 | CONFIG_TMPFS=y | ||
980 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
981 | # CONFIG_HUGETLB_PAGE is not set | ||
982 | CONFIG_RAMFS=y | ||
983 | # CONFIG_CONFIGFS_FS is not set | ||
984 | |||
985 | # | ||
986 | # Miscellaneous filesystems | ||
987 | # | ||
988 | # CONFIG_ADFS_FS is not set | ||
989 | # CONFIG_AFFS_FS is not set | ||
990 | # CONFIG_HFS_FS is not set | ||
991 | # CONFIG_HFSPLUS_FS is not set | ||
992 | # CONFIG_BEFS_FS is not set | ||
993 | # CONFIG_BFS_FS is not set | ||
994 | # CONFIG_EFS_FS is not set | ||
995 | # CONFIG_JFFS2_FS is not set | ||
996 | # CONFIG_CRAMFS is not set | ||
997 | # CONFIG_VXFS_FS is not set | ||
998 | # CONFIG_HPFS_FS is not set | ||
999 | # CONFIG_QNX4FS_FS is not set | ||
1000 | # CONFIG_SYSV_FS is not set | ||
1001 | # CONFIG_UFS_FS is not set | ||
1002 | |||
1003 | # | ||
1004 | # Network File Systems | ||
1005 | # | ||
1006 | CONFIG_NFS_FS=y | ||
1007 | CONFIG_NFS_V3=y | ||
1008 | # CONFIG_NFS_V3_ACL is not set | ||
1009 | CONFIG_NFS_V4=y | ||
1010 | # CONFIG_NFS_DIRECTIO is not set | ||
1011 | # CONFIG_NFSD is not set | ||
1012 | CONFIG_ROOT_NFS=y | ||
1013 | CONFIG_LOCKD=y | ||
1014 | CONFIG_LOCKD_V4=y | ||
1015 | CONFIG_NFS_COMMON=y | ||
1016 | CONFIG_SUNRPC=y | ||
1017 | CONFIG_SUNRPC_GSS=y | ||
1018 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1019 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1020 | # CONFIG_SMB_FS is not set | ||
1021 | # CONFIG_CIFS is not set | ||
1022 | # CONFIG_NCP_FS is not set | ||
1023 | # CONFIG_CODA_FS is not set | ||
1024 | # CONFIG_AFS_FS is not set | ||
1025 | # CONFIG_9P_FS is not set | ||
1026 | |||
1027 | # | ||
1028 | # Partition Types | ||
1029 | # | ||
1030 | CONFIG_PARTITION_ADVANCED=y | ||
1031 | # CONFIG_ACORN_PARTITION is not set | ||
1032 | # CONFIG_OSF_PARTITION is not set | ||
1033 | # CONFIG_AMIGA_PARTITION is not set | ||
1034 | # CONFIG_ATARI_PARTITION is not set | ||
1035 | CONFIG_MAC_PARTITION=y | ||
1036 | CONFIG_MSDOS_PARTITION=y | ||
1037 | # CONFIG_BSD_DISKLABEL is not set | ||
1038 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1039 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1040 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1041 | # CONFIG_LDM_PARTITION is not set | ||
1042 | # CONFIG_SGI_PARTITION is not set | ||
1043 | # CONFIG_ULTRIX_PARTITION is not set | ||
1044 | # CONFIG_SUN_PARTITION is not set | ||
1045 | # CONFIG_KARMA_PARTITION is not set | ||
1046 | # CONFIG_EFI_PARTITION is not set | ||
1047 | |||
1048 | # | ||
1049 | # Native Language Support | ||
1050 | # | ||
1051 | CONFIG_NLS=y | ||
1052 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1053 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
1054 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1055 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1056 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1057 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1058 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1059 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1060 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1061 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1062 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1063 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1064 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1065 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1066 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1067 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1068 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1069 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1070 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1071 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1072 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1073 | # CONFIG_NLS_ISO8859_8 is not set | ||
1074 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1075 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1076 | # CONFIG_NLS_ASCII is not set | ||
1077 | # CONFIG_NLS_ISO8859_1 is not set | ||
1078 | # CONFIG_NLS_ISO8859_2 is not set | ||
1079 | # CONFIG_NLS_ISO8859_3 is not set | ||
1080 | # CONFIG_NLS_ISO8859_4 is not set | ||
1081 | # CONFIG_NLS_ISO8859_5 is not set | ||
1082 | # CONFIG_NLS_ISO8859_6 is not set | ||
1083 | # CONFIG_NLS_ISO8859_7 is not set | ||
1084 | # CONFIG_NLS_ISO8859_9 is not set | ||
1085 | # CONFIG_NLS_ISO8859_13 is not set | ||
1086 | # CONFIG_NLS_ISO8859_14 is not set | ||
1087 | # CONFIG_NLS_ISO8859_15 is not set | ||
1088 | # CONFIG_NLS_KOI8_R is not set | ||
1089 | # CONFIG_NLS_KOI8_U is not set | ||
1090 | # CONFIG_NLS_UTF8 is not set | ||
1091 | |||
1092 | # | ||
1093 | # Distributed Lock Manager | ||
1094 | # | ||
1095 | # CONFIG_DLM is not set | ||
1096 | |||
1097 | # | ||
1098 | # Library routines | ||
1099 | # | ||
1100 | CONFIG_BITREVERSE=y | ||
1101 | # CONFIG_CRC_CCITT is not set | ||
1102 | # CONFIG_CRC16 is not set | ||
1103 | CONFIG_CRC32=y | ||
1104 | # CONFIG_LIBCRC32C is not set | ||
1105 | CONFIG_PLIST=y | ||
1106 | CONFIG_IOMAP_COPY=y | ||
1107 | |||
1108 | # | ||
1109 | # Instrumentation Support | ||
1110 | # | ||
1111 | # CONFIG_PROFILING is not set | ||
1112 | |||
1113 | # | ||
1114 | # Kernel hacking | ||
1115 | # | ||
1116 | # CONFIG_PRINTK_TIME is not set | ||
1117 | CONFIG_ENABLE_MUST_CHECK=y | ||
1118 | # CONFIG_MAGIC_SYSRQ is not set | ||
1119 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1120 | # CONFIG_DEBUG_FS is not set | ||
1121 | # CONFIG_HEADERS_CHECK is not set | ||
1122 | # CONFIG_DEBUG_KERNEL is not set | ||
1123 | CONFIG_LOG_BUF_SHIFT=14 | ||
1124 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1125 | # CONFIG_BOOTX_TEXT is not set | ||
1126 | # CONFIG_SERIAL_TEXT_DEBUG is not set | ||
1127 | # CONFIG_PPC_EARLY_DEBUG is not set | ||
1128 | |||
1129 | # | ||
1130 | # Security options | ||
1131 | # | ||
1132 | # CONFIG_KEYS is not set | ||
1133 | # CONFIG_SECURITY is not set | ||
1134 | |||
1135 | # | ||
1136 | # Cryptographic options | ||
1137 | # | ||
1138 | CONFIG_CRYPTO=y | ||
1139 | CONFIG_CRYPTO_ALGAPI=y | ||
1140 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1141 | CONFIG_CRYPTO_MANAGER=y | ||
1142 | # CONFIG_CRYPTO_HMAC is not set | ||
1143 | # CONFIG_CRYPTO_XCBC is not set | ||
1144 | # CONFIG_CRYPTO_NULL is not set | ||
1145 | # CONFIG_CRYPTO_MD4 is not set | ||
1146 | CONFIG_CRYPTO_MD5=y | ||
1147 | # CONFIG_CRYPTO_SHA1 is not set | ||
1148 | # CONFIG_CRYPTO_SHA256 is not set | ||
1149 | # CONFIG_CRYPTO_SHA512 is not set | ||
1150 | # CONFIG_CRYPTO_WP512 is not set | ||
1151 | # CONFIG_CRYPTO_TGR192 is not set | ||
1152 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1153 | # CONFIG_CRYPTO_ECB is not set | ||
1154 | CONFIG_CRYPTO_CBC=y | ||
1155 | # CONFIG_CRYPTO_LRW is not set | ||
1156 | CONFIG_CRYPTO_DES=y | ||
1157 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1158 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1159 | # CONFIG_CRYPTO_SERPENT is not set | ||
1160 | # CONFIG_CRYPTO_AES is not set | ||
1161 | # CONFIG_CRYPTO_CAST5 is not set | ||
1162 | # CONFIG_CRYPTO_CAST6 is not set | ||
1163 | # CONFIG_CRYPTO_TEA is not set | ||
1164 | # CONFIG_CRYPTO_ARC4 is not set | ||
1165 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1166 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1167 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1168 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1169 | # CONFIG_CRYPTO_CRC32C is not set | ||
1170 | # CONFIG_CRYPTO_TEST is not set | ||
1171 | |||
1172 | # | ||
1173 | # Hardware crypto devices | ||
1174 | # | ||
diff --git a/arch/powerpc/configs/mpc834x_mds_defconfig b/arch/powerpc/configs/mpc834x_mds_defconfig index 9eaed3a36983..2e3f8efb6ab1 100644 --- a/arch/powerpc/configs/mpc834x_mds_defconfig +++ b/arch/powerpc/configs/mpc834x_mds_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.20-rc5 | 3 | # Linux kernel version: 2.6.20 |
4 | # Fri Jan 26 00:19:27 2007 | 4 | # Thu Feb 8 01:00:48 2007 |
5 | # | 5 | # |
6 | # CONFIG_PPC64 is not set | 6 | # CONFIG_PPC64 is not set |
7 | CONFIG_PPC32=y | 7 | CONFIG_PPC32=y |
@@ -34,9 +34,9 @@ CONFIG_DEFAULT_UIMAGE=y | |||
34 | CONFIG_PPC_83xx=y | 34 | CONFIG_PPC_83xx=y |
35 | # CONFIG_PPC_85xx is not set | 35 | # CONFIG_PPC_85xx is not set |
36 | # CONFIG_PPC_86xx is not set | 36 | # CONFIG_PPC_86xx is not set |
37 | # CONFIG_PPC_8xx is not set | ||
37 | # CONFIG_40x is not set | 38 | # CONFIG_40x is not set |
38 | # CONFIG_44x is not set | 39 | # CONFIG_44x is not set |
39 | # CONFIG_8xx is not set | ||
40 | # CONFIG_E200 is not set | 40 | # CONFIG_E200 is not set |
41 | CONFIG_6xx=y | 41 | CONFIG_6xx=y |
42 | CONFIG_83xx=y | 42 | CONFIG_83xx=y |
@@ -128,8 +128,9 @@ CONFIG_PPC_GEN550=y | |||
128 | # | 128 | # |
129 | # Platform support | 129 | # Platform support |
130 | # | 130 | # |
131 | # CONFIG_MPC8313_RDB is not set | ||
131 | # CONFIG_MPC832x_MDS is not set | 132 | # CONFIG_MPC832x_MDS is not set |
132 | CONFIG_MPC834x_SYS=y | 133 | CONFIG_MPC834x_MDS=y |
133 | # CONFIG_MPC834x_ITX is not set | 134 | # CONFIG_MPC834x_ITX is not set |
134 | # CONFIG_MPC8360E_PB is not set | 135 | # CONFIG_MPC8360E_PB is not set |
135 | CONFIG_MPC834x=y | 136 | CONFIG_MPC834x=y |
diff --git a/arch/powerpc/configs/mpc8568mds_defconfig b/arch/powerpc/configs/mpc8568mds_defconfig new file mode 100644 index 000000000000..058e06d88bc1 --- /dev/null +++ b/arch/powerpc/configs/mpc8568mds_defconfig | |||
@@ -0,0 +1,992 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20-rc5 | ||
4 | # Wed Feb 7 23:54:25 2007 | ||
5 | # | ||
6 | # CONFIG_PPC64 is not set | ||
7 | CONFIG_PPC32=y | ||
8 | CONFIG_PPC_MERGE=y | ||
9 | CONFIG_MMU=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_IRQ_PER_CPU=y | ||
12 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
13 | CONFIG_ARCH_HAS_ILOG2_U32=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
16 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
17 | CONFIG_PPC=y | ||
18 | CONFIG_EARLY_PRINTK=y | ||
19 | CONFIG_GENERIC_NVRAM=y | ||
20 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
21 | CONFIG_ARCH_MAY_HAVE_PC_FDC=y | ||
22 | CONFIG_PPC_OF=y | ||
23 | CONFIG_PPC_UDBG_16550=y | ||
24 | # CONFIG_GENERIC_TBSYNC is not set | ||
25 | CONFIG_AUDIT_ARCH=y | ||
26 | CONFIG_GENERIC_BUG=y | ||
27 | CONFIG_DEFAULT_UIMAGE=y | ||
28 | |||
29 | # | ||
30 | # Processor support | ||
31 | # | ||
32 | # CONFIG_CLASSIC32 is not set | ||
33 | # CONFIG_PPC_82xx is not set | ||
34 | # CONFIG_PPC_83xx is not set | ||
35 | CONFIG_PPC_85xx=y | ||
36 | # CONFIG_PPC_86xx is not set | ||
37 | # CONFIG_40x is not set | ||
38 | # CONFIG_44x is not set | ||
39 | # CONFIG_8xx is not set | ||
40 | # CONFIG_E200 is not set | ||
41 | CONFIG_85xx=y | ||
42 | CONFIG_E500=y | ||
43 | # CONFIG_PPC_DCR_NATIVE is not set | ||
44 | # CONFIG_PPC_DCR_MMIO is not set | ||
45 | CONFIG_BOOKE=y | ||
46 | CONFIG_FSL_BOOKE=y | ||
47 | # CONFIG_PHYS_64BIT is not set | ||
48 | CONFIG_SPE=y | ||
49 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
50 | |||
51 | # | ||
52 | # Code maturity level options | ||
53 | # | ||
54 | CONFIG_EXPERIMENTAL=y | ||
55 | CONFIG_BROKEN_ON_SMP=y | ||
56 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
57 | |||
58 | # | ||
59 | # General setup | ||
60 | # | ||
61 | CONFIG_LOCALVERSION="" | ||
62 | CONFIG_LOCALVERSION_AUTO=y | ||
63 | CONFIG_SWAP=y | ||
64 | CONFIG_SYSVIPC=y | ||
65 | # CONFIG_IPC_NS is not set | ||
66 | # CONFIG_POSIX_MQUEUE is not set | ||
67 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
68 | # CONFIG_TASKSTATS is not set | ||
69 | # CONFIG_UTS_NS is not set | ||
70 | # CONFIG_AUDIT is not set | ||
71 | # CONFIG_IKCONFIG is not set | ||
72 | CONFIG_SYSFS_DEPRECATED=y | ||
73 | # CONFIG_RELAY is not set | ||
74 | CONFIG_INITRAMFS_SOURCE="" | ||
75 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
76 | CONFIG_SYSCTL=y | ||
77 | CONFIG_EMBEDDED=y | ||
78 | CONFIG_SYSCTL_SYSCALL=y | ||
79 | # CONFIG_KALLSYMS is not set | ||
80 | CONFIG_HOTPLUG=y | ||
81 | CONFIG_PRINTK=y | ||
82 | CONFIG_BUG=y | ||
83 | CONFIG_ELF_CORE=y | ||
84 | CONFIG_BASE_FULL=y | ||
85 | CONFIG_FUTEX=y | ||
86 | # CONFIG_EPOLL is not set | ||
87 | CONFIG_SHMEM=y | ||
88 | CONFIG_SLAB=y | ||
89 | CONFIG_VM_EVENT_COUNTERS=y | ||
90 | CONFIG_RT_MUTEXES=y | ||
91 | # CONFIG_TINY_SHMEM is not set | ||
92 | CONFIG_BASE_SMALL=0 | ||
93 | # CONFIG_SLOB is not set | ||
94 | |||
95 | # | ||
96 | # Loadable module support | ||
97 | # | ||
98 | CONFIG_MODULES=y | ||
99 | CONFIG_MODULE_UNLOAD=y | ||
100 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
101 | # CONFIG_MODVERSIONS is not set | ||
102 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
103 | # CONFIG_KMOD is not set | ||
104 | |||
105 | # | ||
106 | # Block layer | ||
107 | # | ||
108 | CONFIG_BLOCK=y | ||
109 | # CONFIG_LBD is not set | ||
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_LSF is not set | ||
112 | |||
113 | # | ||
114 | # IO Schedulers | ||
115 | # | ||
116 | CONFIG_IOSCHED_NOOP=y | ||
117 | CONFIG_IOSCHED_AS=y | ||
118 | CONFIG_IOSCHED_DEADLINE=y | ||
119 | CONFIG_IOSCHED_CFQ=y | ||
120 | CONFIG_DEFAULT_AS=y | ||
121 | # CONFIG_DEFAULT_DEADLINE is not set | ||
122 | # CONFIG_DEFAULT_CFQ is not set | ||
123 | # CONFIG_DEFAULT_NOOP is not set | ||
124 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
125 | # CONFIG_WANT_EARLY_SERIAL is not set | ||
126 | |||
127 | # | ||
128 | # Platform support | ||
129 | # | ||
130 | # CONFIG_MPC8540_ADS is not set | ||
131 | # CONFIG_MPC8560_ADS is not set | ||
132 | # CONFIG_MPC85xx_CDS is not set | ||
133 | CONFIG_MPC8568_MDS=y | ||
134 | CONFIG_MPC85xx=y | ||
135 | CONFIG_PPC_INDIRECT_PCI_BE=y | ||
136 | CONFIG_MPIC=y | ||
137 | |||
138 | # | ||
139 | # Kernel options | ||
140 | # | ||
141 | # CONFIG_HIGHMEM is not set | ||
142 | # CONFIG_HZ_100 is not set | ||
143 | CONFIG_HZ_250=y | ||
144 | # CONFIG_HZ_300 is not set | ||
145 | # CONFIG_HZ_1000 is not set | ||
146 | CONFIG_HZ=250 | ||
147 | CONFIG_PREEMPT_NONE=y | ||
148 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
149 | # CONFIG_PREEMPT is not set | ||
150 | CONFIG_BINFMT_ELF=y | ||
151 | # CONFIG_BINFMT_MISC is not set | ||
152 | CONFIG_MATH_EMULATION=y | ||
153 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
154 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
155 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
156 | CONFIG_SELECT_MEMORY_MODEL=y | ||
157 | CONFIG_FLATMEM_MANUAL=y | ||
158 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
159 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
160 | CONFIG_FLATMEM=y | ||
161 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
162 | # CONFIG_SPARSEMEM_STATIC is not set | ||
163 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
164 | # CONFIG_RESOURCES_64BIT is not set | ||
165 | CONFIG_PROC_DEVICETREE=y | ||
166 | # CONFIG_CMDLINE_BOOL is not set | ||
167 | # CONFIG_PM is not set | ||
168 | CONFIG_SECCOMP=y | ||
169 | CONFIG_ISA_DMA_API=y | ||
170 | |||
171 | # | ||
172 | # Bus options | ||
173 | # | ||
174 | # CONFIG_MPIC_WEIRD is not set | ||
175 | # CONFIG_PPC_I8259 is not set | ||
176 | CONFIG_PPC_INDIRECT_PCI=y | ||
177 | CONFIG_FSL_SOC=y | ||
178 | # CONFIG_PCI is not set | ||
179 | # CONFIG_PCI_DOMAINS is not set | ||
180 | |||
181 | # | ||
182 | # PCCARD (PCMCIA/CardBus) support | ||
183 | # | ||
184 | # CONFIG_PCCARD is not set | ||
185 | |||
186 | # | ||
187 | # PCI Hotplug Support | ||
188 | # | ||
189 | |||
190 | # | ||
191 | # Advanced setup | ||
192 | # | ||
193 | # CONFIG_ADVANCED_OPTIONS is not set | ||
194 | |||
195 | # | ||
196 | # Default settings for advanced configuration options are used | ||
197 | # | ||
198 | CONFIG_HIGHMEM_START=0xfe000000 | ||
199 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
200 | CONFIG_KERNEL_START=0xc0000000 | ||
201 | CONFIG_TASK_SIZE=0x80000000 | ||
202 | CONFIG_BOOT_LOAD=0x00800000 | ||
203 | |||
204 | # | ||
205 | # Networking | ||
206 | # | ||
207 | CONFIG_NET=y | ||
208 | |||
209 | # | ||
210 | # Networking options | ||
211 | # | ||
212 | # CONFIG_NETDEBUG is not set | ||
213 | CONFIG_PACKET=y | ||
214 | # CONFIG_PACKET_MMAP is not set | ||
215 | CONFIG_UNIX=y | ||
216 | CONFIG_XFRM=y | ||
217 | # CONFIG_XFRM_USER is not set | ||
218 | # CONFIG_XFRM_SUB_POLICY is not set | ||
219 | # CONFIG_NET_KEY is not set | ||
220 | CONFIG_INET=y | ||
221 | CONFIG_IP_MULTICAST=y | ||
222 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
223 | CONFIG_IP_FIB_HASH=y | ||
224 | CONFIG_IP_PNP=y | ||
225 | CONFIG_IP_PNP_DHCP=y | ||
226 | CONFIG_IP_PNP_BOOTP=y | ||
227 | # CONFIG_IP_PNP_RARP is not set | ||
228 | # CONFIG_NET_IPIP is not set | ||
229 | # CONFIG_NET_IPGRE is not set | ||
230 | # CONFIG_IP_MROUTE is not set | ||
231 | # CONFIG_ARPD is not set | ||
232 | CONFIG_SYN_COOKIES=y | ||
233 | # CONFIG_INET_AH is not set | ||
234 | # CONFIG_INET_ESP is not set | ||
235 | # CONFIG_INET_IPCOMP is not set | ||
236 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
237 | # CONFIG_INET_TUNNEL is not set | ||
238 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
239 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
240 | CONFIG_INET_XFRM_MODE_BEET=y | ||
241 | CONFIG_INET_DIAG=y | ||
242 | CONFIG_INET_TCP_DIAG=y | ||
243 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
244 | CONFIG_TCP_CONG_CUBIC=y | ||
245 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
246 | # CONFIG_TCP_MD5SIG is not set | ||
247 | # CONFIG_IPV6 is not set | ||
248 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
249 | # CONFIG_INET6_TUNNEL is not set | ||
250 | # CONFIG_NETWORK_SECMARK is not set | ||
251 | # CONFIG_NETFILTER is not set | ||
252 | |||
253 | # | ||
254 | # DCCP Configuration (EXPERIMENTAL) | ||
255 | # | ||
256 | # CONFIG_IP_DCCP is not set | ||
257 | |||
258 | # | ||
259 | # SCTP Configuration (EXPERIMENTAL) | ||
260 | # | ||
261 | # CONFIG_IP_SCTP is not set | ||
262 | |||
263 | # | ||
264 | # TIPC Configuration (EXPERIMENTAL) | ||
265 | # | ||
266 | # CONFIG_TIPC is not set | ||
267 | # CONFIG_ATM is not set | ||
268 | # CONFIG_BRIDGE is not set | ||
269 | # CONFIG_VLAN_8021Q is not set | ||
270 | # CONFIG_DECNET is not set | ||
271 | # CONFIG_LLC2 is not set | ||
272 | # CONFIG_IPX is not set | ||
273 | # CONFIG_ATALK is not set | ||
274 | # CONFIG_X25 is not set | ||
275 | # CONFIG_LAPB is not set | ||
276 | # CONFIG_ECONET is not set | ||
277 | # CONFIG_WAN_ROUTER is not set | ||
278 | |||
279 | # | ||
280 | # QoS and/or fair queueing | ||
281 | # | ||
282 | # CONFIG_NET_SCHED is not set | ||
283 | |||
284 | # | ||
285 | # Network testing | ||
286 | # | ||
287 | # CONFIG_NET_PKTGEN is not set | ||
288 | # CONFIG_HAMRADIO is not set | ||
289 | # CONFIG_IRDA is not set | ||
290 | # CONFIG_BT is not set | ||
291 | # CONFIG_IEEE80211 is not set | ||
292 | |||
293 | # | ||
294 | # Device Drivers | ||
295 | # | ||
296 | |||
297 | # | ||
298 | # Generic Driver Options | ||
299 | # | ||
300 | CONFIG_STANDALONE=y | ||
301 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
302 | # CONFIG_FW_LOADER is not set | ||
303 | # CONFIG_DEBUG_DRIVER is not set | ||
304 | # CONFIG_SYS_HYPERVISOR is not set | ||
305 | |||
306 | # | ||
307 | # Connector - unified userspace <-> kernelspace linker | ||
308 | # | ||
309 | # CONFIG_CONNECTOR is not set | ||
310 | |||
311 | # | ||
312 | # Memory Technology Devices (MTD) | ||
313 | # | ||
314 | # CONFIG_MTD is not set | ||
315 | |||
316 | # | ||
317 | # Parallel port support | ||
318 | # | ||
319 | # CONFIG_PARPORT is not set | ||
320 | |||
321 | # | ||
322 | # Plug and Play support | ||
323 | # | ||
324 | |||
325 | # | ||
326 | # Block devices | ||
327 | # | ||
328 | # CONFIG_BLK_DEV_FD is not set | ||
329 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
330 | CONFIG_BLK_DEV_LOOP=y | ||
331 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
332 | # CONFIG_BLK_DEV_NBD is not set | ||
333 | CONFIG_BLK_DEV_RAM=y | ||
334 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
335 | CONFIG_BLK_DEV_RAM_SIZE=32768 | ||
336 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
337 | CONFIG_BLK_DEV_INITRD=y | ||
338 | # CONFIG_CDROM_PKTCDVD is not set | ||
339 | # CONFIG_ATA_OVER_ETH is not set | ||
340 | |||
341 | # | ||
342 | # Misc devices | ||
343 | # | ||
344 | # CONFIG_TIFM_CORE is not set | ||
345 | |||
346 | # | ||
347 | # ATA/ATAPI/MFM/RLL support | ||
348 | # | ||
349 | # CONFIG_IDE is not set | ||
350 | |||
351 | # | ||
352 | # SCSI device support | ||
353 | # | ||
354 | # CONFIG_RAID_ATTRS is not set | ||
355 | CONFIG_SCSI=y | ||
356 | # CONFIG_SCSI_TGT is not set | ||
357 | # CONFIG_SCSI_NETLINK is not set | ||
358 | CONFIG_SCSI_PROC_FS=y | ||
359 | |||
360 | # | ||
361 | # SCSI support type (disk, tape, CD-ROM) | ||
362 | # | ||
363 | # CONFIG_BLK_DEV_SD is not set | ||
364 | # CONFIG_CHR_DEV_ST is not set | ||
365 | # CONFIG_CHR_DEV_OSST is not set | ||
366 | # CONFIG_BLK_DEV_SR is not set | ||
367 | # CONFIG_CHR_DEV_SG is not set | ||
368 | # CONFIG_CHR_DEV_SCH is not set | ||
369 | |||
370 | # | ||
371 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
372 | # | ||
373 | # CONFIG_SCSI_MULTI_LUN is not set | ||
374 | # CONFIG_SCSI_CONSTANTS is not set | ||
375 | # CONFIG_SCSI_LOGGING is not set | ||
376 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
377 | |||
378 | # | ||
379 | # SCSI Transports | ||
380 | # | ||
381 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
382 | # CONFIG_SCSI_FC_ATTRS is not set | ||
383 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
384 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
385 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
386 | |||
387 | # | ||
388 | # SCSI low-level drivers | ||
389 | # | ||
390 | # CONFIG_ISCSI_TCP is not set | ||
391 | # CONFIG_SCSI_DEBUG is not set | ||
392 | |||
393 | # | ||
394 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
395 | # | ||
396 | # CONFIG_ATA is not set | ||
397 | |||
398 | # | ||
399 | # Multi-device support (RAID and LVM) | ||
400 | # | ||
401 | # CONFIG_MD is not set | ||
402 | |||
403 | # | ||
404 | # Fusion MPT device support | ||
405 | # | ||
406 | # CONFIG_FUSION is not set | ||
407 | |||
408 | # | ||
409 | # IEEE 1394 (FireWire) support | ||
410 | # | ||
411 | |||
412 | # | ||
413 | # I2O device support | ||
414 | # | ||
415 | |||
416 | # | ||
417 | # Macintosh device drivers | ||
418 | # | ||
419 | # CONFIG_MAC_EMUMOUSEBTN is not set | ||
420 | # CONFIG_WINDFARM is not set | ||
421 | |||
422 | # | ||
423 | # Network device support | ||
424 | # | ||
425 | CONFIG_NETDEVICES=y | ||
426 | # CONFIG_DUMMY is not set | ||
427 | # CONFIG_BONDING is not set | ||
428 | # CONFIG_EQUALIZER is not set | ||
429 | # CONFIG_TUN is not set | ||
430 | |||
431 | # | ||
432 | # PHY device support | ||
433 | # | ||
434 | CONFIG_PHYLIB=y | ||
435 | |||
436 | # | ||
437 | # MII PHY device drivers | ||
438 | # | ||
439 | CONFIG_MARVELL_PHY=y | ||
440 | # CONFIG_DAVICOM_PHY is not set | ||
441 | # CONFIG_QSEMI_PHY is not set | ||
442 | # CONFIG_LXT_PHY is not set | ||
443 | # CONFIG_CICADA_PHY is not set | ||
444 | # CONFIG_VITESSE_PHY is not set | ||
445 | # CONFIG_SMSC_PHY is not set | ||
446 | # CONFIG_BROADCOM_PHY is not set | ||
447 | # CONFIG_FIXED_PHY is not set | ||
448 | |||
449 | # | ||
450 | # Ethernet (10 or 100Mbit) | ||
451 | # | ||
452 | CONFIG_NET_ETHERNET=y | ||
453 | CONFIG_MII=y | ||
454 | |||
455 | # | ||
456 | # Ethernet (1000 Mbit) | ||
457 | # | ||
458 | CONFIG_GIANFAR=y | ||
459 | CONFIG_GFAR_NAPI=y | ||
460 | |||
461 | # | ||
462 | # Ethernet (10000 Mbit) | ||
463 | # | ||
464 | |||
465 | # | ||
466 | # Token Ring devices | ||
467 | # | ||
468 | |||
469 | # | ||
470 | # Wireless LAN (non-hamradio) | ||
471 | # | ||
472 | # CONFIG_NET_RADIO is not set | ||
473 | |||
474 | # | ||
475 | # Wan interfaces | ||
476 | # | ||
477 | # CONFIG_WAN is not set | ||
478 | # CONFIG_PPP is not set | ||
479 | # CONFIG_SLIP is not set | ||
480 | # CONFIG_SHAPER is not set | ||
481 | # CONFIG_NETCONSOLE is not set | ||
482 | # CONFIG_NETPOLL is not set | ||
483 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
484 | |||
485 | # | ||
486 | # ISDN subsystem | ||
487 | # | ||
488 | # CONFIG_ISDN is not set | ||
489 | |||
490 | # | ||
491 | # Telephony Support | ||
492 | # | ||
493 | # CONFIG_PHONE is not set | ||
494 | |||
495 | # | ||
496 | # Input device support | ||
497 | # | ||
498 | CONFIG_INPUT=y | ||
499 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
500 | |||
501 | # | ||
502 | # Userland interfaces | ||
503 | # | ||
504 | # CONFIG_INPUT_MOUSEDEV is not set | ||
505 | # CONFIG_INPUT_JOYDEV is not set | ||
506 | # CONFIG_INPUT_TSDEV is not set | ||
507 | # CONFIG_INPUT_EVDEV is not set | ||
508 | # CONFIG_INPUT_EVBUG is not set | ||
509 | |||
510 | # | ||
511 | # Input Device Drivers | ||
512 | # | ||
513 | # CONFIG_INPUT_KEYBOARD is not set | ||
514 | # CONFIG_INPUT_MOUSE is not set | ||
515 | # CONFIG_INPUT_JOYSTICK is not set | ||
516 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
517 | # CONFIG_INPUT_MISC is not set | ||
518 | |||
519 | # | ||
520 | # Hardware I/O ports | ||
521 | # | ||
522 | # CONFIG_SERIO is not set | ||
523 | # CONFIG_GAMEPORT is not set | ||
524 | |||
525 | # | ||
526 | # Character devices | ||
527 | # | ||
528 | # CONFIG_VT is not set | ||
529 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
530 | |||
531 | # | ||
532 | # Serial drivers | ||
533 | # | ||
534 | CONFIG_SERIAL_8250=y | ||
535 | CONFIG_SERIAL_8250_CONSOLE=y | ||
536 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
537 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
538 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
539 | |||
540 | # | ||
541 | # Non-8250 serial port support | ||
542 | # | ||
543 | # CONFIG_SERIAL_UARTLITE is not set | ||
544 | CONFIG_SERIAL_CORE=y | ||
545 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
546 | CONFIG_UNIX98_PTYS=y | ||
547 | CONFIG_LEGACY_PTYS=y | ||
548 | CONFIG_LEGACY_PTY_COUNT=256 | ||
549 | |||
550 | # | ||
551 | # IPMI | ||
552 | # | ||
553 | # CONFIG_IPMI_HANDLER is not set | ||
554 | |||
555 | # | ||
556 | # Watchdog Cards | ||
557 | # | ||
558 | CONFIG_WATCHDOG=y | ||
559 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
560 | |||
561 | # | ||
562 | # Watchdog Device Drivers | ||
563 | # | ||
564 | # CONFIG_SOFT_WATCHDOG is not set | ||
565 | # CONFIG_BOOKE_WDT is not set | ||
566 | CONFIG_HW_RANDOM=y | ||
567 | # CONFIG_NVRAM is not set | ||
568 | CONFIG_GEN_RTC=y | ||
569 | # CONFIG_GEN_RTC_X is not set | ||
570 | # CONFIG_DTLK is not set | ||
571 | # CONFIG_R3964 is not set | ||
572 | # CONFIG_RAW_DRIVER is not set | ||
573 | |||
574 | # | ||
575 | # TPM devices | ||
576 | # | ||
577 | # CONFIG_TCG_TPM is not set | ||
578 | |||
579 | # | ||
580 | # I2C support | ||
581 | # | ||
582 | CONFIG_I2C=y | ||
583 | CONFIG_I2C_CHARDEV=y | ||
584 | |||
585 | # | ||
586 | # I2C Algorithms | ||
587 | # | ||
588 | # CONFIG_I2C_ALGOBIT is not set | ||
589 | # CONFIG_I2C_ALGOPCF is not set | ||
590 | # CONFIG_I2C_ALGOPCA is not set | ||
591 | |||
592 | # | ||
593 | # I2C Hardware Bus support | ||
594 | # | ||
595 | CONFIG_I2C_MPC=y | ||
596 | # CONFIG_I2C_OCORES is not set | ||
597 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
598 | # CONFIG_I2C_STUB is not set | ||
599 | # CONFIG_I2C_PCA_ISA is not set | ||
600 | |||
601 | # | ||
602 | # Miscellaneous I2C Chip support | ||
603 | # | ||
604 | # CONFIG_SENSORS_DS1337 is not set | ||
605 | # CONFIG_SENSORS_DS1374 is not set | ||
606 | # CONFIG_SENSORS_EEPROM is not set | ||
607 | # CONFIG_SENSORS_PCF8574 is not set | ||
608 | # CONFIG_SENSORS_PCA9539 is not set | ||
609 | # CONFIG_SENSORS_PCF8591 is not set | ||
610 | # CONFIG_SENSORS_M41T00 is not set | ||
611 | # CONFIG_SENSORS_MAX6875 is not set | ||
612 | # CONFIG_I2C_DEBUG_CORE is not set | ||
613 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
614 | # CONFIG_I2C_DEBUG_BUS is not set | ||
615 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
616 | |||
617 | # | ||
618 | # SPI support | ||
619 | # | ||
620 | # CONFIG_SPI is not set | ||
621 | # CONFIG_SPI_MASTER is not set | ||
622 | |||
623 | # | ||
624 | # Dallas's 1-wire bus | ||
625 | # | ||
626 | # CONFIG_W1 is not set | ||
627 | |||
628 | # | ||
629 | # Hardware Monitoring support | ||
630 | # | ||
631 | CONFIG_HWMON=y | ||
632 | # CONFIG_HWMON_VID is not set | ||
633 | # CONFIG_SENSORS_ABITUGURU is not set | ||
634 | # CONFIG_SENSORS_ADM1021 is not set | ||
635 | # CONFIG_SENSORS_ADM1025 is not set | ||
636 | # CONFIG_SENSORS_ADM1026 is not set | ||
637 | # CONFIG_SENSORS_ADM1031 is not set | ||
638 | # CONFIG_SENSORS_ADM9240 is not set | ||
639 | # CONFIG_SENSORS_ASB100 is not set | ||
640 | # CONFIG_SENSORS_ATXP1 is not set | ||
641 | # CONFIG_SENSORS_DS1621 is not set | ||
642 | # CONFIG_SENSORS_F71805F is not set | ||
643 | # CONFIG_SENSORS_FSCHER is not set | ||
644 | # CONFIG_SENSORS_FSCPOS is not set | ||
645 | # CONFIG_SENSORS_GL518SM is not set | ||
646 | # CONFIG_SENSORS_GL520SM is not set | ||
647 | # CONFIG_SENSORS_IT87 is not set | ||
648 | # CONFIG_SENSORS_LM63 is not set | ||
649 | # CONFIG_SENSORS_LM75 is not set | ||
650 | # CONFIG_SENSORS_LM77 is not set | ||
651 | # CONFIG_SENSORS_LM78 is not set | ||
652 | # CONFIG_SENSORS_LM80 is not set | ||
653 | # CONFIG_SENSORS_LM83 is not set | ||
654 | # CONFIG_SENSORS_LM85 is not set | ||
655 | # CONFIG_SENSORS_LM87 is not set | ||
656 | # CONFIG_SENSORS_LM90 is not set | ||
657 | # CONFIG_SENSORS_LM92 is not set | ||
658 | # CONFIG_SENSORS_MAX1619 is not set | ||
659 | # CONFIG_SENSORS_PC87360 is not set | ||
660 | # CONFIG_SENSORS_PC87427 is not set | ||
661 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
662 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
663 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
664 | # CONFIG_SENSORS_VT1211 is not set | ||
665 | # CONFIG_SENSORS_W83781D is not set | ||
666 | # CONFIG_SENSORS_W83791D is not set | ||
667 | # CONFIG_SENSORS_W83792D is not set | ||
668 | # CONFIG_SENSORS_W83793 is not set | ||
669 | # CONFIG_SENSORS_W83L785TS is not set | ||
670 | # CONFIG_SENSORS_W83627HF is not set | ||
671 | # CONFIG_SENSORS_W83627EHF is not set | ||
672 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
673 | |||
674 | # | ||
675 | # Multimedia devices | ||
676 | # | ||
677 | # CONFIG_VIDEO_DEV is not set | ||
678 | |||
679 | # | ||
680 | # Digital Video Broadcasting Devices | ||
681 | # | ||
682 | # CONFIG_DVB is not set | ||
683 | |||
684 | # | ||
685 | # Graphics support | ||
686 | # | ||
687 | CONFIG_FIRMWARE_EDID=y | ||
688 | # CONFIG_FB is not set | ||
689 | # CONFIG_FB_IBM_GXT4500 is not set | ||
690 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
691 | |||
692 | # | ||
693 | # Sound | ||
694 | # | ||
695 | # CONFIG_SOUND is not set | ||
696 | |||
697 | # | ||
698 | # HID Devices | ||
699 | # | ||
700 | CONFIG_HID=y | ||
701 | |||
702 | # | ||
703 | # USB support | ||
704 | # | ||
705 | # CONFIG_USB_ARCH_HAS_HCD is not set | ||
706 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
707 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
708 | |||
709 | # | ||
710 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
711 | # | ||
712 | |||
713 | # | ||
714 | # USB Gadget Support | ||
715 | # | ||
716 | # CONFIG_USB_GADGET is not set | ||
717 | |||
718 | # | ||
719 | # MMC/SD Card support | ||
720 | # | ||
721 | # CONFIG_MMC is not set | ||
722 | |||
723 | # | ||
724 | # LED devices | ||
725 | # | ||
726 | # CONFIG_NEW_LEDS is not set | ||
727 | |||
728 | # | ||
729 | # LED drivers | ||
730 | # | ||
731 | |||
732 | # | ||
733 | # LED Triggers | ||
734 | # | ||
735 | |||
736 | # | ||
737 | # InfiniBand support | ||
738 | # | ||
739 | |||
740 | # | ||
741 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
742 | # | ||
743 | |||
744 | # | ||
745 | # Real Time Clock | ||
746 | # | ||
747 | # CONFIG_RTC_CLASS is not set | ||
748 | |||
749 | # | ||
750 | # DMA Engine support | ||
751 | # | ||
752 | # CONFIG_DMA_ENGINE is not set | ||
753 | |||
754 | # | ||
755 | # DMA Clients | ||
756 | # | ||
757 | |||
758 | # | ||
759 | # DMA Devices | ||
760 | # | ||
761 | |||
762 | # | ||
763 | # Virtualization | ||
764 | # | ||
765 | |||
766 | # | ||
767 | # File systems | ||
768 | # | ||
769 | CONFIG_EXT2_FS=y | ||
770 | # CONFIG_EXT2_FS_XATTR is not set | ||
771 | # CONFIG_EXT2_FS_XIP is not set | ||
772 | CONFIG_EXT3_FS=y | ||
773 | CONFIG_EXT3_FS_XATTR=y | ||
774 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
775 | # CONFIG_EXT3_FS_SECURITY is not set | ||
776 | # CONFIG_EXT4DEV_FS is not set | ||
777 | CONFIG_JBD=y | ||
778 | # CONFIG_JBD_DEBUG is not set | ||
779 | CONFIG_FS_MBCACHE=y | ||
780 | # CONFIG_REISERFS_FS is not set | ||
781 | # CONFIG_JFS_FS is not set | ||
782 | # CONFIG_FS_POSIX_ACL is not set | ||
783 | # CONFIG_XFS_FS is not set | ||
784 | # CONFIG_GFS2_FS is not set | ||
785 | # CONFIG_OCFS2_FS is not set | ||
786 | # CONFIG_MINIX_FS is not set | ||
787 | # CONFIG_ROMFS_FS is not set | ||
788 | CONFIG_INOTIFY=y | ||
789 | CONFIG_INOTIFY_USER=y | ||
790 | # CONFIG_QUOTA is not set | ||
791 | CONFIG_DNOTIFY=y | ||
792 | # CONFIG_AUTOFS_FS is not set | ||
793 | # CONFIG_AUTOFS4_FS is not set | ||
794 | # CONFIG_FUSE_FS is not set | ||
795 | |||
796 | # | ||
797 | # CD-ROM/DVD Filesystems | ||
798 | # | ||
799 | # CONFIG_ISO9660_FS is not set | ||
800 | # CONFIG_UDF_FS is not set | ||
801 | |||
802 | # | ||
803 | # DOS/FAT/NT Filesystems | ||
804 | # | ||
805 | # CONFIG_MSDOS_FS is not set | ||
806 | # CONFIG_VFAT_FS is not set | ||
807 | # CONFIG_NTFS_FS is not set | ||
808 | |||
809 | # | ||
810 | # Pseudo filesystems | ||
811 | # | ||
812 | CONFIG_PROC_FS=y | ||
813 | CONFIG_PROC_KCORE=y | ||
814 | CONFIG_PROC_SYSCTL=y | ||
815 | CONFIG_SYSFS=y | ||
816 | CONFIG_TMPFS=y | ||
817 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
818 | # CONFIG_HUGETLB_PAGE is not set | ||
819 | CONFIG_RAMFS=y | ||
820 | # CONFIG_CONFIGFS_FS is not set | ||
821 | |||
822 | # | ||
823 | # Miscellaneous filesystems | ||
824 | # | ||
825 | # CONFIG_ADFS_FS is not set | ||
826 | # CONFIG_AFFS_FS is not set | ||
827 | # CONFIG_HFS_FS is not set | ||
828 | # CONFIG_HFSPLUS_FS is not set | ||
829 | # CONFIG_BEFS_FS is not set | ||
830 | # CONFIG_BFS_FS is not set | ||
831 | # CONFIG_EFS_FS is not set | ||
832 | # CONFIG_CRAMFS is not set | ||
833 | # CONFIG_VXFS_FS is not set | ||
834 | # CONFIG_HPFS_FS is not set | ||
835 | # CONFIG_QNX4FS_FS is not set | ||
836 | # CONFIG_SYSV_FS is not set | ||
837 | # CONFIG_UFS_FS is not set | ||
838 | |||
839 | # | ||
840 | # Network File Systems | ||
841 | # | ||
842 | CONFIG_NFS_FS=y | ||
843 | CONFIG_NFS_V3=y | ||
844 | # CONFIG_NFS_V3_ACL is not set | ||
845 | CONFIG_NFS_V4=y | ||
846 | # CONFIG_NFS_DIRECTIO is not set | ||
847 | # CONFIG_NFSD is not set | ||
848 | CONFIG_ROOT_NFS=y | ||
849 | CONFIG_LOCKD=y | ||
850 | CONFIG_LOCKD_V4=y | ||
851 | CONFIG_NFS_COMMON=y | ||
852 | CONFIG_SUNRPC=y | ||
853 | CONFIG_SUNRPC_GSS=y | ||
854 | CONFIG_RPCSEC_GSS_KRB5=y | ||
855 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
856 | # CONFIG_SMB_FS is not set | ||
857 | # CONFIG_CIFS is not set | ||
858 | # CONFIG_NCP_FS is not set | ||
859 | # CONFIG_CODA_FS is not set | ||
860 | # CONFIG_AFS_FS is not set | ||
861 | # CONFIG_9P_FS is not set | ||
862 | |||
863 | # | ||
864 | # Partition Types | ||
865 | # | ||
866 | CONFIG_PARTITION_ADVANCED=y | ||
867 | # CONFIG_ACORN_PARTITION is not set | ||
868 | # CONFIG_OSF_PARTITION is not set | ||
869 | # CONFIG_AMIGA_PARTITION is not set | ||
870 | # CONFIG_ATARI_PARTITION is not set | ||
871 | # CONFIG_MAC_PARTITION is not set | ||
872 | # CONFIG_MSDOS_PARTITION is not set | ||
873 | # CONFIG_LDM_PARTITION is not set | ||
874 | # CONFIG_SGI_PARTITION is not set | ||
875 | # CONFIG_ULTRIX_PARTITION is not set | ||
876 | # CONFIG_SUN_PARTITION is not set | ||
877 | # CONFIG_KARMA_PARTITION is not set | ||
878 | # CONFIG_EFI_PARTITION is not set | ||
879 | |||
880 | # | ||
881 | # Native Language Support | ||
882 | # | ||
883 | # CONFIG_NLS is not set | ||
884 | |||
885 | # | ||
886 | # Distributed Lock Manager | ||
887 | # | ||
888 | # CONFIG_DLM is not set | ||
889 | |||
890 | # | ||
891 | # Library routines | ||
892 | # | ||
893 | CONFIG_BITREVERSE=y | ||
894 | # CONFIG_CRC_CCITT is not set | ||
895 | # CONFIG_CRC16 is not set | ||
896 | CONFIG_CRC32=y | ||
897 | # CONFIG_LIBCRC32C is not set | ||
898 | CONFIG_PLIST=y | ||
899 | CONFIG_IOMAP_COPY=y | ||
900 | |||
901 | # | ||
902 | # Instrumentation Support | ||
903 | # | ||
904 | CONFIG_PROFILING=y | ||
905 | CONFIG_OPROFILE=y | ||
906 | |||
907 | # | ||
908 | # Kernel hacking | ||
909 | # | ||
910 | # CONFIG_PRINTK_TIME is not set | ||
911 | CONFIG_ENABLE_MUST_CHECK=y | ||
912 | # CONFIG_MAGIC_SYSRQ is not set | ||
913 | # CONFIG_UNUSED_SYMBOLS is not set | ||
914 | # CONFIG_DEBUG_FS is not set | ||
915 | # CONFIG_HEADERS_CHECK is not set | ||
916 | CONFIG_DEBUG_KERNEL=y | ||
917 | CONFIG_LOG_BUF_SHIFT=14 | ||
918 | CONFIG_DETECT_SOFTLOCKUP=y | ||
919 | # CONFIG_SCHEDSTATS is not set | ||
920 | # CONFIG_DEBUG_SLAB is not set | ||
921 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
922 | # CONFIG_RT_MUTEX_TESTER is not set | ||
923 | # CONFIG_DEBUG_SPINLOCK is not set | ||
924 | # CONFIG_DEBUG_MUTEXES is not set | ||
925 | # CONFIG_DEBUG_RWSEMS is not set | ||
926 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
927 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
928 | # CONFIG_DEBUG_KOBJECT is not set | ||
929 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
930 | # CONFIG_DEBUG_INFO is not set | ||
931 | # CONFIG_DEBUG_VM is not set | ||
932 | # CONFIG_DEBUG_LIST is not set | ||
933 | CONFIG_FORCED_INLINING=y | ||
934 | # CONFIG_RCU_TORTURE_TEST is not set | ||
935 | CONFIG_DEBUGGER=y | ||
936 | # CONFIG_XMON is not set | ||
937 | # CONFIG_BDI_SWITCH is not set | ||
938 | CONFIG_BOOTX_TEXT=y | ||
939 | CONFIG_PPC_EARLY_DEBUG=y | ||
940 | # CONFIG_PPC_EARLY_DEBUG_LPAR is not set | ||
941 | # CONFIG_PPC_EARLY_DEBUG_G5 is not set | ||
942 | # CONFIG_PPC_EARLY_DEBUG_RTAS_PANEL is not set | ||
943 | # CONFIG_PPC_EARLY_DEBUG_RTAS_CONSOLE is not set | ||
944 | # CONFIG_PPC_EARLY_DEBUG_MAPLE is not set | ||
945 | # CONFIG_PPC_EARLY_DEBUG_ISERIES is not set | ||
946 | |||
947 | # | ||
948 | # Security options | ||
949 | # | ||
950 | # CONFIG_KEYS is not set | ||
951 | # CONFIG_SECURITY is not set | ||
952 | |||
953 | # | ||
954 | # Cryptographic options | ||
955 | # | ||
956 | CONFIG_CRYPTO=y | ||
957 | CONFIG_CRYPTO_ALGAPI=y | ||
958 | CONFIG_CRYPTO_BLKCIPHER=y | ||
959 | CONFIG_CRYPTO_MANAGER=y | ||
960 | # CONFIG_CRYPTO_HMAC is not set | ||
961 | # CONFIG_CRYPTO_XCBC is not set | ||
962 | # CONFIG_CRYPTO_NULL is not set | ||
963 | # CONFIG_CRYPTO_MD4 is not set | ||
964 | CONFIG_CRYPTO_MD5=y | ||
965 | # CONFIG_CRYPTO_SHA1 is not set | ||
966 | # CONFIG_CRYPTO_SHA256 is not set | ||
967 | # CONFIG_CRYPTO_SHA512 is not set | ||
968 | # CONFIG_CRYPTO_WP512 is not set | ||
969 | # CONFIG_CRYPTO_TGR192 is not set | ||
970 | # CONFIG_CRYPTO_GF128MUL is not set | ||
971 | CONFIG_CRYPTO_ECB=m | ||
972 | CONFIG_CRYPTO_CBC=y | ||
973 | # CONFIG_CRYPTO_LRW is not set | ||
974 | CONFIG_CRYPTO_DES=y | ||
975 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
976 | # CONFIG_CRYPTO_TWOFISH is not set | ||
977 | # CONFIG_CRYPTO_SERPENT is not set | ||
978 | # CONFIG_CRYPTO_AES is not set | ||
979 | # CONFIG_CRYPTO_CAST5 is not set | ||
980 | # CONFIG_CRYPTO_CAST6 is not set | ||
981 | # CONFIG_CRYPTO_TEA is not set | ||
982 | # CONFIG_CRYPTO_ARC4 is not set | ||
983 | # CONFIG_CRYPTO_KHAZAD is not set | ||
984 | # CONFIG_CRYPTO_ANUBIS is not set | ||
985 | # CONFIG_CRYPTO_DEFLATE is not set | ||
986 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
987 | # CONFIG_CRYPTO_CRC32C is not set | ||
988 | # CONFIG_CRYPTO_TEST is not set | ||
989 | |||
990 | # | ||
991 | # Hardware crypto devices | ||
992 | # | ||
diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 93f21aaf7c8e..3678997339d6 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <asm/io.h> | 18 | #include <asm/io.h> |
19 | #include <asm/lmb.h> | 19 | #include <asm/lmb.h> |
20 | #include <asm/processor.h> | 20 | #include <asm/processor.h> |
21 | #include <asm/udbg.h> | ||
21 | 22 | ||
22 | #define NO_SCROLL | 23 | #define NO_SCROLL |
23 | 24 | ||
@@ -912,3 +913,11 @@ static unsigned char vga_font[cmapsz] = { | |||
912 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 913 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
913 | 0x00, 0x00, 0x00, 0x00, | 914 | 0x00, 0x00, 0x00, 0x00, |
914 | }; | 915 | }; |
916 | |||
917 | void __init udbg_init_btext(void) | ||
918 | { | ||
919 | /* If btext is enabled, we might have a BAT setup for early display, | ||
920 | * thus we do enable some very basic udbg output | ||
921 | */ | ||
922 | udbg_putc = btext_drawchar; | ||
923 | } | ||
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index dd17dffbf058..7ec4ac77c0fa 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -44,7 +44,7 @@ extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); | |||
44 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); | 44 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
45 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); | 45 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); |
46 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); | 46 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); |
47 | extern void __restore_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); | 47 | extern void __restore_cpu_pa6t(void); |
48 | extern void __restore_cpu_ppc970(void); | 48 | extern void __restore_cpu_ppc970(void); |
49 | #endif /* CONFIG_PPC64 */ | 49 | #endif /* CONFIG_PPC64 */ |
50 | 50 | ||
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index accb39d49911..a15d4b8cce48 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
@@ -32,8 +32,6 @@ | |||
32 | #include <asm/page.h> | 32 | #include <asm/page.h> |
33 | #include <asm/mmu.h> | 33 | #include <asm/mmu.h> |
34 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
35 | #include <asm/ibm4xx.h> | ||
36 | #include <asm/ibm44x.h> | ||
37 | #include <asm/cputable.h> | 35 | #include <asm/cputable.h> |
38 | #include <asm/thread_info.h> | 36 | #include <asm/thread_info.h> |
39 | #include <asm/ppc_asm.h> | 37 | #include <asm/ppc_asm.h> |
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index 66877bdfe0b7..1f155d399d57 100644 --- a/arch/powerpc/kernel/head_fsl_booke.S +++ b/arch/powerpc/kernel/head_fsl_booke.S | |||
@@ -206,7 +206,8 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
206 | rlwimi r7,r3,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r3) */ | 206 | rlwimi r7,r3,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r3) */ |
207 | mtspr SPRN_MAS0,r7 | 207 | mtspr SPRN_MAS0,r7 |
208 | tlbre | 208 | tlbre |
209 | li r6,0 | 209 | mfspr r6,SPRN_MAS1 |
210 | rlwinm r6,r6,0,2,0 /* clear IPROT */ | ||
210 | mtspr SPRN_MAS1,r6 | 211 | mtspr SPRN_MAS1,r6 |
211 | tlbwe | 212 | tlbwe |
212 | /* Invalidate TLB1 */ | 213 | /* Invalidate TLB1 */ |
@@ -248,6 +249,8 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
248 | rlwimi r7,r5,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r5) */ | 249 | rlwimi r7,r5,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r5) */ |
249 | mtspr SPRN_MAS0,r7 | 250 | mtspr SPRN_MAS0,r7 |
250 | tlbre | 251 | tlbre |
252 | mfspr r8,SPRN_MAS1 | ||
253 | rlwinm r8,r8,0,2,0 /* clear IPROT */ | ||
251 | mtspr SPRN_MAS1,r8 | 254 | mtspr SPRN_MAS1,r8 |
252 | tlbwe | 255 | tlbwe |
253 | /* Invalidate TLB1 */ | 256 | /* Invalidate TLB1 */ |
@@ -889,7 +892,6 @@ load_up_spe: | |||
889 | REST_GPR(9, r11) | 892 | REST_GPR(9, r11) |
890 | REST_GPR(12, r11) | 893 | REST_GPR(12, r11) |
891 | lwz r11,GPR11(r11) | 894 | lwz r11,GPR11(r11) |
892 | SYNC | ||
893 | rfi | 895 | rfi |
894 | 896 | ||
895 | /* | 897 | /* |
@@ -953,7 +955,6 @@ _GLOBAL(giveup_altivec) | |||
953 | _GLOBAL(giveup_spe) | 955 | _GLOBAL(giveup_spe) |
954 | mfmsr r5 | 956 | mfmsr r5 |
955 | oris r5,r5,MSR_SPE@h | 957 | oris r5,r5,MSR_SPE@h |
956 | SYNC | ||
957 | mtmsr r5 /* enable use of SPE now */ | 958 | mtmsr r5 /* enable use of SPE now */ |
958 | isync | 959 | isync |
959 | cmpi 0,r3,0 | 960 | cmpi 0,r3,0 |
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index 89f46f377922..325f490a10cc 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c | |||
@@ -124,6 +124,10 @@ static int __init add_legacy_soc_port(struct device_node *np, | |||
124 | if (get_property(np, "clock-frequency", NULL) == NULL) | 124 | if (get_property(np, "clock-frequency", NULL) == NULL) |
125 | return -1; | 125 | return -1; |
126 | 126 | ||
127 | /* if rtas uses this device, don't try to use it as well */ | ||
128 | if (get_property(np, "used-by-rtas", NULL) != NULL) | ||
129 | return -1; | ||
130 | |||
127 | /* Get the address */ | 131 | /* Get the address */ |
128 | addrp = of_get_address(soc_dev, 0, NULL, NULL); | 132 | addrp = of_get_address(soc_dev, 0, NULL, NULL); |
129 | if (addrp == NULL) | 133 | if (addrp == NULL) |
@@ -334,6 +338,17 @@ void __init find_legacy_serial_ports(void) | |||
334 | of_node_put(tsi); | 338 | of_node_put(tsi); |
335 | } | 339 | } |
336 | 340 | ||
341 | /* First fill our array with opb bus ports */ | ||
342 | for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16750")) != NULL;) { | ||
343 | struct device_node *opb = of_get_parent(np); | ||
344 | if (opb && !strcmp(opb->type, "opb")) { | ||
345 | index = add_legacy_soc_port(np, np); | ||
346 | if (index >= 0 && np == stdout) | ||
347 | legacy_serial_console = index; | ||
348 | } | ||
349 | of_node_put(opb); | ||
350 | } | ||
351 | |||
337 | #ifdef CONFIG_PCI | 352 | #ifdef CONFIG_PCI |
338 | /* Next, try to locate PCI ports */ | 353 | /* Next, try to locate PCI ports */ |
339 | for (np = NULL; (np = of_find_all_nodes(np));) { | 354 | for (np = NULL; (np = of_find_all_nodes(np));) { |
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 520ef42f642e..4fb5938ce6d3 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -2117,11 +2117,92 @@ static void __init fixup_device_tree_pmac(void) | |||
2117 | #define fixup_device_tree_pmac() | 2117 | #define fixup_device_tree_pmac() |
2118 | #endif | 2118 | #endif |
2119 | 2119 | ||
2120 | #ifdef CONFIG_PPC_EFIKA | ||
2121 | /* The current fw of the Efika has a device tree needs quite a few | ||
2122 | * fixups to be compliant with the mpc52xx bindings. It's currently | ||
2123 | * unknown if it will ever be compliant (come on bPlan ...) so we do fixups. | ||
2124 | * NOTE that we (barely) tolerate it because the EFIKA was out before | ||
2125 | * the bindings were finished, for any new boards -> RTFM ! */ | ||
2126 | |||
2127 | struct subst_entry { | ||
2128 | char *path; | ||
2129 | char *property; | ||
2130 | void *value; | ||
2131 | int value_len; | ||
2132 | }; | ||
2133 | |||
2134 | static void __init fixup_device_tree_efika(void) | ||
2135 | { | ||
2136 | /* Substitution table */ | ||
2137 | #define prop_cstr(x) x, sizeof(x) | ||
2138 | int prop_sound_irq[3] = { 2, 2, 0 }; | ||
2139 | int prop_bcomm_irq[3*16] = { 3,0,0, 3,1,0, 3,2,0, 3,3,0, | ||
2140 | 3,4,0, 3,5,0, 3,6,0, 3,7,0, | ||
2141 | 3,8,0, 3,9,0, 3,10,0, 3,11,0, | ||
2142 | 3,12,0, 3,13,0, 3,14,0, 3,15,0 }; | ||
2143 | struct subst_entry efika_subst_table[] = { | ||
2144 | { "/", "device_type", prop_cstr("efika") }, | ||
2145 | { "/builtin", "compatible", prop_cstr("soc") }, | ||
2146 | { "/builtin/ata", "compatible", prop_cstr("mpc5200b-ata\0mpc5200-ata"), }, | ||
2147 | { "/builtin/bestcomm", "compatible", prop_cstr("mpc5200b-bestcomm\0mpc5200-bestcomm") }, | ||
2148 | { "/builtin/bestcomm", "interrupts", prop_bcomm_irq, sizeof(prop_bcomm_irq) }, | ||
2149 | { "/builtin/ethernet", "compatible", prop_cstr("mpc5200b-fec\0mpc5200-fec") }, | ||
2150 | { "/builtin/pic", "compatible", prop_cstr("mpc5200b-pic\0mpc5200-pic") }, | ||
2151 | { "/builtin/serial", "compatible", prop_cstr("mpc5200b-psc-uart\0mpc5200-psc-uart") }, | ||
2152 | { "/builtin/sound", "compatible", prop_cstr("mpc5200b-psc-ac97\0mpc5200-psc-ac97") }, | ||
2153 | { "/builtin/sound", "interrupts", prop_sound_irq, sizeof(prop_sound_irq) }, | ||
2154 | { "/builtin/sram", "compatible", prop_cstr("mpc5200b-sram\0mpc5200-sram") }, | ||
2155 | { "/builtin/sram", "device_type", prop_cstr("sram") }, | ||
2156 | {} | ||
2157 | }; | ||
2158 | #undef prop_cstr | ||
2159 | |||
2160 | /* Vars */ | ||
2161 | u32 node; | ||
2162 | char prop[64]; | ||
2163 | int rv, i; | ||
2164 | |||
2165 | /* Check if we're really running on a EFIKA */ | ||
2166 | node = call_prom("finddevice", 1, 1, ADDR("/")); | ||
2167 | if (!PHANDLE_VALID(node)) | ||
2168 | return; | ||
2169 | |||
2170 | rv = prom_getprop(node, "model", prop, sizeof(prop)); | ||
2171 | if (rv == PROM_ERROR) | ||
2172 | return; | ||
2173 | if (strcmp(prop, "EFIKA5K2")) | ||
2174 | return; | ||
2175 | |||
2176 | prom_printf("Applying EFIKA device tree fixups\n"); | ||
2177 | |||
2178 | /* Process substitution table */ | ||
2179 | for (i=0; efika_subst_table[i].path; i++) { | ||
2180 | struct subst_entry *se = &efika_subst_table[i]; | ||
2181 | |||
2182 | node = call_prom("finddevice", 1, 1, ADDR(se->path)); | ||
2183 | if (!PHANDLE_VALID(node)) { | ||
2184 | prom_printf("fixup_device_tree_efika: ", | ||
2185 | "skipped entry %x - not found\n", i); | ||
2186 | continue; | ||
2187 | } | ||
2188 | |||
2189 | rv = prom_setprop(node, se->path, se->property, | ||
2190 | se->value, se->value_len ); | ||
2191 | if (rv == PROM_ERROR) | ||
2192 | prom_printf("fixup_device_tree_efika: ", | ||
2193 | "skipped entry %x - setprop error\n", i); | ||
2194 | } | ||
2195 | } | ||
2196 | #else | ||
2197 | #define fixup_device_tree_efika() | ||
2198 | #endif | ||
2199 | |||
2120 | static void __init fixup_device_tree(void) | 2200 | static void __init fixup_device_tree(void) |
2121 | { | 2201 | { |
2122 | fixup_device_tree_maple(); | 2202 | fixup_device_tree_maple(); |
2123 | fixup_device_tree_chrp(); | 2203 | fixup_device_tree_chrp(); |
2124 | fixup_device_tree_pmac(); | 2204 | fixup_device_tree_pmac(); |
2205 | fixup_device_tree_efika(); | ||
2125 | } | 2206 | } |
2126 | 2207 | ||
2127 | static void __init prom_find_boot_cpu(void) | 2208 | static void __init prom_find_boot_cpu(void) |
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 6a19fa40dcee..44a6a3c47feb 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -116,12 +116,8 @@ unsigned long __init early_init(unsigned long dt_ptr) | |||
116 | */ | 116 | */ |
117 | void __init machine_init(unsigned long dt_ptr, unsigned long phys) | 117 | void __init machine_init(unsigned long dt_ptr, unsigned long phys) |
118 | { | 118 | { |
119 | /* If btext is enabled, we might have a BAT setup for early display, | 119 | /* Enable early debugging if any specified (see udbg.h) */ |
120 | * thus we do enable some very basic udbg output | 120 | udbg_early_init(); |
121 | */ | ||
122 | #ifdef CONFIG_BOOTX_TEXT | ||
123 | udbg_putc = btext_drawchar; | ||
124 | #endif | ||
125 | 121 | ||
126 | /* Do some early initialization based on the flat device tree */ | 122 | /* Do some early initialization based on the flat device tree */ |
127 | early_init_devtree(__va(dt_ptr)); | 123 | early_init_devtree(__va(dt_ptr)); |
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 0e8beca460af..924d692bc8f9 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c | |||
@@ -78,29 +78,6 @@ int smt_enabled_at_boot = 1; | |||
78 | 78 | ||
79 | static void (*crash_ipi_function_ptr)(struct pt_regs *) = NULL; | 79 | static void (*crash_ipi_function_ptr)(struct pt_regs *) = NULL; |
80 | 80 | ||
81 | #ifdef CONFIG_MPIC | ||
82 | int __init smp_mpic_probe(void) | ||
83 | { | ||
84 | int nr_cpus; | ||
85 | |||
86 | DBG("smp_mpic_probe()...\n"); | ||
87 | |||
88 | nr_cpus = cpus_weight(cpu_possible_map); | ||
89 | |||
90 | DBG("nr_cpus: %d\n", nr_cpus); | ||
91 | |||
92 | if (nr_cpus > 1) | ||
93 | mpic_request_ipis(); | ||
94 | |||
95 | return nr_cpus; | ||
96 | } | ||
97 | |||
98 | void __devinit smp_mpic_setup_cpu(int cpu) | ||
99 | { | ||
100 | mpic_setup_this_cpu(); | ||
101 | } | ||
102 | #endif /* CONFIG_MPIC */ | ||
103 | |||
104 | #ifdef CONFIG_PPC64 | 81 | #ifdef CONFIG_PPC64 |
105 | void __devinit smp_generic_kick_cpu(int nr) | 82 | void __devinit smp_generic_kick_cpu(int nr) |
106 | { | 83 | { |
diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index 194a93eeb3e7..7e0971868fc2 100644 --- a/arch/powerpc/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c | |||
@@ -49,6 +49,8 @@ void __init udbg_early_init(void) | |||
49 | udbg_init_debug_beat(); | 49 | udbg_init_debug_beat(); |
50 | #elif defined(CONFIG_PPC_EARLY_DEBUG_PAS_REALMODE) | 50 | #elif defined(CONFIG_PPC_EARLY_DEBUG_PAS_REALMODE) |
51 | udbg_init_pas_realmode(); | 51 | udbg_init_pas_realmode(); |
52 | #elif defined(CONFIG_BOOTX_TEXT) | ||
53 | udbg_init_btext(); | ||
52 | #endif | 54 | #endif |
53 | } | 55 | } |
54 | 56 | ||
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index 50149ec6efa4..e46c31b36641 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c | |||
@@ -49,24 +49,23 @@ | |||
49 | /* Max supported size for symbol names */ | 49 | /* Max supported size for symbol names */ |
50 | #define MAX_SYMNAME 64 | 50 | #define MAX_SYMNAME 64 |
51 | 51 | ||
52 | #define VDSO32_MAXPAGES (((0x3000 + PAGE_MASK) >> PAGE_SHIFT) + 2) | ||
53 | #define VDSO64_MAXPAGES (((0x3000 + PAGE_MASK) >> PAGE_SHIFT) + 2) | ||
54 | |||
55 | extern char vdso32_start, vdso32_end; | 52 | extern char vdso32_start, vdso32_end; |
56 | static void *vdso32_kbase = &vdso32_start; | 53 | static void *vdso32_kbase = &vdso32_start; |
57 | unsigned int vdso32_pages; | 54 | static unsigned int vdso32_pages; |
58 | static struct page *vdso32_pagelist[VDSO32_MAXPAGES]; | 55 | static struct page **vdso32_pagelist; |
59 | unsigned long vdso32_sigtramp; | 56 | unsigned long vdso32_sigtramp; |
60 | unsigned long vdso32_rt_sigtramp; | 57 | unsigned long vdso32_rt_sigtramp; |
61 | 58 | ||
62 | #ifdef CONFIG_PPC64 | 59 | #ifdef CONFIG_PPC64 |
63 | extern char vdso64_start, vdso64_end; | 60 | extern char vdso64_start, vdso64_end; |
64 | static void *vdso64_kbase = &vdso64_start; | 61 | static void *vdso64_kbase = &vdso64_start; |
65 | unsigned int vdso64_pages; | 62 | static unsigned int vdso64_pages; |
66 | static struct page *vdso64_pagelist[VDSO64_MAXPAGES]; | 63 | static struct page **vdso64_pagelist; |
67 | unsigned long vdso64_rt_sigtramp; | 64 | unsigned long vdso64_rt_sigtramp; |
68 | #endif /* CONFIG_PPC64 */ | 65 | #endif /* CONFIG_PPC64 */ |
69 | 66 | ||
67 | static int vdso_ready; | ||
68 | |||
70 | /* | 69 | /* |
71 | * The vdso data page (aka. systemcfg for old ppc64 fans) is here. | 70 | * The vdso data page (aka. systemcfg for old ppc64 fans) is here. |
72 | * Once the early boot kernel code no longer needs to muck around | 71 | * Once the early boot kernel code no longer needs to muck around |
@@ -182,6 +181,9 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, | |||
182 | unsigned long vdso_base; | 181 | unsigned long vdso_base; |
183 | int rc; | 182 | int rc; |
184 | 183 | ||
184 | if (!vdso_ready) | ||
185 | return 0; | ||
186 | |||
185 | #ifdef CONFIG_PPC64 | 187 | #ifdef CONFIG_PPC64 |
186 | if (test_thread_flag(TIF_32BIT)) { | 188 | if (test_thread_flag(TIF_32BIT)) { |
187 | vdso_pagelist = vdso32_pagelist; | 189 | vdso_pagelist = vdso32_pagelist; |
@@ -661,7 +663,7 @@ static void __init vdso_setup_syscall_map(void) | |||
661 | } | 663 | } |
662 | 664 | ||
663 | 665 | ||
664 | void __init vdso_init(void) | 666 | static int __init vdso_init(void) |
665 | { | 667 | { |
666 | int i; | 668 | int i; |
667 | 669 | ||
@@ -716,11 +718,13 @@ void __init vdso_init(void) | |||
716 | #ifdef CONFIG_PPC64 | 718 | #ifdef CONFIG_PPC64 |
717 | vdso64_pages = 0; | 719 | vdso64_pages = 0; |
718 | #endif | 720 | #endif |
719 | return; | 721 | return 0; |
720 | } | 722 | } |
721 | 723 | ||
722 | /* Make sure pages are in the correct state */ | 724 | /* Make sure pages are in the correct state */ |
723 | BUG_ON(vdso32_pages + 2 > VDSO32_MAXPAGES); | 725 | vdso32_pagelist = kzalloc(sizeof(struct page *) * (vdso32_pages + 2), |
726 | GFP_KERNEL); | ||
727 | BUG_ON(vdso32_pagelist == NULL); | ||
724 | for (i = 0; i < vdso32_pages; i++) { | 728 | for (i = 0; i < vdso32_pages; i++) { |
725 | struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); | 729 | struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); |
726 | ClearPageReserved(pg); | 730 | ClearPageReserved(pg); |
@@ -731,7 +735,9 @@ void __init vdso_init(void) | |||
731 | vdso32_pagelist[i] = NULL; | 735 | vdso32_pagelist[i] = NULL; |
732 | 736 | ||
733 | #ifdef CONFIG_PPC64 | 737 | #ifdef CONFIG_PPC64 |
734 | BUG_ON(vdso64_pages + 2 > VDSO64_MAXPAGES); | 738 | vdso64_pagelist = kzalloc(sizeof(struct page *) * (vdso64_pages + 2), |
739 | GFP_KERNEL); | ||
740 | BUG_ON(vdso64_pagelist == NULL); | ||
735 | for (i = 0; i < vdso64_pages; i++) { | 741 | for (i = 0; i < vdso64_pages; i++) { |
736 | struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); | 742 | struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); |
737 | ClearPageReserved(pg); | 743 | ClearPageReserved(pg); |
@@ -743,7 +749,13 @@ void __init vdso_init(void) | |||
743 | #endif /* CONFIG_PPC64 */ | 749 | #endif /* CONFIG_PPC64 */ |
744 | 750 | ||
745 | get_page(virt_to_page(vdso_data)); | 751 | get_page(virt_to_page(vdso_data)); |
752 | |||
753 | smp_wmb(); | ||
754 | vdso_ready = 1; | ||
755 | |||
756 | return 0; | ||
746 | } | 757 | } |
758 | arch_initcall(vdso_init); | ||
747 | 759 | ||
748 | int in_gate_area_no_task(unsigned long addr) | 760 | int in_gate_area_no_task(unsigned long addr) |
749 | { | 761 | { |
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 77b4637097e9..52f397c108a7 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -384,9 +384,6 @@ void __init mem_init(void) | |||
384 | initsize >> 10); | 384 | initsize >> 10); |
385 | 385 | ||
386 | mem_init_done = 1; | 386 | mem_init_done = 1; |
387 | |||
388 | /* Initialize the vDSO */ | ||
389 | vdso_init(); | ||
390 | } | 387 | } |
391 | 388 | ||
392 | /* | 389 | /* |
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index bd02272bcb0f..c284bdac9947 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -295,7 +295,7 @@ void __init mapin_ram(void) | |||
295 | } | 295 | } |
296 | 296 | ||
297 | /* is x a power of 4? */ | 297 | /* is x a power of 4? */ |
298 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)) | 298 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1) |
299 | 299 | ||
300 | /* | 300 | /* |
301 | * Set up a mapping for a block of I/O. | 301 | * Set up a mapping for a block of I/O. |
diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index 2eb15f388103..e08e1d7b3dc5 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c | |||
@@ -39,10 +39,17 @@ | |||
39 | #include "../platforms/cell/interrupt.h" | 39 | #include "../platforms/cell/interrupt.h" |
40 | 40 | ||
41 | #define PPU_CYCLES_EVENT_NUM 1 /* event number for CYCLES */ | 41 | #define PPU_CYCLES_EVENT_NUM 1 /* event number for CYCLES */ |
42 | #define PPU_CYCLES_GRP_NUM 1 /* special group number for identifying | ||
43 | * PPU_CYCLES event | ||
44 | */ | ||
42 | #define CBE_COUNT_ALL_CYCLES 0x42800000 /* PPU cycle event specifier */ | 45 | #define CBE_COUNT_ALL_CYCLES 0x42800000 /* PPU cycle event specifier */ |
43 | 46 | ||
44 | #define NUM_THREADS 2 | 47 | #define NUM_THREADS 2 /* number of physical threads in |
45 | #define VIRT_CNTR_SW_TIME_NS 100000000 // 0.5 seconds | 48 | * physical processor |
49 | */ | ||
50 | #define NUM_TRACE_BUS_WORDS 4 | ||
51 | #define NUM_INPUT_BUS_WORDS 2 | ||
52 | |||
46 | 53 | ||
47 | struct pmc_cntrl_data { | 54 | struct pmc_cntrl_data { |
48 | unsigned long vcntr; | 55 | unsigned long vcntr; |
@@ -58,7 +65,7 @@ struct pmc_cntrl_data { | |||
58 | struct pm_signal { | 65 | struct pm_signal { |
59 | u16 cpu; /* Processor to modify */ | 66 | u16 cpu; /* Processor to modify */ |
60 | u16 sub_unit; /* hw subunit this applies to (if applicable) */ | 67 | u16 sub_unit; /* hw subunit this applies to (if applicable) */ |
61 | u16 signal_group; /* Signal Group to Enable/Disable */ | 68 | short int signal_group; /* Signal Group to Enable/Disable */ |
62 | u8 bus_word; /* Enable/Disable on this Trace/Trigger/Event | 69 | u8 bus_word; /* Enable/Disable on this Trace/Trigger/Event |
63 | * Bus Word(s) (bitmask) | 70 | * Bus Word(s) (bitmask) |
64 | */ | 71 | */ |
@@ -93,7 +100,6 @@ static struct { | |||
93 | u32 pm07_cntrl[NR_PHYS_CTRS]; | 100 | u32 pm07_cntrl[NR_PHYS_CTRS]; |
94 | } pm_regs; | 101 | } pm_regs; |
95 | 102 | ||
96 | |||
97 | #define GET_SUB_UNIT(x) ((x & 0x0000f000) >> 12) | 103 | #define GET_SUB_UNIT(x) ((x & 0x0000f000) >> 12) |
98 | #define GET_BUS_WORD(x) ((x & 0x000000f0) >> 4) | 104 | #define GET_BUS_WORD(x) ((x & 0x000000f0) >> 4) |
99 | #define GET_BUS_TYPE(x) ((x & 0x00000300) >> 8) | 105 | #define GET_BUS_TYPE(x) ((x & 0x00000300) >> 8) |
@@ -101,7 +107,6 @@ static struct { | |||
101 | #define GET_COUNT_CYCLES(x) (x & 0x00000001) | 107 | #define GET_COUNT_CYCLES(x) (x & 0x00000001) |
102 | #define GET_INPUT_CONTROL(x) ((x & 0x00000004) >> 2) | 108 | #define GET_INPUT_CONTROL(x) ((x & 0x00000004) >> 2) |
103 | 109 | ||
104 | |||
105 | static DEFINE_PER_CPU(unsigned long[NR_PHYS_CTRS], pmc_values); | 110 | static DEFINE_PER_CPU(unsigned long[NR_PHYS_CTRS], pmc_values); |
106 | 111 | ||
107 | static struct pmc_cntrl_data pmc_cntrl[NUM_THREADS][NR_PHYS_CTRS]; | 112 | static struct pmc_cntrl_data pmc_cntrl[NUM_THREADS][NR_PHYS_CTRS]; |
@@ -129,8 +134,8 @@ static spinlock_t virt_cntr_lock = SPIN_LOCK_UNLOCKED; | |||
129 | 134 | ||
130 | static u32 ctr_enabled; | 135 | static u32 ctr_enabled; |
131 | 136 | ||
132 | static unsigned char trace_bus[4]; | 137 | static unsigned char trace_bus[NUM_TRACE_BUS_WORDS]; |
133 | static unsigned char input_bus[2]; | 138 | static unsigned char input_bus[NUM_INPUT_BUS_WORDS]; |
134 | 139 | ||
135 | /* | 140 | /* |
136 | * Firmware interface functions | 141 | * Firmware interface functions |
@@ -177,25 +182,40 @@ static void pm_rtas_reset_signals(u32 node) | |||
177 | static void pm_rtas_activate_signals(u32 node, u32 count) | 182 | static void pm_rtas_activate_signals(u32 node, u32 count) |
178 | { | 183 | { |
179 | int ret; | 184 | int ret; |
180 | int j; | 185 | int i, j; |
181 | struct pm_signal pm_signal_local[NR_PHYS_CTRS]; | 186 | struct pm_signal pm_signal_local[NR_PHYS_CTRS]; |
182 | 187 | ||
188 | /* There is no debug setup required for the cycles event. | ||
189 | * Note that only events in the same group can be used. | ||
190 | * Otherwise, there will be conflicts in correctly routing | ||
191 | * the signals on the debug bus. It is the responsiblity | ||
192 | * of the OProfile user tool to check the events are in | ||
193 | * the same group. | ||
194 | */ | ||
195 | i = 0; | ||
183 | for (j = 0; j < count; j++) { | 196 | for (j = 0; j < count; j++) { |
184 | /* fw expects physical cpu # */ | 197 | if (pm_signal[j].signal_group != PPU_CYCLES_GRP_NUM) { |
185 | pm_signal_local[j].cpu = node; | 198 | |
186 | pm_signal_local[j].signal_group = pm_signal[j].signal_group; | 199 | /* fw expects physical cpu # */ |
187 | pm_signal_local[j].bus_word = pm_signal[j].bus_word; | 200 | pm_signal_local[i].cpu = node; |
188 | pm_signal_local[j].sub_unit = pm_signal[j].sub_unit; | 201 | pm_signal_local[i].signal_group |
189 | pm_signal_local[j].bit = pm_signal[j].bit; | 202 | = pm_signal[j].signal_group; |
203 | pm_signal_local[i].bus_word = pm_signal[j].bus_word; | ||
204 | pm_signal_local[i].sub_unit = pm_signal[j].sub_unit; | ||
205 | pm_signal_local[i].bit = pm_signal[j].bit; | ||
206 | i++; | ||
207 | } | ||
190 | } | 208 | } |
191 | 209 | ||
192 | ret = rtas_ibm_cbe_perftools(SUBFUNC_ACTIVATE, PASSTHRU_ENABLE, | 210 | if (i != 0) { |
193 | pm_signal_local, | 211 | ret = rtas_ibm_cbe_perftools(SUBFUNC_ACTIVATE, PASSTHRU_ENABLE, |
194 | count * sizeof(struct pm_signal)); | 212 | pm_signal_local, |
213 | i * sizeof(struct pm_signal)); | ||
195 | 214 | ||
196 | if (ret) | 215 | if (ret) |
197 | printk(KERN_WARNING "%s: rtas returned: %d\n", | 216 | printk(KERN_WARNING "%s: rtas returned: %d\n", |
198 | __FUNCTION__, ret); | 217 | __FUNCTION__, ret); |
218 | } | ||
199 | } | 219 | } |
200 | 220 | ||
201 | /* | 221 | /* |
@@ -212,7 +232,7 @@ static void set_pm_event(u32 ctr, int event, u32 unit_mask) | |||
212 | /* Special Event: Count all cpu cycles */ | 232 | /* Special Event: Count all cpu cycles */ |
213 | pm_regs.pm07_cntrl[ctr] = CBE_COUNT_ALL_CYCLES; | 233 | pm_regs.pm07_cntrl[ctr] = CBE_COUNT_ALL_CYCLES; |
214 | p = &(pm_signal[ctr]); | 234 | p = &(pm_signal[ctr]); |
215 | p->signal_group = 21; | 235 | p->signal_group = PPU_CYCLES_GRP_NUM; |
216 | p->bus_word = 1; | 236 | p->bus_word = 1; |
217 | p->sub_unit = 0; | 237 | p->sub_unit = 0; |
218 | p->bit = 0; | 238 | p->bit = 0; |
@@ -232,13 +252,21 @@ static void set_pm_event(u32 ctr, int event, u32 unit_mask) | |||
232 | 252 | ||
233 | p->signal_group = event / 100; | 253 | p->signal_group = event / 100; |
234 | p->bus_word = bus_word; | 254 | p->bus_word = bus_word; |
235 | p->sub_unit = unit_mask & 0x0000f000; | 255 | p->sub_unit = (unit_mask & 0x0000f000) >> 12; |
236 | 256 | ||
237 | pm_regs.pm07_cntrl[ctr] = 0; | 257 | pm_regs.pm07_cntrl[ctr] = 0; |
238 | pm_regs.pm07_cntrl[ctr] |= PM07_CTR_COUNT_CYCLES(count_cycles); | 258 | pm_regs.pm07_cntrl[ctr] |= PM07_CTR_COUNT_CYCLES(count_cycles); |
239 | pm_regs.pm07_cntrl[ctr] |= PM07_CTR_POLARITY(polarity); | 259 | pm_regs.pm07_cntrl[ctr] |= PM07_CTR_POLARITY(polarity); |
240 | pm_regs.pm07_cntrl[ctr] |= PM07_CTR_INPUT_CONTROL(input_control); | 260 | pm_regs.pm07_cntrl[ctr] |= PM07_CTR_INPUT_CONTROL(input_control); |
241 | 261 | ||
262 | /* Some of the islands signal selection is based on 64 bit words. | ||
263 | * The debug bus words are 32 bits, the input words to the performance | ||
264 | * counters are defined as 32 bits. Need to convert the 64 bit island | ||
265 | * specification to the appropriate 32 input bit and bus word for the | ||
266 | * performance counter event selection. See the CELL Performance | ||
267 | * monitoring signals manual and the Perf cntr hardware descriptions | ||
268 | * for the details. | ||
269 | */ | ||
242 | if (input_control == 0) { | 270 | if (input_control == 0) { |
243 | if (signal_bit > 31) { | 271 | if (signal_bit > 31) { |
244 | signal_bit -= 32; | 272 | signal_bit -= 32; |
@@ -259,12 +287,12 @@ static void set_pm_event(u32 ctr, int event, u32 unit_mask) | |||
259 | p->bit = signal_bit; | 287 | p->bit = signal_bit; |
260 | } | 288 | } |
261 | 289 | ||
262 | for (i = 0; i < 4; i++) { | 290 | for (i = 0; i < NUM_TRACE_BUS_WORDS; i++) { |
263 | if (bus_word & (1 << i)) { | 291 | if (bus_word & (1 << i)) { |
264 | pm_regs.debug_bus_control |= | 292 | pm_regs.debug_bus_control |= |
265 | (bus_type << (31 - (2 * i) + 1)); | 293 | (bus_type << (31 - (2 * i) + 1)); |
266 | 294 | ||
267 | for (j = 0; j < 2; j++) { | 295 | for (j = 0; j < NUM_INPUT_BUS_WORDS; j++) { |
268 | if (input_bus[j] == 0xff) { | 296 | if (input_bus[j] == 0xff) { |
269 | input_bus[j] = i; | 297 | input_bus[j] = i; |
270 | pm_regs.group_control |= | 298 | pm_regs.group_control |= |
@@ -278,52 +306,58 @@ out: | |||
278 | ; | 306 | ; |
279 | } | 307 | } |
280 | 308 | ||
281 | static void write_pm_cntrl(int cpu, struct pm_cntrl *pm_cntrl) | 309 | static void write_pm_cntrl(int cpu) |
282 | { | 310 | { |
283 | /* Oprofile will use 32 bit counters, set bits 7:10 to 0 */ | 311 | /* Oprofile will use 32 bit counters, set bits 7:10 to 0 |
312 | * pmregs.pm_cntrl is a global | ||
313 | */ | ||
314 | |||
284 | u32 val = 0; | 315 | u32 val = 0; |
285 | if (pm_cntrl->enable == 1) | 316 | if (pm_regs.pm_cntrl.enable == 1) |
286 | val |= CBE_PM_ENABLE_PERF_MON; | 317 | val |= CBE_PM_ENABLE_PERF_MON; |
287 | 318 | ||
288 | if (pm_cntrl->stop_at_max == 1) | 319 | if (pm_regs.pm_cntrl.stop_at_max == 1) |
289 | val |= CBE_PM_STOP_AT_MAX; | 320 | val |= CBE_PM_STOP_AT_MAX; |
290 | 321 | ||
291 | if (pm_cntrl->trace_mode == 1) | 322 | if (pm_regs.pm_cntrl.trace_mode == 1) |
292 | val |= CBE_PM_TRACE_MODE_SET(pm_cntrl->trace_mode); | 323 | val |= CBE_PM_TRACE_MODE_SET(pm_regs.pm_cntrl.trace_mode); |
293 | 324 | ||
294 | if (pm_cntrl->freeze == 1) | 325 | if (pm_regs.pm_cntrl.freeze == 1) |
295 | val |= CBE_PM_FREEZE_ALL_CTRS; | 326 | val |= CBE_PM_FREEZE_ALL_CTRS; |
296 | 327 | ||
297 | /* Routine set_count_mode must be called previously to set | 328 | /* Routine set_count_mode must be called previously to set |
298 | * the count mode based on the user selection of user and kernel. | 329 | * the count mode based on the user selection of user and kernel. |
299 | */ | 330 | */ |
300 | val |= CBE_PM_COUNT_MODE_SET(pm_cntrl->count_mode); | 331 | val |= CBE_PM_COUNT_MODE_SET(pm_regs.pm_cntrl.count_mode); |
301 | cbe_write_pm(cpu, pm_control, val); | 332 | cbe_write_pm(cpu, pm_control, val); |
302 | } | 333 | } |
303 | 334 | ||
304 | static inline void | 335 | static inline void |
305 | set_count_mode(u32 kernel, u32 user, struct pm_cntrl *pm_cntrl) | 336 | set_count_mode(u32 kernel, u32 user) |
306 | { | 337 | { |
307 | /* The user must specify user and kernel if they want them. If | 338 | /* The user must specify user and kernel if they want them. If |
308 | * neither is specified, OProfile will count in hypervisor mode | 339 | * neither is specified, OProfile will count in hypervisor mode. |
340 | * pm_regs.pm_cntrl is a global | ||
309 | */ | 341 | */ |
310 | if (kernel) { | 342 | if (kernel) { |
311 | if (user) | 343 | if (user) |
312 | pm_cntrl->count_mode = CBE_COUNT_ALL_MODES; | 344 | pm_regs.pm_cntrl.count_mode = CBE_COUNT_ALL_MODES; |
313 | else | 345 | else |
314 | pm_cntrl->count_mode = CBE_COUNT_SUPERVISOR_MODE; | 346 | pm_regs.pm_cntrl.count_mode = |
347 | CBE_COUNT_SUPERVISOR_MODE; | ||
315 | } else { | 348 | } else { |
316 | if (user) | 349 | if (user) |
317 | pm_cntrl->count_mode = CBE_COUNT_PROBLEM_MODE; | 350 | pm_regs.pm_cntrl.count_mode = CBE_COUNT_PROBLEM_MODE; |
318 | else | 351 | else |
319 | pm_cntrl->count_mode = CBE_COUNT_HYPERVISOR_MODE; | 352 | pm_regs.pm_cntrl.count_mode = |
353 | CBE_COUNT_HYPERVISOR_MODE; | ||
320 | } | 354 | } |
321 | } | 355 | } |
322 | 356 | ||
323 | static inline void enable_ctr(u32 cpu, u32 ctr, u32 * pm07_cntrl) | 357 | static inline void enable_ctr(u32 cpu, u32 ctr, u32 * pm07_cntrl) |
324 | { | 358 | { |
325 | 359 | ||
326 | pm07_cntrl[ctr] |= PM07_CTR_ENABLE(1); | 360 | pm07_cntrl[ctr] |= CBE_PM_CTR_ENABLE; |
327 | cbe_write_pm07_control(cpu, ctr, pm07_cntrl[ctr]); | 361 | cbe_write_pm07_control(cpu, ctr, pm07_cntrl[ctr]); |
328 | } | 362 | } |
329 | 363 | ||
@@ -365,6 +399,14 @@ static void cell_virtual_cntr(unsigned long data) | |||
365 | hdw_thread = 1 ^ hdw_thread; | 399 | hdw_thread = 1 ^ hdw_thread; |
366 | next_hdw_thread = hdw_thread; | 400 | next_hdw_thread = hdw_thread; |
367 | 401 | ||
402 | for (i = 0; i < num_counters; i++) | ||
403 | /* There are some per thread events. Must do the | ||
404 | * set event, for the thread that is being started | ||
405 | */ | ||
406 | set_pm_event(i, | ||
407 | pmc_cntrl[next_hdw_thread][i].evnts, | ||
408 | pmc_cntrl[next_hdw_thread][i].masks); | ||
409 | |||
368 | /* The following is done only once per each node, but | 410 | /* The following is done only once per each node, but |
369 | * we need cpu #, not node #, to pass to the cbe_xxx functions. | 411 | * we need cpu #, not node #, to pass to the cbe_xxx functions. |
370 | */ | 412 | */ |
@@ -385,12 +427,13 @@ static void cell_virtual_cntr(unsigned long data) | |||
385 | == 0xFFFFFFFF) | 427 | == 0xFFFFFFFF) |
386 | /* If the cntr value is 0xffffffff, we must | 428 | /* If the cntr value is 0xffffffff, we must |
387 | * reset that to 0xfffffff0 when the current | 429 | * reset that to 0xfffffff0 when the current |
388 | * thread is restarted. This will generate a new | 430 | * thread is restarted. This will generate a |
389 | * interrupt and make sure that we never restore | 431 | * new interrupt and make sure that we never |
390 | * the counters to the max value. If the counters | 432 | * restore the counters to the max value. If |
391 | * were restored to the max value, they do not | 433 | * the counters were restored to the max value, |
392 | * increment and no interrupts are generated. Hence | 434 | * they do not increment and no interrupts are |
393 | * no more samples will be collected on that cpu. | 435 | * generated. Hence no more samples will be |
436 | * collected on that cpu. | ||
394 | */ | 437 | */ |
395 | cbe_write_ctr(cpu, i, 0xFFFFFFF0); | 438 | cbe_write_ctr(cpu, i, 0xFFFFFFF0); |
396 | else | 439 | else |
@@ -410,9 +453,6 @@ static void cell_virtual_cntr(unsigned long data) | |||
410 | * Must do the set event, enable_cntr | 453 | * Must do the set event, enable_cntr |
411 | * for each cpu. | 454 | * for each cpu. |
412 | */ | 455 | */ |
413 | set_pm_event(i, | ||
414 | pmc_cntrl[next_hdw_thread][i].evnts, | ||
415 | pmc_cntrl[next_hdw_thread][i].masks); | ||
416 | enable_ctr(cpu, i, | 456 | enable_ctr(cpu, i, |
417 | pm_regs.pm07_cntrl); | 457 | pm_regs.pm07_cntrl); |
418 | } else { | 458 | } else { |
@@ -465,8 +505,7 @@ cell_reg_setup(struct op_counter_config *ctr, | |||
465 | pm_regs.pm_cntrl.trace_mode = 0; | 505 | pm_regs.pm_cntrl.trace_mode = 0; |
466 | pm_regs.pm_cntrl.freeze = 1; | 506 | pm_regs.pm_cntrl.freeze = 1; |
467 | 507 | ||
468 | set_count_mode(sys->enable_kernel, sys->enable_user, | 508 | set_count_mode(sys->enable_kernel, sys->enable_user); |
469 | &pm_regs.pm_cntrl); | ||
470 | 509 | ||
471 | /* Setup the thread 0 events */ | 510 | /* Setup the thread 0 events */ |
472 | for (i = 0; i < num_ctrs; ++i) { | 511 | for (i = 0; i < num_ctrs; ++i) { |
@@ -498,10 +537,10 @@ cell_reg_setup(struct op_counter_config *ctr, | |||
498 | pmc_cntrl[1][i].vcntr = i; | 537 | pmc_cntrl[1][i].vcntr = i; |
499 | } | 538 | } |
500 | 539 | ||
501 | for (i = 0; i < 4; i++) | 540 | for (i = 0; i < NUM_TRACE_BUS_WORDS; i++) |
502 | trace_bus[i] = 0xff; | 541 | trace_bus[i] = 0xff; |
503 | 542 | ||
504 | for (i = 0; i < 2; i++) | 543 | for (i = 0; i < NUM_INPUT_BUS_WORDS; i++) |
505 | input_bus[i] = 0xff; | 544 | input_bus[i] = 0xff; |
506 | 545 | ||
507 | /* Our counters count up, and "count" refers to | 546 | /* Our counters count up, and "count" refers to |
@@ -560,7 +599,7 @@ static void cell_cpu_setup(struct op_counter_config *cntr) | |||
560 | cbe_write_pm(cpu, pm_start_stop, 0); | 599 | cbe_write_pm(cpu, pm_start_stop, 0); |
561 | cbe_write_pm(cpu, group_control, pm_regs.group_control); | 600 | cbe_write_pm(cpu, group_control, pm_regs.group_control); |
562 | cbe_write_pm(cpu, debug_bus_control, pm_regs.debug_bus_control); | 601 | cbe_write_pm(cpu, debug_bus_control, pm_regs.debug_bus_control); |
563 | write_pm_cntrl(cpu, &pm_regs.pm_cntrl); | 602 | write_pm_cntrl(cpu); |
564 | 603 | ||
565 | for (i = 0; i < num_counters; ++i) { | 604 | for (i = 0; i < num_counters; ++i) { |
566 | if (ctr_enabled & (1 << i)) { | 605 | if (ctr_enabled & (1 << i)) { |
@@ -602,7 +641,7 @@ static void cell_global_start(struct op_counter_config *ctr) | |||
602 | } | 641 | } |
603 | } | 642 | } |
604 | 643 | ||
605 | cbe_clear_pm_interrupts(cpu); | 644 | cbe_get_and_clear_pm_interrupts(cpu); |
606 | cbe_enable_pm_interrupts(cpu, hdw_thread, interrupt_mask); | 645 | cbe_enable_pm_interrupts(cpu, hdw_thread, interrupt_mask); |
607 | cbe_enable_pm(cpu); | 646 | cbe_enable_pm(cpu); |
608 | } | 647 | } |
@@ -672,7 +711,7 @@ cell_handle_interrupt(struct pt_regs *regs, struct op_counter_config *ctr) | |||
672 | 711 | ||
673 | cbe_disable_pm(cpu); | 712 | cbe_disable_pm(cpu); |
674 | 713 | ||
675 | interrupt_mask = cbe_clear_pm_interrupts(cpu); | 714 | interrupt_mask = cbe_get_and_clear_pm_interrupts(cpu); |
676 | 715 | ||
677 | /* If the interrupt mask has been cleared, then the virt cntr | 716 | /* If the interrupt mask has been cleared, then the virt cntr |
678 | * has cleared the interrupt. When the thread that generated | 717 | * has cleared the interrupt. When the thread that generated |
diff --git a/arch/powerpc/platforms/52xx/Makefile b/arch/powerpc/platforms/52xx/Makefile index 795b713ec9ee..07cdbcacf156 100644 --- a/arch/powerpc/platforms/52xx/Makefile +++ b/arch/powerpc/platforms/52xx/Makefile | |||
@@ -6,5 +6,5 @@ obj-y += mpc52xx_pic.o mpc52xx_common.o | |||
6 | obj-$(CONFIG_PCI) += mpc52xx_pci.o | 6 | obj-$(CONFIG_PCI) += mpc52xx_pci.o |
7 | endif | 7 | endif |
8 | 8 | ||
9 | obj-$(CONFIG_PPC_EFIKA) += efika-setup.o efika-pci.o | 9 | obj-$(CONFIG_PPC_EFIKA) += efika.o |
10 | obj-$(CONFIG_PPC_LITE5200) += lite5200.o | 10 | obj-$(CONFIG_PPC_LITE5200) += lite5200.o |
diff --git a/arch/powerpc/platforms/52xx/efika-pci.c b/arch/powerpc/platforms/52xx/efika-pci.c deleted file mode 100644 index 62e05b2a9227..000000000000 --- a/arch/powerpc/platforms/52xx/efika-pci.c +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | |||
2 | #include <linux/kernel.h> | ||
3 | #include <linux/pci.h> | ||
4 | #include <linux/string.h> | ||
5 | #include <linux/init.h> | ||
6 | |||
7 | #include <asm/io.h> | ||
8 | #include <asm/irq.h> | ||
9 | #include <asm/prom.h> | ||
10 | #include <asm/machdep.h> | ||
11 | #include <asm/sections.h> | ||
12 | #include <asm/pci-bridge.h> | ||
13 | #include <asm/rtas.h> | ||
14 | |||
15 | #include "efika.h" | ||
16 | |||
17 | #ifdef CONFIG_PCI | ||
18 | /* | ||
19 | * Access functions for PCI config space using RTAS calls. | ||
20 | */ | ||
21 | static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | ||
22 | int len, u32 * val) | ||
23 | { | ||
24 | struct pci_controller *hose = bus->sysdata; | ||
25 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
26 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
27 | | (hose->index << 24); | ||
28 | int ret = -1; | ||
29 | int rval; | ||
30 | |||
31 | rval = rtas_call(rtas_token("read-pci-config"), 2, 2, &ret, addr, len); | ||
32 | *val = ret; | ||
33 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
34 | } | ||
35 | |||
36 | static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, | ||
37 | int offset, int len, u32 val) | ||
38 | { | ||
39 | struct pci_controller *hose = bus->sysdata; | ||
40 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
41 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
42 | | (hose->index << 24); | ||
43 | int rval; | ||
44 | |||
45 | rval = rtas_call(rtas_token("write-pci-config"), 3, 1, NULL, | ||
46 | addr, len, val); | ||
47 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
48 | } | ||
49 | |||
50 | static struct pci_ops rtas_pci_ops = { | ||
51 | rtas_read_config, | ||
52 | rtas_write_config | ||
53 | }; | ||
54 | |||
55 | void __init efika_pcisetup(void) | ||
56 | { | ||
57 | const int *bus_range; | ||
58 | int len; | ||
59 | struct pci_controller *hose; | ||
60 | struct device_node *root; | ||
61 | struct device_node *pcictrl; | ||
62 | |||
63 | root = of_find_node_by_path("/"); | ||
64 | if (root == NULL) { | ||
65 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
66 | ": Unable to find the root node\n"); | ||
67 | return; | ||
68 | } | ||
69 | |||
70 | for (pcictrl = NULL;;) { | ||
71 | pcictrl = of_get_next_child(root, pcictrl); | ||
72 | if ((pcictrl == NULL) || (strcmp(pcictrl->name, "pci") == 0)) | ||
73 | break; | ||
74 | } | ||
75 | |||
76 | of_node_put(root); | ||
77 | |||
78 | if (pcictrl == NULL) { | ||
79 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
80 | ": Unable to find the PCI bridge node\n"); | ||
81 | return; | ||
82 | } | ||
83 | |||
84 | bus_range = get_property(pcictrl, "bus-range", &len); | ||
85 | if (bus_range == NULL || len < 2 * sizeof(int)) { | ||
86 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
87 | ": Can't get bus-range for %s\n", pcictrl->full_name); | ||
88 | return; | ||
89 | } | ||
90 | |||
91 | if (bus_range[1] == bus_range[0]) | ||
92 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI bus %d", | ||
93 | bus_range[0]); | ||
94 | else | ||
95 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI buses %d..%d", | ||
96 | bus_range[0], bus_range[1]); | ||
97 | printk(" controlled by %s\n", pcictrl->full_name); | ||
98 | printk("\n"); | ||
99 | |||
100 | hose = pcibios_alloc_controller(); | ||
101 | if (!hose) { | ||
102 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
103 | ": Can't allocate PCI controller structure for %s\n", | ||
104 | pcictrl->full_name); | ||
105 | return; | ||
106 | } | ||
107 | |||
108 | hose->arch_data = of_node_get(pcictrl); | ||
109 | hose->first_busno = bus_range[0]; | ||
110 | hose->last_busno = bus_range[1]; | ||
111 | hose->ops = &rtas_pci_ops; | ||
112 | |||
113 | pci_process_bridge_OF_ranges(hose, pcictrl, 0); | ||
114 | } | ||
115 | |||
116 | #else | ||
117 | void __init efika_pcisetup(void) | ||
118 | {} | ||
119 | #endif | ||
diff --git a/arch/powerpc/platforms/52xx/efika-setup.c b/arch/powerpc/platforms/52xx/efika-setup.c deleted file mode 100644 index 110c980ed1e0..000000000000 --- a/arch/powerpc/platforms/52xx/efika-setup.c +++ /dev/null | |||
@@ -1,150 +0,0 @@ | |||
1 | /* | ||
2 | * | ||
3 | * Efika 5K2 platform setup | ||
4 | * Some code really inspired from the lite5200b platform. | ||
5 | * | ||
6 | * Copyright (C) 2006 bplan GmbH | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public License | ||
9 | * version 2. This program is licensed "as is" without any warranty of any | ||
10 | * kind, whether express or implied. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/errno.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/slab.h> | ||
17 | #include <linux/reboot.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/utsrelease.h> | ||
20 | #include <linux/seq_file.h> | ||
21 | #include <linux/root_dev.h> | ||
22 | #include <linux/initrd.h> | ||
23 | #include <linux/timer.h> | ||
24 | #include <linux/pci.h> | ||
25 | |||
26 | #include <asm/pgtable.h> | ||
27 | #include <asm/prom.h> | ||
28 | #include <asm/time.h> | ||
29 | #include <asm/machdep.h> | ||
30 | #include <asm/rtas.h> | ||
31 | #include <asm/of_device.h> | ||
32 | #include <asm/of_platform.h> | ||
33 | #include <asm/mpc52xx.h> | ||
34 | |||
35 | #include "efika.h" | ||
36 | |||
37 | static void efika_show_cpuinfo(struct seq_file *m) | ||
38 | { | ||
39 | struct device_node *root; | ||
40 | const char *revision = NULL; | ||
41 | const char *codegendescription = NULL; | ||
42 | const char *codegenvendor = NULL; | ||
43 | |||
44 | root = of_find_node_by_path("/"); | ||
45 | if (root) { | ||
46 | revision = get_property(root, "revision", NULL); | ||
47 | codegendescription = | ||
48 | get_property(root, "CODEGEN,description", NULL); | ||
49 | codegenvendor = get_property(root, "CODEGEN,vendor", NULL); | ||
50 | |||
51 | of_node_put(root); | ||
52 | } | ||
53 | |||
54 | if (codegendescription) | ||
55 | seq_printf(m, "machine\t\t: %s\n", codegendescription); | ||
56 | else | ||
57 | seq_printf(m, "machine\t\t: Efika\n"); | ||
58 | |||
59 | if (revision) | ||
60 | seq_printf(m, "revision\t: %s\n", revision); | ||
61 | |||
62 | if (codegenvendor) | ||
63 | seq_printf(m, "vendor\t\t: %s\n", codegenvendor); | ||
64 | |||
65 | of_node_put(root); | ||
66 | } | ||
67 | |||
68 | static void __init efika_setup_arch(void) | ||
69 | { | ||
70 | rtas_initialize(); | ||
71 | |||
72 | #ifdef CONFIG_BLK_DEV_INITRD | ||
73 | initrd_below_start_ok = 1; | ||
74 | |||
75 | if (initrd_start) | ||
76 | ROOT_DEV = Root_RAM0; | ||
77 | else | ||
78 | #endif | ||
79 | ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel) */ | ||
80 | |||
81 | efika_pcisetup(); | ||
82 | |||
83 | if (ppc_md.progress) | ||
84 | ppc_md.progress("Linux/PPC " UTS_RELEASE " runnung on Efika ;-)\n", 0x0); | ||
85 | } | ||
86 | |||
87 | static void __init efika_init(void) | ||
88 | { | ||
89 | struct device_node *np; | ||
90 | struct device_node *cnp = NULL; | ||
91 | const u32 *base; | ||
92 | |||
93 | /* Find every child of the SOC node and add it to of_platform */ | ||
94 | np = of_find_node_by_name(NULL, "builtin"); | ||
95 | if (np) { | ||
96 | char name[BUS_ID_SIZE]; | ||
97 | while ((cnp = of_get_next_child(np, cnp))) { | ||
98 | strcpy(name, cnp->name); | ||
99 | |||
100 | base = get_property(cnp, "reg", NULL); | ||
101 | if (base == NULL) | ||
102 | continue; | ||
103 | |||
104 | snprintf(name+strlen(name), BUS_ID_SIZE, "@%x", *base); | ||
105 | of_platform_device_create(cnp, name, NULL); | ||
106 | |||
107 | printk(KERN_INFO EFIKA_PLATFORM_NAME" : Added %s (type '%s' at '%s') to the known devices\n", name, cnp->type, cnp->full_name); | ||
108 | } | ||
109 | } | ||
110 | |||
111 | if (ppc_md.progress) | ||
112 | ppc_md.progress(" Have fun with your Efika! ", 0x7777); | ||
113 | } | ||
114 | |||
115 | static int __init efika_probe(void) | ||
116 | { | ||
117 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
118 | "model", NULL); | ||
119 | |||
120 | if (model == NULL) | ||
121 | return 0; | ||
122 | if (strcmp(model, "EFIKA5K2")) | ||
123 | return 0; | ||
124 | |||
125 | ISA_DMA_THRESHOLD = ~0L; | ||
126 | DMA_MODE_READ = 0x44; | ||
127 | DMA_MODE_WRITE = 0x48; | ||
128 | |||
129 | return 1; | ||
130 | } | ||
131 | |||
132 | define_machine(efika) | ||
133 | { | ||
134 | .name = EFIKA_PLATFORM_NAME, | ||
135 | .probe = efika_probe, | ||
136 | .setup_arch = efika_setup_arch, | ||
137 | .init = efika_init, | ||
138 | .show_cpuinfo = efika_show_cpuinfo, | ||
139 | .init_IRQ = mpc52xx_init_irq, | ||
140 | .get_irq = mpc52xx_get_irq, | ||
141 | .restart = rtas_restart, | ||
142 | .power_off = rtas_power_off, | ||
143 | .halt = rtas_halt, | ||
144 | .set_rtc_time = rtas_set_rtc_time, | ||
145 | .get_rtc_time = rtas_get_rtc_time, | ||
146 | .progress = rtas_progress, | ||
147 | .get_boot_time = rtas_get_boot_time, | ||
148 | .calibrate_decr = generic_calibrate_decr, | ||
149 | .phys_mem_access_prot = pci_phys_mem_access_prot, | ||
150 | }; | ||
diff --git a/arch/powerpc/platforms/52xx/efika.c b/arch/powerpc/platforms/52xx/efika.c new file mode 100644 index 000000000000..8de034116681 --- /dev/null +++ b/arch/powerpc/platforms/52xx/efika.c | |||
@@ -0,0 +1,243 @@ | |||
1 | /* | ||
2 | * Efika 5K2 platform code | ||
3 | * Some code really inspired from the lite5200b platform. | ||
4 | * | ||
5 | * Copyright (C) 2006 bplan GmbH | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public License | ||
8 | * version 2. This program is licensed "as is" without any warranty of any | ||
9 | * kind, whether express or implied. | ||
10 | */ | ||
11 | |||
12 | #include <linux/errno.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/slab.h> | ||
15 | #include <linux/reboot.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/utsrelease.h> | ||
18 | #include <linux/seq_file.h> | ||
19 | #include <linux/string.h> | ||
20 | #include <linux/root_dev.h> | ||
21 | #include <linux/initrd.h> | ||
22 | #include <linux/timer.h> | ||
23 | #include <linux/pci.h> | ||
24 | |||
25 | #include <asm/io.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/sections.h> | ||
28 | #include <asm/pci-bridge.h> | ||
29 | #include <asm/pgtable.h> | ||
30 | #include <asm/prom.h> | ||
31 | #include <asm/time.h> | ||
32 | #include <asm/machdep.h> | ||
33 | #include <asm/rtas.h> | ||
34 | #include <asm/of_device.h> | ||
35 | #include <asm/of_platform.h> | ||
36 | #include <asm/mpc52xx.h> | ||
37 | |||
38 | |||
39 | #define EFIKA_PLATFORM_NAME "Efika" | ||
40 | |||
41 | |||
42 | /* ------------------------------------------------------------------------ */ | ||
43 | /* PCI accesses thru RTAS */ | ||
44 | /* ------------------------------------------------------------------------ */ | ||
45 | |||
46 | #ifdef CONFIG_PCI | ||
47 | |||
48 | /* | ||
49 | * Access functions for PCI config space using RTAS calls. | ||
50 | */ | ||
51 | static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | ||
52 | int len, u32 * val) | ||
53 | { | ||
54 | struct pci_controller *hose = bus->sysdata; | ||
55 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
56 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
57 | | (hose->index << 24); | ||
58 | int ret = -1; | ||
59 | int rval; | ||
60 | |||
61 | rval = rtas_call(rtas_token("read-pci-config"), 2, 2, &ret, addr, len); | ||
62 | *val = ret; | ||
63 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
64 | } | ||
65 | |||
66 | static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, | ||
67 | int offset, int len, u32 val) | ||
68 | { | ||
69 | struct pci_controller *hose = bus->sysdata; | ||
70 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
71 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
72 | | (hose->index << 24); | ||
73 | int rval; | ||
74 | |||
75 | rval = rtas_call(rtas_token("write-pci-config"), 3, 1, NULL, | ||
76 | addr, len, val); | ||
77 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
78 | } | ||
79 | |||
80 | static struct pci_ops rtas_pci_ops = { | ||
81 | rtas_read_config, | ||
82 | rtas_write_config | ||
83 | }; | ||
84 | |||
85 | |||
86 | void __init efika_pcisetup(void) | ||
87 | { | ||
88 | const int *bus_range; | ||
89 | int len; | ||
90 | struct pci_controller *hose; | ||
91 | struct device_node *root; | ||
92 | struct device_node *pcictrl; | ||
93 | |||
94 | root = of_find_node_by_path("/"); | ||
95 | if (root == NULL) { | ||
96 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
97 | ": Unable to find the root node\n"); | ||
98 | return; | ||
99 | } | ||
100 | |||
101 | for (pcictrl = NULL;;) { | ||
102 | pcictrl = of_get_next_child(root, pcictrl); | ||
103 | if ((pcictrl == NULL) || (strcmp(pcictrl->name, "pci") == 0)) | ||
104 | break; | ||
105 | } | ||
106 | |||
107 | of_node_put(root); | ||
108 | |||
109 | if (pcictrl == NULL) { | ||
110 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
111 | ": Unable to find the PCI bridge node\n"); | ||
112 | return; | ||
113 | } | ||
114 | |||
115 | bus_range = get_property(pcictrl, "bus-range", &len); | ||
116 | if (bus_range == NULL || len < 2 * sizeof(int)) { | ||
117 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
118 | ": Can't get bus-range for %s\n", pcictrl->full_name); | ||
119 | return; | ||
120 | } | ||
121 | |||
122 | if (bus_range[1] == bus_range[0]) | ||
123 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI bus %d", | ||
124 | bus_range[0]); | ||
125 | else | ||
126 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI buses %d..%d", | ||
127 | bus_range[0], bus_range[1]); | ||
128 | printk(" controlled by %s\n", pcictrl->full_name); | ||
129 | printk("\n"); | ||
130 | |||
131 | hose = pcibios_alloc_controller(); | ||
132 | if (!hose) { | ||
133 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
134 | ": Can't allocate PCI controller structure for %s\n", | ||
135 | pcictrl->full_name); | ||
136 | return; | ||
137 | } | ||
138 | |||
139 | hose->arch_data = of_node_get(pcictrl); | ||
140 | hose->first_busno = bus_range[0]; | ||
141 | hose->last_busno = bus_range[1]; | ||
142 | hose->ops = &rtas_pci_ops; | ||
143 | |||
144 | pci_process_bridge_OF_ranges(hose, pcictrl, 0); | ||
145 | } | ||
146 | |||
147 | #else | ||
148 | void __init efika_pcisetup(void) | ||
149 | {} | ||
150 | #endif | ||
151 | |||
152 | |||
153 | |||
154 | /* ------------------------------------------------------------------------ */ | ||
155 | /* Platform setup */ | ||
156 | /* ------------------------------------------------------------------------ */ | ||
157 | |||
158 | static void efika_show_cpuinfo(struct seq_file *m) | ||
159 | { | ||
160 | struct device_node *root; | ||
161 | const char *revision = NULL; | ||
162 | const char *codegendescription = NULL; | ||
163 | const char *codegenvendor = NULL; | ||
164 | |||
165 | root = of_find_node_by_path("/"); | ||
166 | if (!root) | ||
167 | return; | ||
168 | |||
169 | revision = get_property(root, "revision", NULL); | ||
170 | codegendescription = | ||
171 | get_property(root, "CODEGEN,description", NULL); | ||
172 | codegenvendor = get_property(root, "CODEGEN,vendor", NULL); | ||
173 | |||
174 | if (codegendescription) | ||
175 | seq_printf(m, "machine\t\t: %s\n", codegendescription); | ||
176 | else | ||
177 | seq_printf(m, "machine\t\t: Efika\n"); | ||
178 | |||
179 | if (revision) | ||
180 | seq_printf(m, "revision\t: %s\n", revision); | ||
181 | |||
182 | if (codegenvendor) | ||
183 | seq_printf(m, "vendor\t\t: %s\n", codegenvendor); | ||
184 | |||
185 | of_node_put(root); | ||
186 | } | ||
187 | |||
188 | static void __init efika_setup_arch(void) | ||
189 | { | ||
190 | rtas_initialize(); | ||
191 | |||
192 | #ifdef CONFIG_BLK_DEV_INITRD | ||
193 | initrd_below_start_ok = 1; | ||
194 | |||
195 | if (initrd_start) | ||
196 | ROOT_DEV = Root_RAM0; | ||
197 | else | ||
198 | #endif | ||
199 | ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel) */ | ||
200 | |||
201 | efika_pcisetup(); | ||
202 | |||
203 | if (ppc_md.progress) | ||
204 | ppc_md.progress("Linux/PPC " UTS_RELEASE " running on Efika ;-)\n", 0x0); | ||
205 | } | ||
206 | |||
207 | static int __init efika_probe(void) | ||
208 | { | ||
209 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
210 | "model", NULL); | ||
211 | |||
212 | if (model == NULL) | ||
213 | return 0; | ||
214 | if (strcmp(model, "EFIKA5K2")) | ||
215 | return 0; | ||
216 | |||
217 | ISA_DMA_THRESHOLD = ~0L; | ||
218 | DMA_MODE_READ = 0x44; | ||
219 | DMA_MODE_WRITE = 0x48; | ||
220 | |||
221 | return 1; | ||
222 | } | ||
223 | |||
224 | define_machine(efika) | ||
225 | { | ||
226 | .name = EFIKA_PLATFORM_NAME, | ||
227 | .probe = efika_probe, | ||
228 | .setup_arch = efika_setup_arch, | ||
229 | .init = mpc52xx_declare_of_platform_devices, | ||
230 | .show_cpuinfo = efika_show_cpuinfo, | ||
231 | .init_IRQ = mpc52xx_init_irq, | ||
232 | .get_irq = mpc52xx_get_irq, | ||
233 | .restart = rtas_restart, | ||
234 | .power_off = rtas_power_off, | ||
235 | .halt = rtas_halt, | ||
236 | .set_rtc_time = rtas_set_rtc_time, | ||
237 | .get_rtc_time = rtas_get_rtc_time, | ||
238 | .progress = rtas_progress, | ||
239 | .get_boot_time = rtas_get_boot_time, | ||
240 | .calibrate_decr = generic_calibrate_decr, | ||
241 | .phys_mem_access_prot = pci_phys_mem_access_prot, | ||
242 | }; | ||
243 | |||
diff --git a/arch/powerpc/platforms/52xx/efika.h b/arch/powerpc/platforms/52xx/efika.h deleted file mode 100644 index 2f060fd097d7..000000000000 --- a/arch/powerpc/platforms/52xx/efika.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * Efika 5K2 platform setup - Header file | ||
3 | * | ||
4 | * Copyright (C) 2006 bplan GmbH | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public License | ||
7 | * version 2. This program is licensed "as is" without any warranty of any | ||
8 | * kind, whether express or implied. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #ifndef __ARCH_POWERPC_EFIKA__ | ||
13 | #define __ARCH_POWERPC_EFIKA__ | ||
14 | |||
15 | #define EFIKA_PLATFORM_NAME "Efika" | ||
16 | |||
17 | extern void __init efika_pcisetup(void); | ||
18 | |||
19 | #endif | ||
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index cdb16bfa6ca6..cc3b40de21dd 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -51,13 +51,13 @@ | |||
51 | */ | 51 | */ |
52 | 52 | ||
53 | static void __init | 53 | static void __init |
54 | lite52xx_setup_cpu(void) | 54 | lite5200_setup_cpu(void) |
55 | { | 55 | { |
56 | struct mpc52xx_gpio __iomem *gpio; | 56 | struct mpc52xx_gpio __iomem *gpio; |
57 | u32 port_config; | 57 | u32 port_config; |
58 | 58 | ||
59 | /* Map zones */ | 59 | /* Map zones */ |
60 | gpio = mpc52xx_find_and_map("mpc52xx-gpio"); | 60 | gpio = mpc52xx_find_and_map("mpc5200-gpio"); |
61 | if (!gpio) { | 61 | if (!gpio) { |
62 | printk(KERN_ERR __FILE__ ": " | 62 | printk(KERN_ERR __FILE__ ": " |
63 | "Error while mapping GPIO register for port config. " | 63 | "Error while mapping GPIO register for port config. " |
@@ -85,12 +85,12 @@ error: | |||
85 | iounmap(gpio); | 85 | iounmap(gpio); |
86 | } | 86 | } |
87 | 87 | ||
88 | static void __init lite52xx_setup_arch(void) | 88 | static void __init lite5200_setup_arch(void) |
89 | { | 89 | { |
90 | struct device_node *np; | 90 | struct device_node *np; |
91 | 91 | ||
92 | if (ppc_md.progress) | 92 | if (ppc_md.progress) |
93 | ppc_md.progress("lite52xx_setup_arch()", 0); | 93 | ppc_md.progress("lite5200_setup_arch()", 0); |
94 | 94 | ||
95 | np = of_find_node_by_type(NULL, "cpu"); | 95 | np = of_find_node_by_type(NULL, "cpu"); |
96 | if (np) { | 96 | if (np) { |
@@ -105,7 +105,7 @@ static void __init lite52xx_setup_arch(void) | |||
105 | 105 | ||
106 | /* CPU & Port mux setup */ | 106 | /* CPU & Port mux setup */ |
107 | mpc52xx_setup_cpu(); /* Generic */ | 107 | mpc52xx_setup_cpu(); /* Generic */ |
108 | lite52xx_setup_cpu(); /* Platorm specific */ | 108 | lite5200_setup_cpu(); /* Platorm specific */ |
109 | 109 | ||
110 | #ifdef CONFIG_PCI | 110 | #ifdef CONFIG_PCI |
111 | np = of_find_node_by_type(np, "pci"); | 111 | np = of_find_node_by_type(np, "pci"); |
@@ -126,7 +126,7 @@ static void __init lite52xx_setup_arch(void) | |||
126 | 126 | ||
127 | } | 127 | } |
128 | 128 | ||
129 | void lite52xx_show_cpuinfo(struct seq_file *m) | 129 | void lite5200_show_cpuinfo(struct seq_file *m) |
130 | { | 130 | { |
131 | struct device_node* np = of_find_all_nodes(NULL); | 131 | struct device_node* np = of_find_all_nodes(NULL); |
132 | const char *model = NULL; | 132 | const char *model = NULL; |
@@ -143,25 +143,26 @@ void lite52xx_show_cpuinfo(struct seq_file *m) | |||
143 | /* | 143 | /* |
144 | * Called very early, MMU is off, device-tree isn't unflattened | 144 | * Called very early, MMU is off, device-tree isn't unflattened |
145 | */ | 145 | */ |
146 | static int __init lite52xx_probe(void) | 146 | static int __init lite5200_probe(void) |
147 | { | 147 | { |
148 | unsigned long node = of_get_flat_dt_root(); | 148 | unsigned long node = of_get_flat_dt_root(); |
149 | const char *model = of_get_flat_dt_prop(node, "model", NULL); | 149 | const char *model = of_get_flat_dt_prop(node, "model", NULL); |
150 | 150 | ||
151 | if (!of_flat_dt_is_compatible(node, "lite52xx")) | 151 | if (!of_flat_dt_is_compatible(node, "fsl,lite5200") && |
152 | !of_flat_dt_is_compatible(node, "fsl,lite5200b")) | ||
152 | return 0; | 153 | return 0; |
153 | pr_debug("%s board w/ mpc52xx found\n", model ? model : "unknown"); | 154 | pr_debug("%s board found\n", model ? model : "unknown"); |
154 | 155 | ||
155 | return 1; | 156 | return 1; |
156 | } | 157 | } |
157 | 158 | ||
158 | define_machine(lite52xx) { | 159 | define_machine(lite5200) { |
159 | .name = "lite52xx", | 160 | .name = "lite5200", |
160 | .probe = lite52xx_probe, | 161 | .probe = lite5200_probe, |
161 | .setup_arch = lite52xx_setup_arch, | 162 | .setup_arch = lite5200_setup_arch, |
162 | .init = mpc52xx_declare_of_platform_devices, | 163 | .init = mpc52xx_declare_of_platform_devices, |
163 | .init_IRQ = mpc52xx_init_irq, | 164 | .init_IRQ = mpc52xx_init_irq, |
164 | .get_irq = mpc52xx_get_irq, | 165 | .get_irq = mpc52xx_get_irq, |
165 | .show_cpuinfo = lite52xx_show_cpuinfo, | 166 | .show_cpuinfo = lite5200_show_cpuinfo, |
166 | .calibrate_decr = generic_calibrate_decr, | 167 | .calibrate_decr = generic_calibrate_decr, |
167 | }; | 168 | }; |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c index cc40889074bd..ed0cb694aea8 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_common.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c | |||
@@ -83,8 +83,8 @@ mpc52xx_setup_cpu(void) | |||
83 | struct mpc52xx_xlb __iomem *xlb; | 83 | struct mpc52xx_xlb __iomem *xlb; |
84 | 84 | ||
85 | /* Map zones */ | 85 | /* Map zones */ |
86 | cdm = mpc52xx_find_and_map("mpc52xx-cdm"); | 86 | cdm = mpc52xx_find_and_map("mpc5200-cdm"); |
87 | xlb = mpc52xx_find_and_map("mpc52xx-xlb"); | 87 | xlb = mpc52xx_find_and_map("mpc5200-xlb"); |
88 | 88 | ||
89 | if (!cdm || !xlb) { | 89 | if (!cdm || !xlb) { |
90 | printk(KERN_ERR __FILE__ ": " | 90 | printk(KERN_ERR __FILE__ ": " |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index cd91a6c3aafa..c75192567e55 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c | |||
@@ -383,16 +383,16 @@ void __init mpc52xx_init_irq(void) | |||
383 | struct device_node *picnode; | 383 | struct device_node *picnode; |
384 | 384 | ||
385 | /* Remap the necessary zones */ | 385 | /* Remap the necessary zones */ |
386 | picnode = of_find_compatible_node(NULL, NULL, "mpc52xx-pic"); | 386 | picnode = of_find_compatible_node(NULL, NULL, "mpc5200-pic"); |
387 | 387 | ||
388 | intr = mpc52xx_find_and_map("mpc52xx-pic"); | 388 | intr = mpc52xx_find_and_map("mpc5200-pic"); |
389 | if (!intr) | 389 | if (!intr) |
390 | panic(__FILE__ ": find_and_map failed on 'mpc52xx-pic'. " | 390 | panic(__FILE__ ": find_and_map failed on 'mpc5200-pic'. " |
391 | "Check node !"); | 391 | "Check node !"); |
392 | 392 | ||
393 | sdma = mpc52xx_find_and_map("mpc52xx-bestcomm"); | 393 | sdma = mpc52xx_find_and_map("mpc5200-bestcomm"); |
394 | if (!sdma) | 394 | if (!sdma) |
395 | panic(__FILE__ ": find_and_map failed on 'mpc52xx-bestcomm'. " | 395 | panic(__FILE__ ": find_and_map failed on 'mpc5200-bestcomm'. " |
396 | "Check node !"); | 396 | "Check node !"); |
397 | 397 | ||
398 | /* Disable all interrupt sources. */ | 398 | /* Disable all interrupt sources. */ |
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig index edcd5b875b66..1aea1e69ff31 100644 --- a/arch/powerpc/platforms/83xx/Kconfig +++ b/arch/powerpc/platforms/83xx/Kconfig | |||
@@ -3,7 +3,13 @@ menu "Platform support" | |||
3 | 3 | ||
4 | choice | 4 | choice |
5 | prompt "Machine Type" | 5 | prompt "Machine Type" |
6 | default MPC834x_SYS | 6 | default MPC834x_MDS |
7 | |||
8 | config MPC8313_RDB | ||
9 | bool "Freescale MPC8313 RDB" | ||
10 | select DEFAULT_UIMAGE | ||
11 | help | ||
12 | This option enables support for the MPC8313 RDB board. | ||
7 | 13 | ||
8 | config MPC832x_MDS | 14 | config MPC832x_MDS |
9 | bool "Freescale MPC832x MDS" | 15 | bool "Freescale MPC832x MDS" |
@@ -12,13 +18,13 @@ config MPC832x_MDS | |||
12 | help | 18 | help |
13 | This option enables support for the MPC832x MDS evaluation board. | 19 | This option enables support for the MPC832x MDS evaluation board. |
14 | 20 | ||
15 | config MPC834x_SYS | 21 | config MPC834x_MDS |
16 | bool "Freescale MPC834x SYS" | 22 | bool "Freescale MPC834x MDS" |
17 | select DEFAULT_UIMAGE | 23 | select DEFAULT_UIMAGE |
18 | help | 24 | help |
19 | This option enables support for the MPC 834x SYS evaluation board. | 25 | This option enables support for the MPC 834x MDS evaluation board. |
20 | 26 | ||
21 | Be aware that PCI buses can only function when SYS board is plugged | 27 | Be aware that PCI buses can only function when MDS board is plugged |
22 | into the PIB (Platform IO Board) board from Freescale which provide | 28 | into the PIB (Platform IO Board) board from Freescale which provide |
23 | 3 PCI slots. The PIBs PCI initialization is the bootloader's | 29 | 3 PCI slots. The PIBs PCI initialization is the bootloader's |
24 | responsibility. | 30 | responsibility. |
@@ -41,6 +47,12 @@ config MPC8360E_PB | |||
41 | 47 | ||
42 | endchoice | 48 | endchoice |
43 | 49 | ||
50 | config PPC_MPC831x | ||
51 | bool | ||
52 | select PPC_UDBG_16550 | ||
53 | select PPC_INDIRECT_PCI | ||
54 | default y if MPC8313_RDB | ||
55 | |||
44 | config PPC_MPC832x | 56 | config PPC_MPC832x |
45 | bool | 57 | bool |
46 | select PPC_UDBG_16550 | 58 | select PPC_UDBG_16550 |
@@ -51,7 +63,7 @@ config MPC834x | |||
51 | bool | 63 | bool |
52 | select PPC_UDBG_16550 | 64 | select PPC_UDBG_16550 |
53 | select PPC_INDIRECT_PCI | 65 | select PPC_INDIRECT_PCI |
54 | default y if MPC834x_SYS || MPC834x_ITX | 66 | default y if MPC834x_MDS || MPC834x_ITX |
55 | 67 | ||
56 | config PPC_MPC836x | 68 | config PPC_MPC836x |
57 | bool | 69 | bool |
diff --git a/arch/powerpc/platforms/83xx/Makefile b/arch/powerpc/platforms/83xx/Makefile index f1aa7e24a938..6c8199c4c382 100644 --- a/arch/powerpc/platforms/83xx/Makefile +++ b/arch/powerpc/platforms/83xx/Makefile | |||
@@ -3,7 +3,8 @@ | |||
3 | # | 3 | # |
4 | obj-y := misc.o | 4 | obj-y := misc.o |
5 | obj-$(CONFIG_PCI) += pci.o | 5 | obj-$(CONFIG_PCI) += pci.o |
6 | obj-$(CONFIG_MPC834x_SYS) += mpc834x_sys.o | 6 | obj-$(CONFIG_MPC8313_RDB) += mpc8313_rdb.o |
7 | obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o | ||
7 | obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o | 8 | obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o |
8 | obj-$(CONFIG_MPC8360E_PB) += mpc8360e_pb.o | 9 | obj-$(CONFIG_MPC8360E_PB) += mpc8360e_pb.o |
9 | obj-$(CONFIG_MPC832x_MDS) += mpc832x_mds.o | 10 | obj-$(CONFIG_MPC832x_MDS) += mpc832x_mds.o |
diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc8313_rdb.c new file mode 100644 index 000000000000..c3b98c34eb6b --- /dev/null +++ b/arch/powerpc/platforms/83xx/mpc8313_rdb.c | |||
@@ -0,0 +1,99 @@ | |||
1 | /* | ||
2 | * arch/powerpc/platforms/83xx/mpc8313_rdb.c | ||
3 | * | ||
4 | * Description: MPC8313x RDB board specific routines. | ||
5 | * This file is based on mpc834x_sys.c | ||
6 | * Author: Lo Wlison <r43300@freescale.com> | ||
7 | * | ||
8 | * Copyright (C) Freescale Semiconductor, Inc. 2006. All rights reserved. | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify it | ||
11 | * under the terms of the GNU General Public License as published by the | ||
12 | * Free Software Foundation; either version 2 of the License, or (at your | ||
13 | * option) any later version. | ||
14 | */ | ||
15 | |||
16 | #include <linux/pci.h> | ||
17 | |||
18 | #include <asm/time.h> | ||
19 | #include <asm/ipic.h> | ||
20 | #include <asm/udbg.h> | ||
21 | |||
22 | #include "mpc83xx.h" | ||
23 | |||
24 | #undef DEBUG | ||
25 | #ifdef DEBUG | ||
26 | #define DBG(fmt...) udbg_printf(fmt) | ||
27 | #else | ||
28 | #define DBG(fmt...) | ||
29 | #endif | ||
30 | |||
31 | #ifndef CONFIG_PCI | ||
32 | unsigned long isa_io_base = 0; | ||
33 | unsigned long isa_mem_base = 0; | ||
34 | #endif | ||
35 | |||
36 | /* ************************************************************************ | ||
37 | * | ||
38 | * Setup the architecture | ||
39 | * | ||
40 | */ | ||
41 | static void __init mpc8313_rdb_setup_arch(void) | ||
42 | { | ||
43 | struct device_node *np; | ||
44 | |||
45 | if (ppc_md.progress) | ||
46 | ppc_md.progress("mpc8313_rdb_setup_arch()", 0); | ||
47 | |||
48 | #ifdef CONFIG_PCI | ||
49 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | ||
50 | add_bridge(np); | ||
51 | |||
52 | ppc_md.pci_exclude_device = mpc83xx_exclude_device; | ||
53 | #endif | ||
54 | } | ||
55 | |||
56 | void __init mpc8313_rdb_init_IRQ(void) | ||
57 | { | ||
58 | struct device_node *np; | ||
59 | |||
60 | np = of_find_node_by_type(NULL, "ipic"); | ||
61 | if (!np) | ||
62 | return; | ||
63 | |||
64 | ipic_init(np, 0); | ||
65 | |||
66 | /* Initialize the default interrupt mapping priorities, | ||
67 | * in case the boot rom changed something on us. | ||
68 | */ | ||
69 | ipic_set_default_priority(); | ||
70 | } | ||
71 | |||
72 | /* | ||
73 | * Called very early, MMU is off, device-tree isn't unflattened | ||
74 | */ | ||
75 | static int __init mpc8313_rdb_probe(void) | ||
76 | { | ||
77 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
78 | "model", NULL); | ||
79 | if (model == NULL) | ||
80 | return 0; | ||
81 | if (strcmp(model, "MPC8313ERDB")) | ||
82 | return 0; | ||
83 | |||
84 | DBG("MPC8313 RDB found\n"); | ||
85 | |||
86 | return 1; | ||
87 | } | ||
88 | |||
89 | define_machine(mpc8313_rdb) { | ||
90 | .name = "MPC8313 RDB", | ||
91 | .probe = mpc8313_rdb_probe, | ||
92 | .setup_arch = mpc8313_rdb_setup_arch, | ||
93 | .init_IRQ = mpc8313_rdb_init_IRQ, | ||
94 | .get_irq = ipic_get_irq, | ||
95 | .restart = mpc83xx_restart, | ||
96 | .time_init = mpc83xx_time_init, | ||
97 | .calibrate_decr = generic_calibrate_decr, | ||
98 | .progress = udbg_progress, | ||
99 | }; | ||
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 2446dea9407e..443a3172f370 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -38,8 +38,6 @@ | |||
38 | 38 | ||
39 | #include "mpc83xx.h" | 39 | #include "mpc83xx.h" |
40 | 40 | ||
41 | #include <platforms/83xx/mpc834x_sys.h> | ||
42 | |||
43 | #ifndef CONFIG_PCI | 41 | #ifndef CONFIG_PCI |
44 | unsigned long isa_io_base = 0; | 42 | unsigned long isa_io_base = 0; |
45 | unsigned long isa_mem_base = 0; | 43 | unsigned long isa_mem_base = 0; |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_sys.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index f30393f0b832..d2736da76c46 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_sys.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/powerpc/platforms/83xx/mpc834x_sys.c | 2 | * arch/powerpc/platforms/83xx/mpc834x_mds.c |
3 | * | 3 | * |
4 | * MPC834x SYS board specific routines | 4 | * MPC834x MDS board specific routines |
5 | * | 5 | * |
6 | * Maintainer: Kumar Gala <galak@kernel.crashing.org> | 6 | * Maintainer: Kumar Gala <galak@kernel.crashing.org> |
7 | * | 7 | * |
@@ -43,17 +43,87 @@ unsigned long isa_io_base = 0; | |||
43 | unsigned long isa_mem_base = 0; | 43 | unsigned long isa_mem_base = 0; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #define BCSR5_INT_USB 0x02 | ||
47 | /* Note: This is only for PB, not for PB+PIB | ||
48 | * On PB only port0 is connected using ULPI */ | ||
49 | static int mpc834x_usb_cfg(void) | ||
50 | { | ||
51 | unsigned long sccr, sicrl; | ||
52 | void __iomem *immap; | ||
53 | void __iomem *bcsr_regs = NULL; | ||
54 | u8 bcsr5; | ||
55 | struct device_node *np = NULL; | ||
56 | int port0_is_dr = 0; | ||
57 | |||
58 | if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-dr")) != NULL) | ||
59 | port0_is_dr = 1; | ||
60 | if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-mph")) != NULL){ | ||
61 | if (port0_is_dr) { | ||
62 | printk(KERN_WARNING | ||
63 | "There is only one USB port on PB board! \n"); | ||
64 | return -1; | ||
65 | } else if (!port0_is_dr) | ||
66 | /* No usb port enabled */ | ||
67 | return -1; | ||
68 | } | ||
69 | |||
70 | immap = ioremap(get_immrbase(), 0x1000); | ||
71 | if (!immap) | ||
72 | return -1; | ||
73 | |||
74 | /* Configure clock */ | ||
75 | sccr = in_be32(immap + MPC83XX_SCCR_OFFS); | ||
76 | if (port0_is_dr) | ||
77 | sccr |= MPC83XX_SCCR_USB_DRCM_11; /* 1:3 */ | ||
78 | else | ||
79 | sccr |= MPC83XX_SCCR_USB_MPHCM_11; /* 1:3 */ | ||
80 | out_be32(immap + MPC83XX_SCCR_OFFS, sccr); | ||
81 | |||
82 | /* Configure Pin */ | ||
83 | sicrl = in_be32(immap + MPC83XX_SICRL_OFFS); | ||
84 | /* set port0 only */ | ||
85 | if (port0_is_dr) | ||
86 | sicrl |= MPC83XX_SICRL_USB0; | ||
87 | else | ||
88 | sicrl &= ~(MPC83XX_SICRL_USB0); | ||
89 | out_be32(immap + MPC83XX_SICRL_OFFS, sicrl); | ||
90 | |||
91 | iounmap(immap); | ||
92 | |||
93 | /* Map BCSR area */ | ||
94 | np = of_find_node_by_name(NULL, "bcsr"); | ||
95 | if (np != 0) { | ||
96 | struct resource res; | ||
97 | |||
98 | of_address_to_resource(np, 0, &res); | ||
99 | bcsr_regs = ioremap(res.start, res.end - res.start + 1); | ||
100 | of_node_put(np); | ||
101 | } | ||
102 | if (!bcsr_regs) | ||
103 | return -1; | ||
104 | |||
105 | /* | ||
106 | * if MDS board is plug into PIB board, | ||
107 | * force to use the PHY on MDS board | ||
108 | */ | ||
109 | bcsr5 = in_8(bcsr_regs + 5); | ||
110 | if (!(bcsr5 & BCSR5_INT_USB)) | ||
111 | out_8(bcsr_regs + 5, (bcsr5 | BCSR5_INT_USB)); | ||
112 | iounmap(bcsr_regs); | ||
113 | return 0; | ||
114 | } | ||
115 | |||
46 | /* ************************************************************************ | 116 | /* ************************************************************************ |
47 | * | 117 | * |
48 | * Setup the architecture | 118 | * Setup the architecture |
49 | * | 119 | * |
50 | */ | 120 | */ |
51 | static void __init mpc834x_sys_setup_arch(void) | 121 | static void __init mpc834x_mds_setup_arch(void) |
52 | { | 122 | { |
53 | struct device_node *np; | 123 | struct device_node *np; |
54 | 124 | ||
55 | if (ppc_md.progress) | 125 | if (ppc_md.progress) |
56 | ppc_md.progress("mpc834x_sys_setup_arch()", 0); | 126 | ppc_md.progress("mpc834x_mds_setup_arch()", 0); |
57 | 127 | ||
58 | np = of_find_node_by_type(NULL, "cpu"); | 128 | np = of_find_node_by_type(NULL, "cpu"); |
59 | if (np != 0) { | 129 | if (np != 0) { |
@@ -65,6 +135,7 @@ static void __init mpc834x_sys_setup_arch(void) | |||
65 | loops_per_jiffy = 50000000 / HZ; | 135 | loops_per_jiffy = 50000000 / HZ; |
66 | of_node_put(np); | 136 | of_node_put(np); |
67 | } | 137 | } |
138 | |||
68 | #ifdef CONFIG_PCI | 139 | #ifdef CONFIG_PCI |
69 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 140 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
70 | add_bridge(np); | 141 | add_bridge(np); |
@@ -72,6 +143,8 @@ static void __init mpc834x_sys_setup_arch(void) | |||
72 | ppc_md.pci_exclude_device = mpc83xx_exclude_device; | 143 | ppc_md.pci_exclude_device = mpc83xx_exclude_device; |
73 | #endif | 144 | #endif |
74 | 145 | ||
146 | mpc834x_usb_cfg(); | ||
147 | |||
75 | #ifdef CONFIG_ROOT_NFS | 148 | #ifdef CONFIG_ROOT_NFS |
76 | ROOT_DEV = Root_NFS; | 149 | ROOT_DEV = Root_NFS; |
77 | #else | 150 | #else |
@@ -79,7 +152,7 @@ static void __init mpc834x_sys_setup_arch(void) | |||
79 | #endif | 152 | #endif |
80 | } | 153 | } |
81 | 154 | ||
82 | static void __init mpc834x_sys_init_IRQ(void) | 155 | static void __init mpc834x_mds_init_IRQ(void) |
83 | { | 156 | { |
84 | struct device_node *np; | 157 | struct device_node *np; |
85 | 158 | ||
@@ -119,7 +192,7 @@ late_initcall(mpc834x_rtc_hookup); | |||
119 | /* | 192 | /* |
120 | * Called very early, MMU is off, device-tree isn't unflattened | 193 | * Called very early, MMU is off, device-tree isn't unflattened |
121 | */ | 194 | */ |
122 | static int __init mpc834x_sys_probe(void) | 195 | static int __init mpc834x_mds_probe(void) |
123 | { | 196 | { |
124 | /* We always match for now, eventually we should look at the flat | 197 | /* We always match for now, eventually we should look at the flat |
125 | dev tree to ensure this is the board we are suppose to run on | 198 | dev tree to ensure this is the board we are suppose to run on |
@@ -127,11 +200,11 @@ static int __init mpc834x_sys_probe(void) | |||
127 | return 1; | 200 | return 1; |
128 | } | 201 | } |
129 | 202 | ||
130 | define_machine(mpc834x_sys) { | 203 | define_machine(mpc834x_mds) { |
131 | .name = "MPC834x SYS", | 204 | .name = "MPC834x MDS", |
132 | .probe = mpc834x_sys_probe, | 205 | .probe = mpc834x_mds_probe, |
133 | .setup_arch = mpc834x_sys_setup_arch, | 206 | .setup_arch = mpc834x_mds_setup_arch, |
134 | .init_IRQ = mpc834x_sys_init_IRQ, | 207 | .init_IRQ = mpc834x_mds_init_IRQ, |
135 | .get_irq = ipic_get_irq, | 208 | .get_irq = ipic_get_irq, |
136 | .restart = mpc83xx_restart, | 209 | .restart = mpc83xx_restart, |
137 | .time_init = mpc83xx_time_init, | 210 | .time_init = mpc83xx_time_init, |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_sys.h b/arch/powerpc/platforms/83xx/mpc834x_sys.h deleted file mode 100644 index 7d5bbef084e7..000000000000 --- a/arch/powerpc/platforms/83xx/mpc834x_sys.h +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | /* | ||
2 | * arch/powerpc/platforms/83xx/mpc834x_sys.h | ||
3 | * | ||
4 | * MPC834X SYS common board definitions | ||
5 | * | ||
6 | * Maintainer: Kumar Gala <galak@kernel.crashing.org> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef __MACH_MPC83XX_SYS_H__ | ||
16 | #define __MACH_MPC83XX_SYS_H__ | ||
17 | |||
18 | #define PIRQA MPC83xx_IRQ_EXT4 | ||
19 | #define PIRQB MPC83xx_IRQ_EXT5 | ||
20 | #define PIRQC MPC83xx_IRQ_EXT6 | ||
21 | #define PIRQD MPC83xx_IRQ_EXT7 | ||
22 | |||
23 | #endif /* __MACH_MPC83XX_SYS_H__ */ | ||
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index 01cae106912b..9cd03b59c8f4 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h | |||
@@ -4,6 +4,24 @@ | |||
4 | #include <linux/init.h> | 4 | #include <linux/init.h> |
5 | #include <linux/device.h> | 5 | #include <linux/device.h> |
6 | 6 | ||
7 | /* System Clock Control Register */ | ||
8 | #define MPC83XX_SCCR_OFFS 0xA08 | ||
9 | #define MPC83XX_SCCR_USB_MPHCM_11 0x00c00000 | ||
10 | #define MPC83XX_SCCR_USB_MPHCM_01 0x00400000 | ||
11 | #define MPC83XX_SCCR_USB_MPHCM_10 0x00800000 | ||
12 | #define MPC83XX_SCCR_USB_DRCM_11 0x00300000 | ||
13 | #define MPC83XX_SCCR_USB_DRCM_01 0x00100000 | ||
14 | #define MPC83XX_SCCR_USB_DRCM_10 0x00200000 | ||
15 | |||
16 | /* system i/o configuration register low */ | ||
17 | #define MPC83XX_SICRL_OFFS 0x114 | ||
18 | #define MPC83XX_SICRL_USB0 0x40000000 | ||
19 | #define MPC83XX_SICRL_USB1 0x20000000 | ||
20 | |||
21 | /* system i/o configuration register high */ | ||
22 | #define MPC83XX_SICRH_OFFS 0x118 | ||
23 | #define MPC83XX_SICRH_USB_UTMI 0x00020000 | ||
24 | |||
7 | /* | 25 | /* |
8 | * Declaration for the various functions exported by the | 26 | * Declaration for the various functions exported by the |
9 | * mpc83xx_* files. Mostly for use by mpc83xx_setup | 27 | * mpc83xx_* files. Mostly for use by mpc83xx_setup |
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig index 0584f3c7e884..0efdd2f1babe 100644 --- a/arch/powerpc/platforms/85xx/Kconfig +++ b/arch/powerpc/platforms/85xx/Kconfig | |||
@@ -23,6 +23,13 @@ config MPC85xx_CDS | |||
23 | help | 23 | help |
24 | This option enables support for the MPC85xx CDS board | 24 | This option enables support for the MPC85xx CDS board |
25 | 25 | ||
26 | config MPC8568_MDS | ||
27 | bool "Freescale MPC8568 MDS" | ||
28 | select DEFAULT_UIMAGE | ||
29 | # select QUICC_ENGINE | ||
30 | help | ||
31 | This option enables support for the MPC8568 MDS board | ||
32 | |||
26 | endchoice | 33 | endchoice |
27 | 34 | ||
28 | config MPC8540 | 35 | config MPC8540 |
@@ -36,6 +43,12 @@ config MPC8560 | |||
36 | select PPC_INDIRECT_PCI | 43 | select PPC_INDIRECT_PCI |
37 | default y if MPC8560_ADS | 44 | default y if MPC8560_ADS |
38 | 45 | ||
46 | config MPC85xx | ||
47 | bool | ||
48 | select PPC_UDBG_16550 | ||
49 | select PPC_INDIRECT_PCI | ||
50 | default y if MPC8540_ADS || MPC85xx_CDS || MPC8560_ADS || MPC8568_MDS | ||
51 | |||
39 | config PPC_INDIRECT_PCI_BE | 52 | config PPC_INDIRECT_PCI_BE |
40 | bool | 53 | bool |
41 | depends on PPC_85xx | 54 | depends on PPC_85xx |
diff --git a/arch/powerpc/platforms/85xx/Makefile b/arch/powerpc/platforms/85xx/Makefile index 282f5d0d0152..e40e521816b8 100644 --- a/arch/powerpc/platforms/85xx/Makefile +++ b/arch/powerpc/platforms/85xx/Makefile | |||
@@ -5,3 +5,4 @@ obj-$(CONFIG_PPC_85xx) += misc.o pci.o | |||
5 | obj-$(CONFIG_MPC8540_ADS) += mpc85xx_ads.o | 5 | obj-$(CONFIG_MPC8540_ADS) += mpc85xx_ads.o |
6 | obj-$(CONFIG_MPC8560_ADS) += mpc85xx_ads.o | 6 | obj-$(CONFIG_MPC8560_ADS) += mpc85xx_ads.o |
7 | obj-$(CONFIG_MPC85xx_CDS) += mpc85xx_cds.o | 7 | obj-$(CONFIG_MPC85xx_CDS) += mpc85xx_cds.o |
8 | obj-$(CONFIG_MPC8568_MDS) += mpc8568_mds.o | ||
diff --git a/arch/powerpc/platforms/85xx/mpc8568_mds.c b/arch/powerpc/platforms/85xx/mpc8568_mds.c new file mode 100644 index 000000000000..0861d1107bc8 --- /dev/null +++ b/arch/powerpc/platforms/85xx/mpc8568_mds.c | |||
@@ -0,0 +1,246 @@ | |||
1 | /* | ||
2 | * Copyright (C) Freescale Semicondutor, Inc. 2006-2007. All rights reserved. | ||
3 | * | ||
4 | * Author: Andy Fleming <afleming@freescale.com> | ||
5 | * | ||
6 | * Based on 83xx/mpc8360e_pb.c by: | ||
7 | * Li Yang <LeoLi@freescale.com> | ||
8 | * Yin Olivia <Hong-hua.Yin@freescale.com> | ||
9 | * | ||
10 | * Description: | ||
11 | * MPC8568E MDS PB board specific routines. | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or modify it | ||
14 | * under the terms of the GNU General Public License as published by the | ||
15 | * Free Software Foundation; either version 2 of the License, or (at your | ||
16 | * option) any later version. | ||
17 | */ | ||
18 | |||
19 | #include <linux/stddef.h> | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/errno.h> | ||
23 | #include <linux/reboot.h> | ||
24 | #include <linux/pci.h> | ||
25 | #include <linux/kdev_t.h> | ||
26 | #include <linux/major.h> | ||
27 | #include <linux/console.h> | ||
28 | #include <linux/delay.h> | ||
29 | #include <linux/seq_file.h> | ||
30 | #include <linux/root_dev.h> | ||
31 | #include <linux/initrd.h> | ||
32 | #include <linux/module.h> | ||
33 | #include <linux/fsl_devices.h> | ||
34 | |||
35 | #include <asm/of_device.h> | ||
36 | #include <asm/of_platform.h> | ||
37 | #include <asm/system.h> | ||
38 | #include <asm/atomic.h> | ||
39 | #include <asm/time.h> | ||
40 | #include <asm/io.h> | ||
41 | #include <asm/machdep.h> | ||
42 | #include <asm/bootinfo.h> | ||
43 | #include <asm/pci-bridge.h> | ||
44 | #include <asm/mpc85xx.h> | ||
45 | #include <asm/irq.h> | ||
46 | #include <mm/mmu_decl.h> | ||
47 | #include <asm/prom.h> | ||
48 | #include <asm/udbg.h> | ||
49 | #include <sysdev/fsl_soc.h> | ||
50 | #include <asm/qe.h> | ||
51 | #include <asm/qe_ic.h> | ||
52 | #include <asm/mpic.h> | ||
53 | |||
54 | #include "mpc85xx.h" | ||
55 | |||
56 | #undef DEBUG | ||
57 | #ifdef DEBUG | ||
58 | #define DBG(fmt...) udbg_printf(fmt) | ||
59 | #else | ||
60 | #define DBG(fmt...) | ||
61 | #endif | ||
62 | |||
63 | #ifndef CONFIG_PCI | ||
64 | unsigned long isa_io_base = 0; | ||
65 | unsigned long isa_mem_base = 0; | ||
66 | #endif | ||
67 | |||
68 | /* ************************************************************************ | ||
69 | * | ||
70 | * Setup the architecture | ||
71 | * | ||
72 | */ | ||
73 | static void __init mpc8568_mds_setup_arch(void) | ||
74 | { | ||
75 | struct device_node *np; | ||
76 | static u8 *bcsr_regs = NULL; | ||
77 | |||
78 | |||
79 | if (ppc_md.progress) | ||
80 | ppc_md.progress("mpc8568_mds_setup_arch()", 0); | ||
81 | |||
82 | np = of_find_node_by_type(NULL, "cpu"); | ||
83 | if (np != NULL) { | ||
84 | const unsigned int *fp = | ||
85 | get_property(np, "clock-frequency", NULL); | ||
86 | if (fp != NULL) | ||
87 | loops_per_jiffy = *fp / HZ; | ||
88 | else | ||
89 | loops_per_jiffy = 50000000 / HZ; | ||
90 | of_node_put(np); | ||
91 | } | ||
92 | |||
93 | /* Map BCSR area */ | ||
94 | np = of_find_node_by_name(NULL, "bcsr"); | ||
95 | if (np != NULL) { | ||
96 | struct resource res; | ||
97 | |||
98 | of_address_to_resource(np, 0, &res); | ||
99 | bcsr_regs = ioremap(res.start, res.end - res.start +1); | ||
100 | of_node_put(np); | ||
101 | } | ||
102 | |||
103 | #ifdef CONFIG_PCI | ||
104 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) { | ||
105 | add_bridge(np); | ||
106 | } | ||
107 | of_node_put(np); | ||
108 | #endif | ||
109 | |||
110 | #ifdef CONFIG_QUICC_ENGINE | ||
111 | if ((np = of_find_node_by_name(NULL, "qe")) != NULL) { | ||
112 | qe_reset(); | ||
113 | of_node_put(np); | ||
114 | } | ||
115 | |||
116 | if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { | ||
117 | struct device_node *ucc = NULL; | ||
118 | |||
119 | par_io_init(np); | ||
120 | of_node_put(np); | ||
121 | |||
122 | for ( ;(ucc = of_find_node_by_name(ucc, "ucc")) != NULL;) | ||
123 | par_io_of_config(ucc); | ||
124 | |||
125 | of_node_put(ucc); | ||
126 | } | ||
127 | |||
128 | if (bcsr_regs) { | ||
129 | u8 bcsr_phy; | ||
130 | |||
131 | /* Reset the Ethernet PHY */ | ||
132 | bcsr_phy = in_be8(&bcsr_regs[9]); | ||
133 | bcsr_phy &= ~0x20; | ||
134 | out_be8(&bcsr_regs[9], bcsr_phy); | ||
135 | |||
136 | udelay(1000); | ||
137 | |||
138 | bcsr_phy = in_be8(&bcsr_regs[9]); | ||
139 | bcsr_phy |= 0x20; | ||
140 | out_be8(&bcsr_regs[9], bcsr_phy); | ||
141 | |||
142 | iounmap(bcsr_regs); | ||
143 | } | ||
144 | |||
145 | #endif /* CONFIG_QUICC_ENGINE */ | ||
146 | } | ||
147 | |||
148 | static struct of_device_id mpc8568_ids[] = { | ||
149 | { .type = "soc", }, | ||
150 | { .compatible = "soc", }, | ||
151 | { .type = "qe", }, | ||
152 | {}, | ||
153 | }; | ||
154 | |||
155 | static int __init mpc8568_publish_devices(void) | ||
156 | { | ||
157 | if (!machine_is(mpc8568_mds)) | ||
158 | return 0; | ||
159 | |||
160 | /* Publish the QE devices */ | ||
161 | of_platform_bus_probe(NULL,mpc8568_ids,NULL); | ||
162 | |||
163 | return 0; | ||
164 | } | ||
165 | device_initcall(mpc8568_publish_devices); | ||
166 | |||
167 | static void __init mpc8568_mds_pic_init(void) | ||
168 | { | ||
169 | struct mpic *mpic; | ||
170 | struct resource r; | ||
171 | struct device_node *np = NULL; | ||
172 | |||
173 | np = of_find_node_by_type(NULL, "open-pic"); | ||
174 | if (!np) | ||
175 | return; | ||
176 | |||
177 | if (of_address_to_resource(np, 0, &r)) { | ||
178 | printk(KERN_ERR "Failed to map mpic register space\n"); | ||
179 | of_node_put(np); | ||
180 | return; | ||
181 | } | ||
182 | |||
183 | mpic = mpic_alloc(np, r.start, | ||
184 | MPIC_PRIMARY | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN, | ||
185 | 4, 0, " OpenPIC "); | ||
186 | BUG_ON(mpic == NULL); | ||
187 | of_node_put(np); | ||
188 | |||
189 | /* Internal Interrupts */ | ||
190 | mpic_assign_isu(mpic, 0, r.start + 0x10200); | ||
191 | mpic_assign_isu(mpic, 1, r.start + 0x10280); | ||
192 | mpic_assign_isu(mpic, 2, r.start + 0x10300); | ||
193 | mpic_assign_isu(mpic, 3, r.start + 0x10380); | ||
194 | mpic_assign_isu(mpic, 4, r.start + 0x10400); | ||
195 | mpic_assign_isu(mpic, 5, r.start + 0x10480); | ||
196 | mpic_assign_isu(mpic, 6, r.start + 0x10500); | ||
197 | mpic_assign_isu(mpic, 7, r.start + 0x10580); | ||
198 | mpic_assign_isu(mpic, 8, r.start + 0x10600); | ||
199 | mpic_assign_isu(mpic, 9, r.start + 0x10680); | ||
200 | mpic_assign_isu(mpic, 10, r.start + 0x10700); | ||
201 | mpic_assign_isu(mpic, 11, r.start + 0x10780); | ||
202 | |||
203 | /* External Interrupts */ | ||
204 | mpic_assign_isu(mpic, 12, r.start + 0x10000); | ||
205 | mpic_assign_isu(mpic, 13, r.start + 0x10080); | ||
206 | mpic_assign_isu(mpic, 14, r.start + 0x10100); | ||
207 | |||
208 | mpic_init(mpic); | ||
209 | |||
210 | |||
211 | #ifdef CONFIG_QUICC_ENGINE | ||
212 | np = of_find_node_by_type(NULL, "qeic"); | ||
213 | if (!np) | ||
214 | return; | ||
215 | |||
216 | qe_ic_init(np, 0); | ||
217 | of_node_put(np); | ||
218 | #endif /* CONFIG_QUICC_ENGINE */ | ||
219 | } | ||
220 | |||
221 | |||
222 | static int __init mpc8568_mds_probe(void) | ||
223 | { | ||
224 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
225 | "model", NULL); | ||
226 | if (model == NULL) | ||
227 | return 0; | ||
228 | if (strcmp(model, "MPC8568EMDS")) | ||
229 | return 0; | ||
230 | |||
231 | DBG("MPC8568EMDS found\n"); | ||
232 | |||
233 | return 1; | ||
234 | } | ||
235 | |||
236 | |||
237 | define_machine(mpc8568_mds) { | ||
238 | .name = "MPC8568E MDS", | ||
239 | .probe = mpc8568_mds_probe, | ||
240 | .setup_arch = mpc8568_mds_setup_arch, | ||
241 | .init_IRQ = mpc8568_mds_pic_init, | ||
242 | .get_irq = mpic_get_irq, | ||
243 | .restart = mpc85xx_restart, | ||
244 | .calibrate_decr = generic_calibrate_decr, | ||
245 | .progress = udbg_progress, | ||
246 | }; | ||
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c index bda2e55e6c4c..c56fce57621c 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c | |||
@@ -45,8 +45,7 @@ unsigned long isa_mem_base = 0; | |||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #ifdef CONFIG_PCI | 47 | #ifdef CONFIG_PCI |
48 | int | 48 | static int mpc85xx_exclude_device(u_char bus, u_char devfn) |
49 | mpc85xx_exclude_device(u_char bus, u_char devfn) | ||
50 | { | 49 | { |
51 | if (bus == 0 && PCI_SLOT(devfn) == 0) | 50 | if (bus == 0 && PCI_SLOT(devfn) == 0) |
52 | return PCIBIOS_DEVICE_NOT_FOUND; | 51 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -69,7 +68,7 @@ static void cpm2_cascade(unsigned int irq, struct irq_desc *desc) | |||
69 | 68 | ||
70 | #endif /* CONFIG_CPM2 */ | 69 | #endif /* CONFIG_CPM2 */ |
71 | 70 | ||
72 | void __init mpc85xx_ads_pic_init(void) | 71 | static void __init mpc85xx_ads_pic_init(void) |
73 | { | 72 | { |
74 | struct mpic *mpic; | 73 | struct mpic *mpic; |
75 | struct resource r; | 74 | struct resource r; |
@@ -254,7 +253,7 @@ static void __init mpc85xx_ads_setup_arch(void) | |||
254 | #endif | 253 | #endif |
255 | } | 254 | } |
256 | 255 | ||
257 | void mpc85xx_ads_show_cpuinfo(struct seq_file *m) | 256 | static void mpc85xx_ads_show_cpuinfo(struct seq_file *m) |
258 | { | 257 | { |
259 | uint pvid, svid, phid1; | 258 | uint pvid, svid, phid1; |
260 | uint memsize = total_memory; | 259 | uint memsize = total_memory; |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c index 953cd5dd3f54..abc0aca6de40 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c | |||
@@ -56,7 +56,6 @@ unsigned long isa_mem_base = 0; | |||
56 | static int cds_pci_slot = 2; | 56 | static int cds_pci_slot = 2; |
57 | static volatile u8 *cadmus; | 57 | static volatile u8 *cadmus; |
58 | 58 | ||
59 | |||
60 | #ifdef CONFIG_PCI | 59 | #ifdef CONFIG_PCI |
61 | 60 | ||
62 | #define ARCADIA_HOST_BRIDGE_IDSEL 17 | 61 | #define ARCADIA_HOST_BRIDGE_IDSEL 17 |
@@ -64,8 +63,7 @@ static volatile u8 *cadmus; | |||
64 | 63 | ||
65 | extern int mpc85xx_pci2_busno; | 64 | extern int mpc85xx_pci2_busno; |
66 | 65 | ||
67 | int | 66 | static int mpc85xx_exclude_device(u_char bus, u_char devfn) |
68 | mpc85xx_exclude_device(u_char bus, u_char devfn) | ||
69 | { | 67 | { |
70 | if (bus == 0 && PCI_SLOT(devfn) == 0) | 68 | if (bus == 0 && PCI_SLOT(devfn) == 0) |
71 | return PCIBIOS_DEVICE_NOT_FOUND; | 69 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -81,8 +79,7 @@ mpc85xx_exclude_device(u_char bus, u_char devfn) | |||
81 | return PCIBIOS_SUCCESSFUL; | 79 | return PCIBIOS_SUCCESSFUL; |
82 | } | 80 | } |
83 | 81 | ||
84 | void __init | 82 | static void __init mpc85xx_cds_pcibios_fixup(void) |
85 | mpc85xx_cds_pcibios_fixup(void) | ||
86 | { | 83 | { |
87 | struct pci_dev *dev; | 84 | struct pci_dev *dev; |
88 | u_char c; | 85 | u_char c; |
@@ -144,7 +141,7 @@ static void mpc85xx_8259_cascade(unsigned int irq, struct irq_desc *desc) | |||
144 | #endif /* PPC_I8259 */ | 141 | #endif /* PPC_I8259 */ |
145 | #endif /* CONFIG_PCI */ | 142 | #endif /* CONFIG_PCI */ |
146 | 143 | ||
147 | void __init mpc85xx_cds_pic_init(void) | 144 | static void __init mpc85xx_cds_pic_init(void) |
148 | { | 145 | { |
149 | struct mpic *mpic; | 146 | struct mpic *mpic; |
150 | struct resource r; | 147 | struct resource r; |
@@ -224,12 +221,10 @@ void __init mpc85xx_cds_pic_init(void) | |||
224 | #endif /* CONFIG_PPC_I8259 */ | 221 | #endif /* CONFIG_PPC_I8259 */ |
225 | } | 222 | } |
226 | 223 | ||
227 | |||
228 | /* | 224 | /* |
229 | * Setup the architecture | 225 | * Setup the architecture |
230 | */ | 226 | */ |
231 | static void __init | 227 | static void __init mpc85xx_cds_setup_arch(void) |
232 | mpc85xx_cds_setup_arch(void) | ||
233 | { | 228 | { |
234 | struct device_node *cpu; | 229 | struct device_node *cpu; |
235 | #ifdef CONFIG_PCI | 230 | #ifdef CONFIG_PCI |
@@ -276,9 +271,7 @@ mpc85xx_cds_setup_arch(void) | |||
276 | #endif | 271 | #endif |
277 | } | 272 | } |
278 | 273 | ||
279 | 274 | static void mpc85xx_cds_show_cpuinfo(struct seq_file *m) | |
280 | void | ||
281 | mpc85xx_cds_show_cpuinfo(struct seq_file *m) | ||
282 | { | 275 | { |
283 | uint pvid, svid, phid1; | 276 | uint pvid, svid, phid1; |
284 | uint memsize = total_memory; | 277 | uint memsize = total_memory; |
diff --git a/arch/powerpc/platforms/Makefile b/arch/powerpc/platforms/Makefile index 65e612315b9b..452004283f17 100644 --- a/arch/powerpc/platforms/Makefile +++ b/arch/powerpc/platforms/Makefile | |||
@@ -5,9 +5,9 @@ ifeq ($(CONFIG_PPC64),y) | |||
5 | obj-$(CONFIG_PPC_PMAC) += powermac/ | 5 | obj-$(CONFIG_PPC_PMAC) += powermac/ |
6 | endif | 6 | endif |
7 | endif | 7 | endif |
8 | obj-$(CONFIG_PPC_MPC52xx) += 52xx/ | ||
9 | obj-$(CONFIG_PPC_CHRP) += chrp/ | 8 | obj-$(CONFIG_PPC_CHRP) += chrp/ |
10 | obj-$(CONFIG_4xx) += 4xx/ | 9 | obj-$(CONFIG_4xx) += 4xx/ |
10 | obj-$(CONFIG_PPC_MPC52xx) += 52xx/ | ||
11 | obj-$(CONFIG_PPC_8xx) += 8xx/ | 11 | obj-$(CONFIG_PPC_8xx) += 8xx/ |
12 | obj-$(CONFIG_PPC_82xx) += 82xx/ | 12 | obj-$(CONFIG_PPC_82xx) += 82xx/ |
13 | obj-$(CONFIG_PPC_83xx) += 83xx/ | 13 | obj-$(CONFIG_PPC_83xx) += 83xx/ |
diff --git a/arch/powerpc/platforms/cell/pmu.c b/arch/powerpc/platforms/cell/pmu.c index d04ae1671e6c..66ca4b5a1dbc 100644 --- a/arch/powerpc/platforms/cell/pmu.c +++ b/arch/powerpc/platforms/cell/pmu.c | |||
@@ -345,18 +345,12 @@ EXPORT_SYMBOL_GPL(cbe_read_trace_buffer); | |||
345 | * Enabling/disabling interrupts for the entire performance monitoring unit. | 345 | * Enabling/disabling interrupts for the entire performance monitoring unit. |
346 | */ | 346 | */ |
347 | 347 | ||
348 | u32 cbe_query_pm_interrupts(u32 cpu) | 348 | u32 cbe_get_and_clear_pm_interrupts(u32 cpu) |
349 | { | ||
350 | return cbe_read_pm(cpu, pm_status); | ||
351 | } | ||
352 | EXPORT_SYMBOL_GPL(cbe_query_pm_interrupts); | ||
353 | |||
354 | u32 cbe_clear_pm_interrupts(u32 cpu) | ||
355 | { | 349 | { |
356 | /* Reading pm_status clears the interrupt bits. */ | 350 | /* Reading pm_status clears the interrupt bits. */ |
357 | return cbe_query_pm_interrupts(cpu); | 351 | return cbe_read_pm(cpu, pm_status); |
358 | } | 352 | } |
359 | EXPORT_SYMBOL_GPL(cbe_clear_pm_interrupts); | 353 | EXPORT_SYMBOL_GPL(cbe_get_and_clear_pm_interrupts); |
360 | 354 | ||
361 | void cbe_enable_pm_interrupts(u32 cpu, u32 thread, u32 mask) | 355 | void cbe_enable_pm_interrupts(u32 cpu, u32 thread, u32 mask) |
362 | { | 356 | { |
@@ -371,7 +365,7 @@ EXPORT_SYMBOL_GPL(cbe_enable_pm_interrupts); | |||
371 | 365 | ||
372 | void cbe_disable_pm_interrupts(u32 cpu) | 366 | void cbe_disable_pm_interrupts(u32 cpu) |
373 | { | 367 | { |
374 | cbe_clear_pm_interrupts(cpu); | 368 | cbe_get_and_clear_pm_interrupts(cpu); |
375 | cbe_write_pm(cpu, pm_status, 0); | 369 | cbe_write_pm(cpu, pm_status, 0); |
376 | } | 370 | } |
377 | EXPORT_SYMBOL_GPL(cbe_disable_pm_interrupts); | 371 | EXPORT_SYMBOL_GPL(cbe_disable_pm_interrupts); |
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c index d8b39fe39cdd..e34599f53d28 100644 --- a/arch/powerpc/platforms/cell/spu_manage.c +++ b/arch/powerpc/platforms/cell/spu_manage.c | |||
@@ -59,63 +59,6 @@ static u64 __init find_spu_unit_number(struct device_node *spe) | |||
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |
61 | 61 | ||
62 | static int __init cell_spuprop_present(struct spu *spu, struct device_node *spe, | ||
63 | const char *prop) | ||
64 | { | ||
65 | const struct address_prop { | ||
66 | unsigned long address; | ||
67 | unsigned int len; | ||
68 | } __attribute__((packed)) *p; | ||
69 | int proplen; | ||
70 | |||
71 | unsigned long start_pfn, nr_pages; | ||
72 | struct pglist_data *pgdata; | ||
73 | struct zone *zone; | ||
74 | int ret; | ||
75 | |||
76 | p = get_property(spe, prop, &proplen); | ||
77 | WARN_ON(proplen != sizeof (*p)); | ||
78 | |||
79 | start_pfn = p->address >> PAGE_SHIFT; | ||
80 | nr_pages = ((unsigned long)p->len + PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
81 | |||
82 | pgdata = NODE_DATA(spu->node); | ||
83 | zone = pgdata->node_zones; | ||
84 | |||
85 | ret = __add_pages(zone, start_pfn, nr_pages); | ||
86 | |||
87 | return ret; | ||
88 | } | ||
89 | |||
90 | static void __iomem * __init map_spe_prop(struct spu *spu, | ||
91 | struct device_node *n, const char *name) | ||
92 | { | ||
93 | const struct address_prop { | ||
94 | unsigned long address; | ||
95 | unsigned int len; | ||
96 | } __attribute__((packed)) *prop; | ||
97 | |||
98 | const void *p; | ||
99 | int proplen; | ||
100 | void __iomem *ret = NULL; | ||
101 | int err = 0; | ||
102 | |||
103 | p = get_property(n, name, &proplen); | ||
104 | if (proplen != sizeof (struct address_prop)) | ||
105 | return NULL; | ||
106 | |||
107 | prop = p; | ||
108 | |||
109 | err = cell_spuprop_present(spu, n, name); | ||
110 | if (err && (err != -EEXIST)) | ||
111 | goto out; | ||
112 | |||
113 | ret = ioremap(prop->address, prop->len); | ||
114 | |||
115 | out: | ||
116 | return ret; | ||
117 | } | ||
118 | |||
119 | static void spu_unmap(struct spu *spu) | 62 | static void spu_unmap(struct spu *spu) |
120 | { | 63 | { |
121 | if (!firmware_has_feature(FW_FEATURE_LPAR)) | 64 | if (!firmware_has_feature(FW_FEATURE_LPAR)) |
@@ -157,6 +100,23 @@ static int __init spu_map_interrupts_old(struct spu *spu, | |||
157 | return spu->irqs[2] == NO_IRQ ? -EINVAL : 0; | 100 | return spu->irqs[2] == NO_IRQ ? -EINVAL : 0; |
158 | } | 101 | } |
159 | 102 | ||
103 | static void __iomem * __init spu_map_prop_old(struct spu *spu, | ||
104 | struct device_node *n, | ||
105 | const char *name) | ||
106 | { | ||
107 | const struct address_prop { | ||
108 | unsigned long address; | ||
109 | unsigned int len; | ||
110 | } __attribute__((packed)) *prop; | ||
111 | int proplen; | ||
112 | |||
113 | prop = get_property(n, name, &proplen); | ||
114 | if (prop == NULL || proplen != sizeof (struct address_prop)) | ||
115 | return NULL; | ||
116 | |||
117 | return ioremap(prop->address, prop->len); | ||
118 | } | ||
119 | |||
160 | static int __init spu_map_device_old(struct spu *spu) | 120 | static int __init spu_map_device_old(struct spu *spu) |
161 | { | 121 | { |
162 | struct device_node *node = spu->devnode; | 122 | struct device_node *node = spu->devnode; |
@@ -175,7 +135,7 @@ static int __init spu_map_device_old(struct spu *spu) | |||
175 | 135 | ||
176 | /* we use local store as ram, not io memory */ | 136 | /* we use local store as ram, not io memory */ |
177 | spu->local_store = (void __force *) | 137 | spu->local_store = (void __force *) |
178 | map_spe_prop(spu, node, "local-store"); | 138 | spu_map_prop_old(spu, node, "local-store"); |
179 | if (!spu->local_store) | 139 | if (!spu->local_store) |
180 | goto out; | 140 | goto out; |
181 | 141 | ||
@@ -184,16 +144,16 @@ static int __init spu_map_device_old(struct spu *spu) | |||
184 | goto out_unmap; | 144 | goto out_unmap; |
185 | spu->problem_phys = *(unsigned long *)prop; | 145 | spu->problem_phys = *(unsigned long *)prop; |
186 | 146 | ||
187 | spu->problem = map_spe_prop(spu, node, "problem"); | 147 | spu->problem = spu_map_prop_old(spu, node, "problem"); |
188 | if (!spu->problem) | 148 | if (!spu->problem) |
189 | goto out_unmap; | 149 | goto out_unmap; |
190 | 150 | ||
191 | spu->priv2 = map_spe_prop(spu, node, "priv2"); | 151 | spu->priv2 = spu_map_prop_old(spu, node, "priv2"); |
192 | if (!spu->priv2) | 152 | if (!spu->priv2) |
193 | goto out_unmap; | 153 | goto out_unmap; |
194 | 154 | ||
195 | if (!firmware_has_feature(FW_FEATURE_LPAR)) { | 155 | if (!firmware_has_feature(FW_FEATURE_LPAR)) { |
196 | spu->priv1 = map_spe_prop(spu, node, "priv1"); | 156 | spu->priv1 = spu_map_prop_old(spu, node, "priv1"); |
197 | if (!spu->priv1) | 157 | if (!spu->priv1) |
198 | goto out_unmap; | 158 | goto out_unmap; |
199 | } | 159 | } |
@@ -245,34 +205,20 @@ static int spu_map_resource(struct spu *spu, int nr, | |||
245 | void __iomem** virt, unsigned long *phys) | 205 | void __iomem** virt, unsigned long *phys) |
246 | { | 206 | { |
247 | struct device_node *np = spu->devnode; | 207 | struct device_node *np = spu->devnode; |
248 | unsigned long start_pfn, nr_pages; | ||
249 | struct pglist_data *pgdata; | ||
250 | struct zone *zone; | ||
251 | struct resource resource = { }; | 208 | struct resource resource = { }; |
252 | unsigned long len; | 209 | unsigned long len; |
253 | int ret; | 210 | int ret; |
254 | 211 | ||
255 | ret = of_address_to_resource(np, nr, &resource); | 212 | ret = of_address_to_resource(np, nr, &resource); |
256 | if (ret) | 213 | if (ret) |
257 | goto out; | 214 | return ret; |
258 | |||
259 | if (phys) | 215 | if (phys) |
260 | *phys = resource.start; | 216 | *phys = resource.start; |
261 | len = resource.end - resource.start + 1; | 217 | len = resource.end - resource.start + 1; |
262 | *virt = ioremap(resource.start, len); | 218 | *virt = ioremap(resource.start, len); |
263 | if (!*virt) | 219 | if (!*virt) |
264 | ret = -EINVAL; | 220 | return -EINVAL; |
265 | 221 | return 0; | |
266 | start_pfn = resource.start >> PAGE_SHIFT; | ||
267 | nr_pages = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
268 | |||
269 | pgdata = NODE_DATA(spu->node); | ||
270 | zone = pgdata->node_zones; | ||
271 | |||
272 | ret = __add_pages(zone, start_pfn, nr_pages); | ||
273 | |||
274 | out: | ||
275 | return ret; | ||
276 | } | 222 | } |
277 | 223 | ||
278 | static int __init spu_map_device(struct spu *spu) | 224 | static int __init spu_map_device(struct spu *spu) |
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c index 0870009f56db..04ad2e364e97 100644 --- a/arch/powerpc/platforms/cell/spufs/context.c +++ b/arch/powerpc/platforms/cell/spufs/context.c | |||
@@ -42,7 +42,7 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang) | |||
42 | } | 42 | } |
43 | spin_lock_init(&ctx->mmio_lock); | 43 | spin_lock_init(&ctx->mmio_lock); |
44 | kref_init(&ctx->kref); | 44 | kref_init(&ctx->kref); |
45 | init_rwsem(&ctx->state_sema); | 45 | mutex_init(&ctx->state_mutex); |
46 | init_MUTEX(&ctx->run_sema); | 46 | init_MUTEX(&ctx->run_sema); |
47 | init_waitqueue_head(&ctx->ibox_wq); | 47 | init_waitqueue_head(&ctx->ibox_wq); |
48 | init_waitqueue_head(&ctx->wbox_wq); | 48 | init_waitqueue_head(&ctx->wbox_wq); |
@@ -53,6 +53,10 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang) | |||
53 | ctx->owner = get_task_mm(current); | 53 | ctx->owner = get_task_mm(current); |
54 | if (gang) | 54 | if (gang) |
55 | spu_gang_add_ctx(gang, ctx); | 55 | spu_gang_add_ctx(gang, ctx); |
56 | ctx->rt_priority = current->rt_priority; | ||
57 | ctx->policy = current->policy; | ||
58 | ctx->prio = current->prio; | ||
59 | INIT_DELAYED_WORK(&ctx->sched_work, spu_sched_tick); | ||
56 | goto out; | 60 | goto out; |
57 | out_free: | 61 | out_free: |
58 | kfree(ctx); | 62 | kfree(ctx); |
@@ -65,9 +69,9 @@ void destroy_spu_context(struct kref *kref) | |||
65 | { | 69 | { |
66 | struct spu_context *ctx; | 70 | struct spu_context *ctx; |
67 | ctx = container_of(kref, struct spu_context, kref); | 71 | ctx = container_of(kref, struct spu_context, kref); |
68 | down_write(&ctx->state_sema); | 72 | mutex_lock(&ctx->state_mutex); |
69 | spu_deactivate(ctx); | 73 | spu_deactivate(ctx); |
70 | up_write(&ctx->state_sema); | 74 | mutex_unlock(&ctx->state_mutex); |
71 | spu_fini_csa(&ctx->csa); | 75 | spu_fini_csa(&ctx->csa); |
72 | if (ctx->gang) | 76 | if (ctx->gang) |
73 | spu_gang_remove_ctx(ctx->gang, ctx); | 77 | spu_gang_remove_ctx(ctx->gang, ctx); |
@@ -96,107 +100,102 @@ void spu_forget(struct spu_context *ctx) | |||
96 | spu_release(ctx); | 100 | spu_release(ctx); |
97 | } | 101 | } |
98 | 102 | ||
99 | void spu_acquire(struct spu_context *ctx) | ||
100 | { | ||
101 | down_read(&ctx->state_sema); | ||
102 | } | ||
103 | |||
104 | void spu_release(struct spu_context *ctx) | ||
105 | { | ||
106 | up_read(&ctx->state_sema); | ||
107 | } | ||
108 | |||
109 | void spu_unmap_mappings(struct spu_context *ctx) | 103 | void spu_unmap_mappings(struct spu_context *ctx) |
110 | { | 104 | { |
111 | if (ctx->local_store) | 105 | if (ctx->local_store) |
112 | unmap_mapping_range(ctx->local_store, 0, LS_SIZE, 1); | 106 | unmap_mapping_range(ctx->local_store, 0, LS_SIZE, 1); |
113 | if (ctx->mfc) | 107 | if (ctx->mfc) |
114 | unmap_mapping_range(ctx->mfc, 0, 0x4000, 1); | 108 | unmap_mapping_range(ctx->mfc, 0, 0x1000, 1); |
115 | if (ctx->cntl) | 109 | if (ctx->cntl) |
116 | unmap_mapping_range(ctx->cntl, 0, 0x4000, 1); | 110 | unmap_mapping_range(ctx->cntl, 0, 0x1000, 1); |
117 | if (ctx->signal1) | 111 | if (ctx->signal1) |
118 | unmap_mapping_range(ctx->signal1, 0, 0x4000, 1); | 112 | unmap_mapping_range(ctx->signal1, 0, PAGE_SIZE, 1); |
119 | if (ctx->signal2) | 113 | if (ctx->signal2) |
120 | unmap_mapping_range(ctx->signal2, 0, 0x4000, 1); | 114 | unmap_mapping_range(ctx->signal2, 0, PAGE_SIZE, 1); |
115 | if (ctx->mss) | ||
116 | unmap_mapping_range(ctx->mss, 0, 0x1000, 1); | ||
117 | if (ctx->psmap) | ||
118 | unmap_mapping_range(ctx->psmap, 0, 0x20000, 1); | ||
121 | } | 119 | } |
122 | 120 | ||
121 | /** | ||
122 | * spu_acquire_exclusive - lock spu contex and protect against userspace access | ||
123 | * @ctx: spu contex to lock | ||
124 | * | ||
125 | * Note: | ||
126 | * Returns 0 and with the context locked on success | ||
127 | * Returns negative error and with the context _unlocked_ on failure. | ||
128 | */ | ||
123 | int spu_acquire_exclusive(struct spu_context *ctx) | 129 | int spu_acquire_exclusive(struct spu_context *ctx) |
124 | { | 130 | { |
125 | int ret = 0; | 131 | int ret = -EINVAL; |
126 | 132 | ||
127 | down_write(&ctx->state_sema); | 133 | spu_acquire(ctx); |
128 | /* ctx is about to be freed, can't acquire any more */ | 134 | /* |
129 | if (!ctx->owner) { | 135 | * Context is about to be freed, so we can't acquire it anymore. |
130 | ret = -EINVAL; | 136 | */ |
131 | goto out; | 137 | if (!ctx->owner) |
132 | } | 138 | goto out_unlock; |
133 | 139 | ||
134 | if (ctx->state == SPU_STATE_SAVED) { | 140 | if (ctx->state == SPU_STATE_SAVED) { |
135 | ret = spu_activate(ctx, 0); | 141 | ret = spu_activate(ctx, 0); |
136 | if (ret) | 142 | if (ret) |
137 | goto out; | 143 | goto out_unlock; |
138 | ctx->state = SPU_STATE_RUNNABLE; | ||
139 | } else { | 144 | } else { |
140 | /* We need to exclude userspace access to the context. */ | 145 | /* |
146 | * We need to exclude userspace access to the context. | ||
147 | * | ||
148 | * To protect against memory access we invalidate all ptes | ||
149 | * and make sure the pagefault handlers block on the mutex. | ||
150 | */ | ||
141 | spu_unmap_mappings(ctx); | 151 | spu_unmap_mappings(ctx); |
142 | } | 152 | } |
143 | 153 | ||
144 | out: | 154 | return 0; |
145 | if (ret) | 155 | |
146 | up_write(&ctx->state_sema); | 156 | out_unlock: |
157 | spu_release(ctx); | ||
147 | return ret; | 158 | return ret; |
148 | } | 159 | } |
149 | 160 | ||
150 | int spu_acquire_runnable(struct spu_context *ctx) | 161 | /** |
162 | * spu_acquire_runnable - lock spu contex and make sure it is in runnable state | ||
163 | * @ctx: spu contex to lock | ||
164 | * | ||
165 | * Note: | ||
166 | * Returns 0 and with the context locked on success | ||
167 | * Returns negative error and with the context _unlocked_ on failure. | ||
168 | */ | ||
169 | int spu_acquire_runnable(struct spu_context *ctx, unsigned long flags) | ||
151 | { | 170 | { |
152 | int ret = 0; | 171 | int ret = -EINVAL; |
153 | |||
154 | down_read(&ctx->state_sema); | ||
155 | if (ctx->state == SPU_STATE_RUNNABLE) { | ||
156 | ctx->spu->prio = current->prio; | ||
157 | return 0; | ||
158 | } | ||
159 | up_read(&ctx->state_sema); | ||
160 | |||
161 | down_write(&ctx->state_sema); | ||
162 | /* ctx is about to be freed, can't acquire any more */ | ||
163 | if (!ctx->owner) { | ||
164 | ret = -EINVAL; | ||
165 | goto out; | ||
166 | } | ||
167 | 172 | ||
173 | spu_acquire(ctx); | ||
168 | if (ctx->state == SPU_STATE_SAVED) { | 174 | if (ctx->state == SPU_STATE_SAVED) { |
169 | ret = spu_activate(ctx, 0); | 175 | /* |
176 | * Context is about to be freed, so we can't acquire it anymore. | ||
177 | */ | ||
178 | if (!ctx->owner) | ||
179 | goto out_unlock; | ||
180 | ret = spu_activate(ctx, flags); | ||
170 | if (ret) | 181 | if (ret) |
171 | goto out; | 182 | goto out_unlock; |
172 | ctx->state = SPU_STATE_RUNNABLE; | ||
173 | } | 183 | } |
174 | 184 | ||
175 | downgrade_write(&ctx->state_sema); | 185 | return 0; |
176 | /* On success, we return holding the lock */ | ||
177 | |||
178 | return ret; | ||
179 | out: | ||
180 | /* Release here, to simplify calling code. */ | ||
181 | up_write(&ctx->state_sema); | ||
182 | 186 | ||
187 | out_unlock: | ||
188 | spu_release(ctx); | ||
183 | return ret; | 189 | return ret; |
184 | } | 190 | } |
185 | 191 | ||
192 | /** | ||
193 | * spu_acquire_saved - lock spu contex and make sure it is in saved state | ||
194 | * @ctx: spu contex to lock | ||
195 | */ | ||
186 | void spu_acquire_saved(struct spu_context *ctx) | 196 | void spu_acquire_saved(struct spu_context *ctx) |
187 | { | 197 | { |
188 | down_read(&ctx->state_sema); | 198 | spu_acquire(ctx); |
189 | 199 | if (ctx->state != SPU_STATE_SAVED) | |
190 | if (ctx->state == SPU_STATE_SAVED) | ||
191 | return; | ||
192 | |||
193 | up_read(&ctx->state_sema); | ||
194 | down_write(&ctx->state_sema); | ||
195 | |||
196 | if (ctx->state == SPU_STATE_RUNNABLE) { | ||
197 | spu_deactivate(ctx); | 200 | spu_deactivate(ctx); |
198 | ctx->state = SPU_STATE_SAVED; | ||
199 | } | ||
200 | |||
201 | downgrade_write(&ctx->state_sema); | ||
202 | } | 201 | } |
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index af9e9455a706..b00653d69c01 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -45,8 +45,8 @@ spufs_mem_open(struct inode *inode, struct file *file) | |||
45 | struct spufs_inode_info *i = SPUFS_I(inode); | 45 | struct spufs_inode_info *i = SPUFS_I(inode); |
46 | struct spu_context *ctx = i->i_ctx; | 46 | struct spu_context *ctx = i->i_ctx; |
47 | file->private_data = ctx; | 47 | file->private_data = ctx; |
48 | file->f_mapping = inode->i_mapping; | ||
49 | ctx->local_store = inode->i_mapping; | 48 | ctx->local_store = inode->i_mapping; |
49 | smp_wmb(); | ||
50 | return 0; | 50 | return 0; |
51 | } | 51 | } |
52 | 52 | ||
@@ -95,39 +95,38 @@ spufs_mem_write(struct file *file, const char __user *buffer, | |||
95 | return ret; | 95 | return ret; |
96 | } | 96 | } |
97 | 97 | ||
98 | static struct page * | 98 | static unsigned long spufs_mem_mmap_nopfn(struct vm_area_struct *vma, |
99 | spufs_mem_mmap_nopage(struct vm_area_struct *vma, | 99 | unsigned long address) |
100 | unsigned long address, int *type) | ||
101 | { | 100 | { |
102 | struct page *page = NOPAGE_SIGBUS; | ||
103 | |||
104 | struct spu_context *ctx = vma->vm_file->private_data; | 101 | struct spu_context *ctx = vma->vm_file->private_data; |
105 | unsigned long offset = address - vma->vm_start; | 102 | unsigned long pfn, offset = address - vma->vm_start; |
103 | |||
106 | offset += vma->vm_pgoff << PAGE_SHIFT; | 104 | offset += vma->vm_pgoff << PAGE_SHIFT; |
107 | 105 | ||
106 | if (offset >= LS_SIZE) | ||
107 | return NOPFN_SIGBUS; | ||
108 | |||
108 | spu_acquire(ctx); | 109 | spu_acquire(ctx); |
109 | 110 | ||
110 | if (ctx->state == SPU_STATE_SAVED) { | 111 | if (ctx->state == SPU_STATE_SAVED) { |
111 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 112 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
112 | & ~_PAGE_NO_CACHE); | 113 | & ~_PAGE_NO_CACHE); |
113 | page = vmalloc_to_page(ctx->csa.lscsa->ls + offset); | 114 | pfn = vmalloc_to_pfn(ctx->csa.lscsa->ls + offset); |
114 | } else { | 115 | } else { |
115 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 116 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
116 | | _PAGE_NO_CACHE); | 117 | | _PAGE_NO_CACHE); |
117 | page = pfn_to_page((ctx->spu->local_store_phys + offset) | 118 | pfn = (ctx->spu->local_store_phys + offset) >> PAGE_SHIFT; |
118 | >> PAGE_SHIFT); | ||
119 | } | 119 | } |
120 | spu_release(ctx); | 120 | vm_insert_pfn(vma, address, pfn); |
121 | 121 | ||
122 | if (type) | 122 | spu_release(ctx); |
123 | *type = VM_FAULT_MINOR; | ||
124 | 123 | ||
125 | page_cache_get(page); | 124 | return NOPFN_REFAULT; |
126 | return page; | ||
127 | } | 125 | } |
128 | 126 | ||
127 | |||
129 | static struct vm_operations_struct spufs_mem_mmap_vmops = { | 128 | static struct vm_operations_struct spufs_mem_mmap_vmops = { |
130 | .nopage = spufs_mem_mmap_nopage, | 129 | .nopfn = spufs_mem_mmap_nopfn, |
131 | }; | 130 | }; |
132 | 131 | ||
133 | static int | 132 | static int |
@@ -136,7 +135,7 @@ spufs_mem_mmap(struct file *file, struct vm_area_struct *vma) | |||
136 | if (!(vma->vm_flags & VM_SHARED)) | 135 | if (!(vma->vm_flags & VM_SHARED)) |
137 | return -EINVAL; | 136 | return -EINVAL; |
138 | 137 | ||
139 | vma->vm_flags |= VM_IO; | 138 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
140 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 139 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
141 | | _PAGE_NO_CACHE); | 140 | | _PAGE_NO_CACHE); |
142 | 141 | ||
@@ -152,49 +151,42 @@ static const struct file_operations spufs_mem_fops = { | |||
152 | .mmap = spufs_mem_mmap, | 151 | .mmap = spufs_mem_mmap, |
153 | }; | 152 | }; |
154 | 153 | ||
155 | static struct page *spufs_ps_nopage(struct vm_area_struct *vma, | 154 | static unsigned long spufs_ps_nopfn(struct vm_area_struct *vma, |
156 | unsigned long address, | 155 | unsigned long address, |
157 | int *type, unsigned long ps_offs, | 156 | unsigned long ps_offs, |
158 | unsigned long ps_size) | 157 | unsigned long ps_size) |
159 | { | 158 | { |
160 | struct page *page = NOPAGE_SIGBUS; | ||
161 | int fault_type = VM_FAULT_SIGBUS; | ||
162 | struct spu_context *ctx = vma->vm_file->private_data; | 159 | struct spu_context *ctx = vma->vm_file->private_data; |
163 | unsigned long offset = address - vma->vm_start; | 160 | unsigned long area, offset = address - vma->vm_start; |
164 | unsigned long area; | ||
165 | int ret; | 161 | int ret; |
166 | 162 | ||
167 | offset += vma->vm_pgoff << PAGE_SHIFT; | 163 | offset += vma->vm_pgoff << PAGE_SHIFT; |
168 | if (offset >= ps_size) | 164 | if (offset >= ps_size) |
169 | goto out; | 165 | return NOPFN_SIGBUS; |
170 | 166 | ||
171 | ret = spu_acquire_runnable(ctx); | 167 | /* error here usually means a signal.. we might want to test |
168 | * the error code more precisely though | ||
169 | */ | ||
170 | ret = spu_acquire_runnable(ctx, 0); | ||
172 | if (ret) | 171 | if (ret) |
173 | goto out; | 172 | return NOPFN_REFAULT; |
174 | 173 | ||
175 | area = ctx->spu->problem_phys + ps_offs; | 174 | area = ctx->spu->problem_phys + ps_offs; |
176 | page = pfn_to_page((area + offset) >> PAGE_SHIFT); | 175 | vm_insert_pfn(vma, address, (area + offset) >> PAGE_SHIFT); |
177 | fault_type = VM_FAULT_MINOR; | ||
178 | page_cache_get(page); | ||
179 | |||
180 | spu_release(ctx); | 176 | spu_release(ctx); |
181 | 177 | ||
182 | out: | 178 | return NOPFN_REFAULT; |
183 | if (type) | ||
184 | *type = fault_type; | ||
185 | |||
186 | return page; | ||
187 | } | 179 | } |
188 | 180 | ||
189 | #if SPUFS_MMAP_4K | 181 | #if SPUFS_MMAP_4K |
190 | static struct page *spufs_cntl_mmap_nopage(struct vm_area_struct *vma, | 182 | static unsigned long spufs_cntl_mmap_nopfn(struct vm_area_struct *vma, |
191 | unsigned long address, int *type) | 183 | unsigned long address) |
192 | { | 184 | { |
193 | return spufs_ps_nopage(vma, address, type, 0x4000, 0x1000); | 185 | return spufs_ps_nopfn(vma, address, 0x4000, 0x1000); |
194 | } | 186 | } |
195 | 187 | ||
196 | static struct vm_operations_struct spufs_cntl_mmap_vmops = { | 188 | static struct vm_operations_struct spufs_cntl_mmap_vmops = { |
197 | .nopage = spufs_cntl_mmap_nopage, | 189 | .nopfn = spufs_cntl_mmap_nopfn, |
198 | }; | 190 | }; |
199 | 191 | ||
200 | /* | 192 | /* |
@@ -205,7 +197,7 @@ static int spufs_cntl_mmap(struct file *file, struct vm_area_struct *vma) | |||
205 | if (!(vma->vm_flags & VM_SHARED)) | 197 | if (!(vma->vm_flags & VM_SHARED)) |
206 | return -EINVAL; | 198 | return -EINVAL; |
207 | 199 | ||
208 | vma->vm_flags |= VM_IO; | 200 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
209 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 201 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
210 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 202 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
211 | 203 | ||
@@ -243,8 +235,8 @@ static int spufs_cntl_open(struct inode *inode, struct file *file) | |||
243 | struct spu_context *ctx = i->i_ctx; | 235 | struct spu_context *ctx = i->i_ctx; |
244 | 236 | ||
245 | file->private_data = ctx; | 237 | file->private_data = ctx; |
246 | file->f_mapping = inode->i_mapping; | ||
247 | ctx->cntl = inode->i_mapping; | 238 | ctx->cntl = inode->i_mapping; |
239 | smp_wmb(); | ||
248 | return simple_attr_open(inode, file, spufs_cntl_get, | 240 | return simple_attr_open(inode, file, spufs_cntl_get, |
249 | spufs_cntl_set, "0x%08lx"); | 241 | spufs_cntl_set, "0x%08lx"); |
250 | } | 242 | } |
@@ -728,8 +720,8 @@ static int spufs_signal1_open(struct inode *inode, struct file *file) | |||
728 | struct spufs_inode_info *i = SPUFS_I(inode); | 720 | struct spufs_inode_info *i = SPUFS_I(inode); |
729 | struct spu_context *ctx = i->i_ctx; | 721 | struct spu_context *ctx = i->i_ctx; |
730 | file->private_data = ctx; | 722 | file->private_data = ctx; |
731 | file->f_mapping = inode->i_mapping; | ||
732 | ctx->signal1 = inode->i_mapping; | 723 | ctx->signal1 = inode->i_mapping; |
724 | smp_wmb(); | ||
733 | return nonseekable_open(inode, file); | 725 | return nonseekable_open(inode, file); |
734 | } | 726 | } |
735 | 727 | ||
@@ -791,23 +783,23 @@ static ssize_t spufs_signal1_write(struct file *file, const char __user *buf, | |||
791 | return 4; | 783 | return 4; |
792 | } | 784 | } |
793 | 785 | ||
794 | static struct page *spufs_signal1_mmap_nopage(struct vm_area_struct *vma, | 786 | static unsigned long spufs_signal1_mmap_nopfn(struct vm_area_struct *vma, |
795 | unsigned long address, int *type) | 787 | unsigned long address) |
796 | { | 788 | { |
797 | #if PAGE_SIZE == 0x1000 | 789 | #if PAGE_SIZE == 0x1000 |
798 | return spufs_ps_nopage(vma, address, type, 0x14000, 0x1000); | 790 | return spufs_ps_nopfn(vma, address, 0x14000, 0x1000); |
799 | #elif PAGE_SIZE == 0x10000 | 791 | #elif PAGE_SIZE == 0x10000 |
800 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole | 792 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole |
801 | * signal 1 and 2 area | 793 | * signal 1 and 2 area |
802 | */ | 794 | */ |
803 | return spufs_ps_nopage(vma, address, type, 0x10000, 0x10000); | 795 | return spufs_ps_nopfn(vma, address, 0x10000, 0x10000); |
804 | #else | 796 | #else |
805 | #error unsupported page size | 797 | #error unsupported page size |
806 | #endif | 798 | #endif |
807 | } | 799 | } |
808 | 800 | ||
809 | static struct vm_operations_struct spufs_signal1_mmap_vmops = { | 801 | static struct vm_operations_struct spufs_signal1_mmap_vmops = { |
810 | .nopage = spufs_signal1_mmap_nopage, | 802 | .nopfn = spufs_signal1_mmap_nopfn, |
811 | }; | 803 | }; |
812 | 804 | ||
813 | static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) | 805 | static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) |
@@ -815,7 +807,7 @@ static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) | |||
815 | if (!(vma->vm_flags & VM_SHARED)) | 807 | if (!(vma->vm_flags & VM_SHARED)) |
816 | return -EINVAL; | 808 | return -EINVAL; |
817 | 809 | ||
818 | vma->vm_flags |= VM_IO; | 810 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
819 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 811 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
820 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 812 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
821 | 813 | ||
@@ -835,8 +827,8 @@ static int spufs_signal2_open(struct inode *inode, struct file *file) | |||
835 | struct spufs_inode_info *i = SPUFS_I(inode); | 827 | struct spufs_inode_info *i = SPUFS_I(inode); |
836 | struct spu_context *ctx = i->i_ctx; | 828 | struct spu_context *ctx = i->i_ctx; |
837 | file->private_data = ctx; | 829 | file->private_data = ctx; |
838 | file->f_mapping = inode->i_mapping; | ||
839 | ctx->signal2 = inode->i_mapping; | 830 | ctx->signal2 = inode->i_mapping; |
831 | smp_wmb(); | ||
840 | return nonseekable_open(inode, file); | 832 | return nonseekable_open(inode, file); |
841 | } | 833 | } |
842 | 834 | ||
@@ -899,23 +891,23 @@ static ssize_t spufs_signal2_write(struct file *file, const char __user *buf, | |||
899 | } | 891 | } |
900 | 892 | ||
901 | #if SPUFS_MMAP_4K | 893 | #if SPUFS_MMAP_4K |
902 | static struct page *spufs_signal2_mmap_nopage(struct vm_area_struct *vma, | 894 | static unsigned long spufs_signal2_mmap_nopfn(struct vm_area_struct *vma, |
903 | unsigned long address, int *type) | 895 | unsigned long address) |
904 | { | 896 | { |
905 | #if PAGE_SIZE == 0x1000 | 897 | #if PAGE_SIZE == 0x1000 |
906 | return spufs_ps_nopage(vma, address, type, 0x1c000, 0x1000); | 898 | return spufs_ps_nopfn(vma, address, 0x1c000, 0x1000); |
907 | #elif PAGE_SIZE == 0x10000 | 899 | #elif PAGE_SIZE == 0x10000 |
908 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole | 900 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole |
909 | * signal 1 and 2 area | 901 | * signal 1 and 2 area |
910 | */ | 902 | */ |
911 | return spufs_ps_nopage(vma, address, type, 0x10000, 0x10000); | 903 | return spufs_ps_nopfn(vma, address, 0x10000, 0x10000); |
912 | #else | 904 | #else |
913 | #error unsupported page size | 905 | #error unsupported page size |
914 | #endif | 906 | #endif |
915 | } | 907 | } |
916 | 908 | ||
917 | static struct vm_operations_struct spufs_signal2_mmap_vmops = { | 909 | static struct vm_operations_struct spufs_signal2_mmap_vmops = { |
918 | .nopage = spufs_signal2_mmap_nopage, | 910 | .nopfn = spufs_signal2_mmap_nopfn, |
919 | }; | 911 | }; |
920 | 912 | ||
921 | static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) | 913 | static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) |
@@ -923,7 +915,7 @@ static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) | |||
923 | if (!(vma->vm_flags & VM_SHARED)) | 915 | if (!(vma->vm_flags & VM_SHARED)) |
924 | return -EINVAL; | 916 | return -EINVAL; |
925 | 917 | ||
926 | vma->vm_flags |= VM_IO; | 918 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
927 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 919 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
928 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 920 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
929 | 921 | ||
@@ -1000,14 +992,14 @@ DEFINE_SIMPLE_ATTRIBUTE(spufs_signal2_type, spufs_signal2_type_get, | |||
1000 | spufs_signal2_type_set, "%llu"); | 992 | spufs_signal2_type_set, "%llu"); |
1001 | 993 | ||
1002 | #if SPUFS_MMAP_4K | 994 | #if SPUFS_MMAP_4K |
1003 | static struct page *spufs_mss_mmap_nopage(struct vm_area_struct *vma, | 995 | static unsigned long spufs_mss_mmap_nopfn(struct vm_area_struct *vma, |
1004 | unsigned long address, int *type) | 996 | unsigned long address) |
1005 | { | 997 | { |
1006 | return spufs_ps_nopage(vma, address, type, 0x0000, 0x1000); | 998 | return spufs_ps_nopfn(vma, address, 0x0000, 0x1000); |
1007 | } | 999 | } |
1008 | 1000 | ||
1009 | static struct vm_operations_struct spufs_mss_mmap_vmops = { | 1001 | static struct vm_operations_struct spufs_mss_mmap_vmops = { |
1010 | .nopage = spufs_mss_mmap_nopage, | 1002 | .nopfn = spufs_mss_mmap_nopfn, |
1011 | }; | 1003 | }; |
1012 | 1004 | ||
1013 | /* | 1005 | /* |
@@ -1018,7 +1010,7 @@ static int spufs_mss_mmap(struct file *file, struct vm_area_struct *vma) | |||
1018 | if (!(vma->vm_flags & VM_SHARED)) | 1010 | if (!(vma->vm_flags & VM_SHARED)) |
1019 | return -EINVAL; | 1011 | return -EINVAL; |
1020 | 1012 | ||
1021 | vma->vm_flags |= VM_IO; | 1013 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
1022 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 1014 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
1023 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 1015 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
1024 | 1016 | ||
@@ -1032,8 +1024,11 @@ static int spufs_mss_mmap(struct file *file, struct vm_area_struct *vma) | |||
1032 | static int spufs_mss_open(struct inode *inode, struct file *file) | 1024 | static int spufs_mss_open(struct inode *inode, struct file *file) |
1033 | { | 1025 | { |
1034 | struct spufs_inode_info *i = SPUFS_I(inode); | 1026 | struct spufs_inode_info *i = SPUFS_I(inode); |
1027 | struct spu_context *ctx = i->i_ctx; | ||
1035 | 1028 | ||
1036 | file->private_data = i->i_ctx; | 1029 | file->private_data = i->i_ctx; |
1030 | ctx->mss = inode->i_mapping; | ||
1031 | smp_wmb(); | ||
1037 | return nonseekable_open(inode, file); | 1032 | return nonseekable_open(inode, file); |
1038 | } | 1033 | } |
1039 | 1034 | ||
@@ -1042,14 +1037,14 @@ static const struct file_operations spufs_mss_fops = { | |||
1042 | .mmap = spufs_mss_mmap, | 1037 | .mmap = spufs_mss_mmap, |
1043 | }; | 1038 | }; |
1044 | 1039 | ||
1045 | static struct page *spufs_psmap_mmap_nopage(struct vm_area_struct *vma, | 1040 | static unsigned long spufs_psmap_mmap_nopfn(struct vm_area_struct *vma, |
1046 | unsigned long address, int *type) | 1041 | unsigned long address) |
1047 | { | 1042 | { |
1048 | return spufs_ps_nopage(vma, address, type, 0x0000, 0x20000); | 1043 | return spufs_ps_nopfn(vma, address, 0x0000, 0x20000); |
1049 | } | 1044 | } |
1050 | 1045 | ||
1051 | static struct vm_operations_struct spufs_psmap_mmap_vmops = { | 1046 | static struct vm_operations_struct spufs_psmap_mmap_vmops = { |
1052 | .nopage = spufs_psmap_mmap_nopage, | 1047 | .nopfn = spufs_psmap_mmap_nopfn, |
1053 | }; | 1048 | }; |
1054 | 1049 | ||
1055 | /* | 1050 | /* |
@@ -1060,7 +1055,7 @@ static int spufs_psmap_mmap(struct file *file, struct vm_area_struct *vma) | |||
1060 | if (!(vma->vm_flags & VM_SHARED)) | 1055 | if (!(vma->vm_flags & VM_SHARED)) |
1061 | return -EINVAL; | 1056 | return -EINVAL; |
1062 | 1057 | ||
1063 | vma->vm_flags |= VM_IO; | 1058 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
1064 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 1059 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
1065 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 1060 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
1066 | 1061 | ||
@@ -1071,8 +1066,11 @@ static int spufs_psmap_mmap(struct file *file, struct vm_area_struct *vma) | |||
1071 | static int spufs_psmap_open(struct inode *inode, struct file *file) | 1066 | static int spufs_psmap_open(struct inode *inode, struct file *file) |
1072 | { | 1067 | { |
1073 | struct spufs_inode_info *i = SPUFS_I(inode); | 1068 | struct spufs_inode_info *i = SPUFS_I(inode); |
1069 | struct spu_context *ctx = i->i_ctx; | ||
1074 | 1070 | ||
1075 | file->private_data = i->i_ctx; | 1071 | file->private_data = i->i_ctx; |
1072 | ctx->psmap = inode->i_mapping; | ||
1073 | smp_wmb(); | ||
1076 | return nonseekable_open(inode, file); | 1074 | return nonseekable_open(inode, file); |
1077 | } | 1075 | } |
1078 | 1076 | ||
@@ -1083,14 +1081,14 @@ static const struct file_operations spufs_psmap_fops = { | |||
1083 | 1081 | ||
1084 | 1082 | ||
1085 | #if SPUFS_MMAP_4K | 1083 | #if SPUFS_MMAP_4K |
1086 | static struct page *spufs_mfc_mmap_nopage(struct vm_area_struct *vma, | 1084 | static unsigned long spufs_mfc_mmap_nopfn(struct vm_area_struct *vma, |
1087 | unsigned long address, int *type) | 1085 | unsigned long address) |
1088 | { | 1086 | { |
1089 | return spufs_ps_nopage(vma, address, type, 0x3000, 0x1000); | 1087 | return spufs_ps_nopfn(vma, address, 0x3000, 0x1000); |
1090 | } | 1088 | } |
1091 | 1089 | ||
1092 | static struct vm_operations_struct spufs_mfc_mmap_vmops = { | 1090 | static struct vm_operations_struct spufs_mfc_mmap_vmops = { |
1093 | .nopage = spufs_mfc_mmap_nopage, | 1091 | .nopfn = spufs_mfc_mmap_nopfn, |
1094 | }; | 1092 | }; |
1095 | 1093 | ||
1096 | /* | 1094 | /* |
@@ -1101,7 +1099,7 @@ static int spufs_mfc_mmap(struct file *file, struct vm_area_struct *vma) | |||
1101 | if (!(vma->vm_flags & VM_SHARED)) | 1099 | if (!(vma->vm_flags & VM_SHARED)) |
1102 | return -EINVAL; | 1100 | return -EINVAL; |
1103 | 1101 | ||
1104 | vma->vm_flags |= VM_IO; | 1102 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
1105 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 1103 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
1106 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 1104 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
1107 | 1105 | ||
@@ -1125,6 +1123,8 @@ static int spufs_mfc_open(struct inode *inode, struct file *file) | |||
1125 | return -EBUSY; | 1123 | return -EBUSY; |
1126 | 1124 | ||
1127 | file->private_data = ctx; | 1125 | file->private_data = ctx; |
1126 | ctx->mfc = inode->i_mapping; | ||
1127 | smp_wmb(); | ||
1128 | return nonseekable_open(inode, file); | 1128 | return nonseekable_open(inode, file); |
1129 | } | 1129 | } |
1130 | 1130 | ||
@@ -1309,7 +1309,7 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer, | |||
1309 | if (ret) | 1309 | if (ret) |
1310 | goto out; | 1310 | goto out; |
1311 | 1311 | ||
1312 | spu_acquire_runnable(ctx); | 1312 | spu_acquire_runnable(ctx, 0); |
1313 | if (file->f_flags & O_NONBLOCK) { | 1313 | if (file->f_flags & O_NONBLOCK) { |
1314 | ret = ctx->ops->send_mfc_command(ctx, &cmd); | 1314 | ret = ctx->ops->send_mfc_command(ctx, &cmd); |
1315 | } else { | 1315 | } else { |
diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c index 1acc2ffef8c8..353a8fa07ab8 100644 --- a/arch/powerpc/platforms/cell/spufs/run.c +++ b/arch/powerpc/platforms/cell/spufs/run.c | |||
@@ -133,7 +133,7 @@ out_drop_priv: | |||
133 | spu_mfc_sr1_set(ctx->spu, sr1); | 133 | spu_mfc_sr1_set(ctx->spu, sr1); |
134 | 134 | ||
135 | out_unlock: | 135 | out_unlock: |
136 | spu_release_exclusive(ctx); | 136 | spu_release(ctx); |
137 | out: | 137 | out: |
138 | return ret; | 138 | return ret; |
139 | } | 139 | } |
@@ -143,7 +143,7 @@ static inline int spu_run_init(struct spu_context *ctx, u32 * npc) | |||
143 | int ret; | 143 | int ret; |
144 | unsigned long runcntl = SPU_RUNCNTL_RUNNABLE; | 144 | unsigned long runcntl = SPU_RUNCNTL_RUNNABLE; |
145 | 145 | ||
146 | ret = spu_acquire_runnable(ctx); | 146 | ret = spu_acquire_runnable(ctx, SPU_ACTIVATE_NOWAKE); |
147 | if (ret) | 147 | if (ret) |
148 | return ret; | 148 | return ret; |
149 | 149 | ||
@@ -155,7 +155,7 @@ static inline int spu_run_init(struct spu_context *ctx, u32 * npc) | |||
155 | spu_release(ctx); | 155 | spu_release(ctx); |
156 | ret = spu_setup_isolated(ctx); | 156 | ret = spu_setup_isolated(ctx); |
157 | if (!ret) | 157 | if (!ret) |
158 | ret = spu_acquire_runnable(ctx); | 158 | ret = spu_acquire_runnable(ctx, SPU_ACTIVATE_NOWAKE); |
159 | } | 159 | } |
160 | 160 | ||
161 | /* if userspace has set the runcntrl register (eg, to issue an | 161 | /* if userspace has set the runcntrl register (eg, to issue an |
@@ -164,8 +164,10 @@ static inline int spu_run_init(struct spu_context *ctx, u32 * npc) | |||
164 | (SPU_RUNCNTL_RUNNABLE | SPU_RUNCNTL_ISOLATE); | 164 | (SPU_RUNCNTL_RUNNABLE | SPU_RUNCNTL_ISOLATE); |
165 | if (runcntl == 0) | 165 | if (runcntl == 0) |
166 | runcntl = SPU_RUNCNTL_RUNNABLE; | 166 | runcntl = SPU_RUNCNTL_RUNNABLE; |
167 | } else | 167 | } else { |
168 | spu_start_tick(ctx); | ||
168 | ctx->ops->npc_write(ctx, *npc); | 169 | ctx->ops->npc_write(ctx, *npc); |
170 | } | ||
169 | 171 | ||
170 | ctx->ops->runcntl_write(ctx, runcntl); | 172 | ctx->ops->runcntl_write(ctx, runcntl); |
171 | return ret; | 173 | return ret; |
@@ -176,6 +178,7 @@ static inline int spu_run_fini(struct spu_context *ctx, u32 * npc, | |||
176 | { | 178 | { |
177 | int ret = 0; | 179 | int ret = 0; |
178 | 180 | ||
181 | spu_stop_tick(ctx); | ||
179 | *status = ctx->ops->status_read(ctx); | 182 | *status = ctx->ops->status_read(ctx); |
180 | *npc = ctx->ops->npc_read(ctx); | 183 | *npc = ctx->ops->npc_read(ctx); |
181 | spu_release(ctx); | 184 | spu_release(ctx); |
@@ -329,8 +332,10 @@ long spufs_run_spu(struct file *file, struct spu_context *ctx, | |||
329 | } | 332 | } |
330 | if (unlikely(ctx->state != SPU_STATE_RUNNABLE)) { | 333 | if (unlikely(ctx->state != SPU_STATE_RUNNABLE)) { |
331 | ret = spu_reacquire_runnable(ctx, npc, &status); | 334 | ret = spu_reacquire_runnable(ctx, npc, &status); |
332 | if (ret) | 335 | if (ret) { |
336 | spu_stop_tick(ctx); | ||
333 | goto out2; | 337 | goto out2; |
338 | } | ||
334 | continue; | 339 | continue; |
335 | } | 340 | } |
336 | ret = spu_process_events(ctx); | 341 | ret = spu_process_events(ctx); |
@@ -361,4 +366,3 @@ out: | |||
361 | up(&ctx->run_sema); | 366 | up(&ctx->run_sema); |
362 | return ret; | 367 | return ret; |
363 | } | 368 | } |
364 | |||
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index bd6fe4b7a84b..2f25e68b4bac 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c | |||
@@ -44,17 +44,18 @@ | |||
44 | #include <asm/spu_priv1.h> | 44 | #include <asm/spu_priv1.h> |
45 | #include "spufs.h" | 45 | #include "spufs.h" |
46 | 46 | ||
47 | #define SPU_MIN_TIMESLICE (100 * HZ / 1000) | 47 | #define SPU_TIMESLICE (HZ) |
48 | 48 | ||
49 | #define SPU_BITMAP_SIZE (((MAX_PRIO+BITS_PER_LONG)/BITS_PER_LONG)+1) | ||
50 | struct spu_prio_array { | 49 | struct spu_prio_array { |
51 | unsigned long bitmap[SPU_BITMAP_SIZE]; | 50 | DECLARE_BITMAP(bitmap, MAX_PRIO); |
52 | wait_queue_head_t waitq[MAX_PRIO]; | 51 | struct list_head runq[MAX_PRIO]; |
52 | spinlock_t runq_lock; | ||
53 | struct list_head active_list[MAX_NUMNODES]; | 53 | struct list_head active_list[MAX_NUMNODES]; |
54 | struct mutex active_mutex[MAX_NUMNODES]; | 54 | struct mutex active_mutex[MAX_NUMNODES]; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static struct spu_prio_array *spu_prio; | 57 | static struct spu_prio_array *spu_prio; |
58 | static struct workqueue_struct *spu_sched_wq; | ||
58 | 59 | ||
59 | static inline int node_allowed(int node) | 60 | static inline int node_allowed(int node) |
60 | { | 61 | { |
@@ -68,6 +69,64 @@ static inline int node_allowed(int node) | |||
68 | return 1; | 69 | return 1; |
69 | } | 70 | } |
70 | 71 | ||
72 | void spu_start_tick(struct spu_context *ctx) | ||
73 | { | ||
74 | if (ctx->policy == SCHED_RR) | ||
75 | queue_delayed_work(spu_sched_wq, &ctx->sched_work, SPU_TIMESLICE); | ||
76 | } | ||
77 | |||
78 | void spu_stop_tick(struct spu_context *ctx) | ||
79 | { | ||
80 | if (ctx->policy == SCHED_RR) | ||
81 | cancel_delayed_work(&ctx->sched_work); | ||
82 | } | ||
83 | |||
84 | void spu_sched_tick(struct work_struct *work) | ||
85 | { | ||
86 | struct spu_context *ctx = | ||
87 | container_of(work, struct spu_context, sched_work.work); | ||
88 | struct spu *spu; | ||
89 | int rearm = 1; | ||
90 | |||
91 | mutex_lock(&ctx->state_mutex); | ||
92 | spu = ctx->spu; | ||
93 | if (spu) { | ||
94 | int best = sched_find_first_bit(spu_prio->bitmap); | ||
95 | if (best <= ctx->prio) { | ||
96 | spu_deactivate(ctx); | ||
97 | rearm = 0; | ||
98 | } | ||
99 | } | ||
100 | mutex_unlock(&ctx->state_mutex); | ||
101 | |||
102 | if (rearm) | ||
103 | spu_start_tick(ctx); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * spu_add_to_active_list - add spu to active list | ||
108 | * @spu: spu to add to the active list | ||
109 | */ | ||
110 | static void spu_add_to_active_list(struct spu *spu) | ||
111 | { | ||
112 | mutex_lock(&spu_prio->active_mutex[spu->node]); | ||
113 | list_add_tail(&spu->list, &spu_prio->active_list[spu->node]); | ||
114 | mutex_unlock(&spu_prio->active_mutex[spu->node]); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * spu_remove_from_active_list - remove spu from active list | ||
119 | * @spu: spu to remove from the active list | ||
120 | */ | ||
121 | static void spu_remove_from_active_list(struct spu *spu) | ||
122 | { | ||
123 | int node = spu->node; | ||
124 | |||
125 | mutex_lock(&spu_prio->active_mutex[node]); | ||
126 | list_del_init(&spu->list); | ||
127 | mutex_unlock(&spu_prio->active_mutex[node]); | ||
128 | } | ||
129 | |||
71 | static inline void mm_needs_global_tlbie(struct mm_struct *mm) | 130 | static inline void mm_needs_global_tlbie(struct mm_struct *mm) |
72 | { | 131 | { |
73 | int nr = (NR_CPUS > 1) ? NR_CPUS : NR_CPUS + 1; | 132 | int nr = (NR_CPUS > 1) ? NR_CPUS : NR_CPUS + 1; |
@@ -94,8 +153,12 @@ int spu_switch_event_unregister(struct notifier_block * n) | |||
94 | return blocking_notifier_chain_unregister(&spu_switch_notifier, n); | 153 | return blocking_notifier_chain_unregister(&spu_switch_notifier, n); |
95 | } | 154 | } |
96 | 155 | ||
97 | 156 | /** | |
98 | static inline void bind_context(struct spu *spu, struct spu_context *ctx) | 157 | * spu_bind_context - bind spu context to physical spu |
158 | * @spu: physical spu to bind to | ||
159 | * @ctx: context to bind | ||
160 | */ | ||
161 | static void spu_bind_context(struct spu *spu, struct spu_context *ctx) | ||
99 | { | 162 | { |
100 | pr_debug("%s: pid=%d SPU=%d NODE=%d\n", __FUNCTION__, current->pid, | 163 | pr_debug("%s: pid=%d SPU=%d NODE=%d\n", __FUNCTION__, current->pid, |
101 | spu->number, spu->node); | 164 | spu->number, spu->node); |
@@ -104,7 +167,6 @@ static inline void bind_context(struct spu *spu, struct spu_context *ctx) | |||
104 | ctx->spu = spu; | 167 | ctx->spu = spu; |
105 | ctx->ops = &spu_hw_ops; | 168 | ctx->ops = &spu_hw_ops; |
106 | spu->pid = current->pid; | 169 | spu->pid = current->pid; |
107 | spu->prio = current->prio; | ||
108 | spu->mm = ctx->owner; | 170 | spu->mm = ctx->owner; |
109 | mm_needs_global_tlbie(spu->mm); | 171 | mm_needs_global_tlbie(spu->mm); |
110 | spu->ibox_callback = spufs_ibox_callback; | 172 | spu->ibox_callback = spufs_ibox_callback; |
@@ -118,12 +180,21 @@ static inline void bind_context(struct spu *spu, struct spu_context *ctx) | |||
118 | spu->timestamp = jiffies; | 180 | spu->timestamp = jiffies; |
119 | spu_cpu_affinity_set(spu, raw_smp_processor_id()); | 181 | spu_cpu_affinity_set(spu, raw_smp_processor_id()); |
120 | spu_switch_notify(spu, ctx); | 182 | spu_switch_notify(spu, ctx); |
183 | spu_add_to_active_list(spu); | ||
184 | ctx->state = SPU_STATE_RUNNABLE; | ||
121 | } | 185 | } |
122 | 186 | ||
123 | static inline void unbind_context(struct spu *spu, struct spu_context *ctx) | 187 | /** |
188 | * spu_unbind_context - unbind spu context from physical spu | ||
189 | * @spu: physical spu to unbind from | ||
190 | * @ctx: context to unbind | ||
191 | */ | ||
192 | static void spu_unbind_context(struct spu *spu, struct spu_context *ctx) | ||
124 | { | 193 | { |
125 | pr_debug("%s: unbind pid=%d SPU=%d NODE=%d\n", __FUNCTION__, | 194 | pr_debug("%s: unbind pid=%d SPU=%d NODE=%d\n", __FUNCTION__, |
126 | spu->pid, spu->number, spu->node); | 195 | spu->pid, spu->number, spu->node); |
196 | |||
197 | spu_remove_from_active_list(spu); | ||
127 | spu_switch_notify(spu, NULL); | 198 | spu_switch_notify(spu, NULL); |
128 | spu_unmap_mappings(ctx); | 199 | spu_unmap_mappings(ctx); |
129 | spu_save(&ctx->csa, spu); | 200 | spu_save(&ctx->csa, spu); |
@@ -136,95 +207,98 @@ static inline void unbind_context(struct spu *spu, struct spu_context *ctx) | |||
136 | spu->dma_callback = NULL; | 207 | spu->dma_callback = NULL; |
137 | spu->mm = NULL; | 208 | spu->mm = NULL; |
138 | spu->pid = 0; | 209 | spu->pid = 0; |
139 | spu->prio = MAX_PRIO; | ||
140 | ctx->ops = &spu_backing_ops; | 210 | ctx->ops = &spu_backing_ops; |
141 | ctx->spu = NULL; | 211 | ctx->spu = NULL; |
142 | spu->flags = 0; | 212 | spu->flags = 0; |
143 | spu->ctx = NULL; | 213 | spu->ctx = NULL; |
144 | } | 214 | } |
145 | 215 | ||
146 | static inline void spu_add_wq(wait_queue_head_t * wq, wait_queue_t * wait, | 216 | /** |
147 | int prio) | 217 | * spu_add_to_rq - add a context to the runqueue |
218 | * @ctx: context to add | ||
219 | */ | ||
220 | static void spu_add_to_rq(struct spu_context *ctx) | ||
148 | { | 221 | { |
149 | prepare_to_wait_exclusive(wq, wait, TASK_INTERRUPTIBLE); | 222 | spin_lock(&spu_prio->runq_lock); |
150 | set_bit(prio, spu_prio->bitmap); | 223 | list_add_tail(&ctx->rq, &spu_prio->runq[ctx->prio]); |
224 | set_bit(ctx->prio, spu_prio->bitmap); | ||
225 | spin_unlock(&spu_prio->runq_lock); | ||
151 | } | 226 | } |
152 | 227 | ||
153 | static inline void spu_del_wq(wait_queue_head_t * wq, wait_queue_t * wait, | 228 | /** |
154 | int prio) | 229 | * spu_del_from_rq - remove a context from the runqueue |
230 | * @ctx: context to remove | ||
231 | */ | ||
232 | static void spu_del_from_rq(struct spu_context *ctx) | ||
155 | { | 233 | { |
156 | u64 flags; | 234 | spin_lock(&spu_prio->runq_lock); |
157 | 235 | list_del_init(&ctx->rq); | |
158 | __set_current_state(TASK_RUNNING); | 236 | if (list_empty(&spu_prio->runq[ctx->prio])) |
159 | 237 | clear_bit(ctx->prio, spu_prio->bitmap); | |
160 | spin_lock_irqsave(&wq->lock, flags); | 238 | spin_unlock(&spu_prio->runq_lock); |
239 | } | ||
161 | 240 | ||
162 | remove_wait_queue_locked(wq, wait); | 241 | /** |
163 | if (list_empty(&wq->task_list)) | 242 | * spu_grab_context - remove one context from the runqueue |
164 | clear_bit(prio, spu_prio->bitmap); | 243 | * @prio: priority of the context to be removed |
244 | * | ||
245 | * This function removes one context from the runqueue for priority @prio. | ||
246 | * If there is more than one context with the given priority the first | ||
247 | * task on the runqueue will be taken. | ||
248 | * | ||
249 | * Returns the spu_context it just removed. | ||
250 | * | ||
251 | * Must be called with spu_prio->runq_lock held. | ||
252 | */ | ||
253 | static struct spu_context *spu_grab_context(int prio) | ||
254 | { | ||
255 | struct list_head *rq = &spu_prio->runq[prio]; | ||
165 | 256 | ||
166 | spin_unlock_irqrestore(&wq->lock, flags); | 257 | if (list_empty(rq)) |
258 | return NULL; | ||
259 | return list_entry(rq->next, struct spu_context, rq); | ||
167 | } | 260 | } |
168 | 261 | ||
169 | static void spu_prio_wait(struct spu_context *ctx, u64 flags) | 262 | static void spu_prio_wait(struct spu_context *ctx) |
170 | { | 263 | { |
171 | int prio = current->prio; | ||
172 | wait_queue_head_t *wq = &spu_prio->waitq[prio]; | ||
173 | DEFINE_WAIT(wait); | 264 | DEFINE_WAIT(wait); |
174 | 265 | ||
175 | if (ctx->spu) | 266 | set_bit(SPU_SCHED_WAKE, &ctx->sched_flags); |
176 | return; | 267 | prepare_to_wait_exclusive(&ctx->stop_wq, &wait, TASK_INTERRUPTIBLE); |
177 | |||
178 | spu_add_wq(wq, &wait, prio); | ||
179 | |||
180 | if (!signal_pending(current)) { | 268 | if (!signal_pending(current)) { |
181 | up_write(&ctx->state_sema); | 269 | mutex_unlock(&ctx->state_mutex); |
182 | pr_debug("%s: pid=%d prio=%d\n", __FUNCTION__, | ||
183 | current->pid, current->prio); | ||
184 | schedule(); | 270 | schedule(); |
185 | down_write(&ctx->state_sema); | 271 | mutex_lock(&ctx->state_mutex); |
186 | } | 272 | } |
187 | 273 | __set_current_state(TASK_RUNNING); | |
188 | spu_del_wq(wq, &wait, prio); | 274 | remove_wait_queue(&ctx->stop_wq, &wait); |
275 | clear_bit(SPU_SCHED_WAKE, &ctx->sched_flags); | ||
189 | } | 276 | } |
190 | 277 | ||
191 | static void spu_prio_wakeup(void) | 278 | /** |
279 | * spu_reschedule - try to find a runnable context for a spu | ||
280 | * @spu: spu available | ||
281 | * | ||
282 | * This function is called whenever a spu becomes idle. It looks for the | ||
283 | * most suitable runnable spu context and schedules it for execution. | ||
284 | */ | ||
285 | static void spu_reschedule(struct spu *spu) | ||
192 | { | 286 | { |
193 | int best = sched_find_first_bit(spu_prio->bitmap); | 287 | int best; |
194 | if (best < MAX_PRIO) { | ||
195 | wait_queue_head_t *wq = &spu_prio->waitq[best]; | ||
196 | wake_up_interruptible_nr(wq, 1); | ||
197 | } | ||
198 | } | ||
199 | 288 | ||
200 | static int get_active_spu(struct spu *spu) | 289 | spu_free(spu); |
201 | { | ||
202 | int node = spu->node; | ||
203 | struct spu *tmp; | ||
204 | int rc = 0; | ||
205 | 290 | ||
206 | mutex_lock(&spu_prio->active_mutex[node]); | 291 | spin_lock(&spu_prio->runq_lock); |
207 | list_for_each_entry(tmp, &spu_prio->active_list[node], list) { | 292 | best = sched_find_first_bit(spu_prio->bitmap); |
208 | if (tmp == spu) { | 293 | if (best < MAX_PRIO) { |
209 | list_del_init(&spu->list); | 294 | struct spu_context *ctx = spu_grab_context(best); |
210 | rc = 1; | 295 | if (ctx && test_bit(SPU_SCHED_WAKE, &ctx->sched_flags)) |
211 | break; | 296 | wake_up(&ctx->stop_wq); |
212 | } | ||
213 | } | 297 | } |
214 | mutex_unlock(&spu_prio->active_mutex[node]); | 298 | spin_unlock(&spu_prio->runq_lock); |
215 | return rc; | ||
216 | } | ||
217 | |||
218 | static void put_active_spu(struct spu *spu) | ||
219 | { | ||
220 | int node = spu->node; | ||
221 | |||
222 | mutex_lock(&spu_prio->active_mutex[node]); | ||
223 | list_add_tail(&spu->list, &spu_prio->active_list[node]); | ||
224 | mutex_unlock(&spu_prio->active_mutex[node]); | ||
225 | } | 299 | } |
226 | 300 | ||
227 | static struct spu *spu_get_idle(struct spu_context *ctx, u64 flags) | 301 | static struct spu *spu_get_idle(struct spu_context *ctx) |
228 | { | 302 | { |
229 | struct spu *spu = NULL; | 303 | struct spu *spu = NULL; |
230 | int node = cpu_to_node(raw_smp_processor_id()); | 304 | int node = cpu_to_node(raw_smp_processor_id()); |
@@ -241,87 +315,154 @@ static struct spu *spu_get_idle(struct spu_context *ctx, u64 flags) | |||
241 | return spu; | 315 | return spu; |
242 | } | 316 | } |
243 | 317 | ||
244 | static inline struct spu *spu_get(struct spu_context *ctx, u64 flags) | 318 | /** |
319 | * find_victim - find a lower priority context to preempt | ||
320 | * @ctx: canidate context for running | ||
321 | * | ||
322 | * Returns the freed physical spu to run the new context on. | ||
323 | */ | ||
324 | static struct spu *find_victim(struct spu_context *ctx) | ||
245 | { | 325 | { |
246 | /* Future: spu_get_idle() if possible, | 326 | struct spu_context *victim = NULL; |
247 | * otherwise try to preempt an active | 327 | struct spu *spu; |
248 | * context. | 328 | int node, n; |
329 | |||
330 | /* | ||
331 | * Look for a possible preemption candidate on the local node first. | ||
332 | * If there is no candidate look at the other nodes. This isn't | ||
333 | * exactly fair, but so far the whole spu schedule tries to keep | ||
334 | * a strong node affinity. We might want to fine-tune this in | ||
335 | * the future. | ||
249 | */ | 336 | */ |
250 | return spu_get_idle(ctx, flags); | 337 | restart: |
338 | node = cpu_to_node(raw_smp_processor_id()); | ||
339 | for (n = 0; n < MAX_NUMNODES; n++, node++) { | ||
340 | node = (node < MAX_NUMNODES) ? node : 0; | ||
341 | if (!node_allowed(node)) | ||
342 | continue; | ||
343 | |||
344 | mutex_lock(&spu_prio->active_mutex[node]); | ||
345 | list_for_each_entry(spu, &spu_prio->active_list[node], list) { | ||
346 | struct spu_context *tmp = spu->ctx; | ||
347 | |||
348 | if (tmp->rt_priority < ctx->rt_priority && | ||
349 | (!victim || tmp->rt_priority < victim->rt_priority)) | ||
350 | victim = spu->ctx; | ||
351 | } | ||
352 | mutex_unlock(&spu_prio->active_mutex[node]); | ||
353 | |||
354 | if (victim) { | ||
355 | /* | ||
356 | * This nests ctx->state_mutex, but we always lock | ||
357 | * higher priority contexts before lower priority | ||
358 | * ones, so this is safe until we introduce | ||
359 | * priority inheritance schemes. | ||
360 | */ | ||
361 | if (!mutex_trylock(&victim->state_mutex)) { | ||
362 | victim = NULL; | ||
363 | goto restart; | ||
364 | } | ||
365 | |||
366 | spu = victim->spu; | ||
367 | if (!spu) { | ||
368 | /* | ||
369 | * This race can happen because we've dropped | ||
370 | * the active list mutex. No a problem, just | ||
371 | * restart the search. | ||
372 | */ | ||
373 | mutex_unlock(&victim->state_mutex); | ||
374 | victim = NULL; | ||
375 | goto restart; | ||
376 | } | ||
377 | spu_unbind_context(spu, victim); | ||
378 | mutex_unlock(&victim->state_mutex); | ||
379 | return spu; | ||
380 | } | ||
381 | } | ||
382 | |||
383 | return NULL; | ||
251 | } | 384 | } |
252 | 385 | ||
253 | /* The three externally callable interfaces | 386 | /** |
254 | * for the scheduler begin here. | 387 | * spu_activate - find a free spu for a context and execute it |
388 | * @ctx: spu context to schedule | ||
389 | * @flags: flags (currently ignored) | ||
255 | * | 390 | * |
256 | * spu_activate - bind a context to SPU, waiting as needed. | 391 | * Tries to find a free spu to run @ctx. If no free spu is availble |
257 | * spu_deactivate - unbind a context from its SPU. | 392 | * add the context to the runqueue so it gets woken up once an spu |
258 | * spu_yield - yield an SPU if others are waiting. | 393 | * is available. |
259 | */ | 394 | */ |
260 | 395 | int spu_activate(struct spu_context *ctx, unsigned long flags) | |
261 | int spu_activate(struct spu_context *ctx, u64 flags) | ||
262 | { | 396 | { |
263 | struct spu *spu; | ||
264 | int ret = 0; | ||
265 | 397 | ||
266 | for (;;) { | 398 | if (ctx->spu) |
267 | if (ctx->spu) | 399 | return 0; |
400 | |||
401 | do { | ||
402 | struct spu *spu; | ||
403 | |||
404 | spu = spu_get_idle(ctx); | ||
405 | /* | ||
406 | * If this is a realtime thread we try to get it running by | ||
407 | * preempting a lower priority thread. | ||
408 | */ | ||
409 | if (!spu && ctx->rt_priority) | ||
410 | spu = find_victim(ctx); | ||
411 | if (spu) { | ||
412 | spu_bind_context(spu, ctx); | ||
268 | return 0; | 413 | return 0; |
269 | spu = spu_get(ctx, flags); | ||
270 | if (spu != NULL) { | ||
271 | if (ctx->spu != NULL) { | ||
272 | spu_free(spu); | ||
273 | spu_prio_wakeup(); | ||
274 | break; | ||
275 | } | ||
276 | bind_context(spu, ctx); | ||
277 | put_active_spu(spu); | ||
278 | break; | ||
279 | } | 414 | } |
280 | spu_prio_wait(ctx, flags); | 415 | |
281 | if (signal_pending(current)) { | 416 | spu_add_to_rq(ctx); |
282 | ret = -ERESTARTSYS; | 417 | if (!(flags & SPU_ACTIVATE_NOWAKE)) |
283 | spu_prio_wakeup(); | 418 | spu_prio_wait(ctx); |
284 | break; | 419 | spu_del_from_rq(ctx); |
285 | } | 420 | } while (!signal_pending(current)); |
286 | } | 421 | |
287 | return ret; | 422 | return -ERESTARTSYS; |
288 | } | 423 | } |
289 | 424 | ||
425 | /** | ||
426 | * spu_deactivate - unbind a context from it's physical spu | ||
427 | * @ctx: spu context to unbind | ||
428 | * | ||
429 | * Unbind @ctx from the physical spu it is running on and schedule | ||
430 | * the highest priority context to run on the freed physical spu. | ||
431 | */ | ||
290 | void spu_deactivate(struct spu_context *ctx) | 432 | void spu_deactivate(struct spu_context *ctx) |
291 | { | 433 | { |
292 | struct spu *spu; | 434 | struct spu *spu = ctx->spu; |
293 | int needs_idle; | ||
294 | 435 | ||
295 | spu = ctx->spu; | 436 | if (spu) { |
296 | if (!spu) | 437 | spu_unbind_context(spu, ctx); |
297 | return; | 438 | spu_reschedule(spu); |
298 | needs_idle = get_active_spu(spu); | ||
299 | unbind_context(spu, ctx); | ||
300 | if (needs_idle) { | ||
301 | spu_free(spu); | ||
302 | spu_prio_wakeup(); | ||
303 | } | 439 | } |
304 | } | 440 | } |
305 | 441 | ||
442 | /** | ||
443 | * spu_yield - yield a physical spu if others are waiting | ||
444 | * @ctx: spu context to yield | ||
445 | * | ||
446 | * Check if there is a higher priority context waiting and if yes | ||
447 | * unbind @ctx from the physical spu and schedule the highest | ||
448 | * priority context to run on the freed physical spu instead. | ||
449 | */ | ||
306 | void spu_yield(struct spu_context *ctx) | 450 | void spu_yield(struct spu_context *ctx) |
307 | { | 451 | { |
308 | struct spu *spu; | 452 | struct spu *spu; |
309 | int need_yield = 0; | 453 | int need_yield = 0; |
310 | 454 | ||
311 | if (down_write_trylock(&ctx->state_sema)) { | 455 | if (mutex_trylock(&ctx->state_mutex)) { |
312 | if ((spu = ctx->spu) != NULL) { | 456 | if ((spu = ctx->spu) != NULL) { |
313 | int best = sched_find_first_bit(spu_prio->bitmap); | 457 | int best = sched_find_first_bit(spu_prio->bitmap); |
314 | if (best < MAX_PRIO) { | 458 | if (best < MAX_PRIO) { |
315 | pr_debug("%s: yielding SPU %d NODE %d\n", | 459 | pr_debug("%s: yielding SPU %d NODE %d\n", |
316 | __FUNCTION__, spu->number, spu->node); | 460 | __FUNCTION__, spu->number, spu->node); |
317 | spu_deactivate(ctx); | 461 | spu_deactivate(ctx); |
318 | ctx->state = SPU_STATE_SAVED; | ||
319 | need_yield = 1; | 462 | need_yield = 1; |
320 | } else { | ||
321 | spu->prio = MAX_PRIO; | ||
322 | } | 463 | } |
323 | } | 464 | } |
324 | up_write(&ctx->state_sema); | 465 | mutex_unlock(&ctx->state_mutex); |
325 | } | 466 | } |
326 | if (unlikely(need_yield)) | 467 | if (unlikely(need_yield)) |
327 | yield(); | 468 | yield(); |
@@ -331,14 +472,19 @@ int __init spu_sched_init(void) | |||
331 | { | 472 | { |
332 | int i; | 473 | int i; |
333 | 474 | ||
475 | spu_sched_wq = create_singlethread_workqueue("spusched"); | ||
476 | if (!spu_sched_wq) | ||
477 | return 1; | ||
478 | |||
334 | spu_prio = kzalloc(sizeof(struct spu_prio_array), GFP_KERNEL); | 479 | spu_prio = kzalloc(sizeof(struct spu_prio_array), GFP_KERNEL); |
335 | if (!spu_prio) { | 480 | if (!spu_prio) { |
336 | printk(KERN_WARNING "%s: Unable to allocate priority queue.\n", | 481 | printk(KERN_WARNING "%s: Unable to allocate priority queue.\n", |
337 | __FUNCTION__); | 482 | __FUNCTION__); |
483 | destroy_workqueue(spu_sched_wq); | ||
338 | return 1; | 484 | return 1; |
339 | } | 485 | } |
340 | for (i = 0; i < MAX_PRIO; i++) { | 486 | for (i = 0; i < MAX_PRIO; i++) { |
341 | init_waitqueue_head(&spu_prio->waitq[i]); | 487 | INIT_LIST_HEAD(&spu_prio->runq[i]); |
342 | __clear_bit(i, spu_prio->bitmap); | 488 | __clear_bit(i, spu_prio->bitmap); |
343 | } | 489 | } |
344 | __set_bit(MAX_PRIO, spu_prio->bitmap); | 490 | __set_bit(MAX_PRIO, spu_prio->bitmap); |
@@ -346,6 +492,7 @@ int __init spu_sched_init(void) | |||
346 | mutex_init(&spu_prio->active_mutex[i]); | 492 | mutex_init(&spu_prio->active_mutex[i]); |
347 | INIT_LIST_HEAD(&spu_prio->active_list[i]); | 493 | INIT_LIST_HEAD(&spu_prio->active_list[i]); |
348 | } | 494 | } |
495 | spin_lock_init(&spu_prio->runq_lock); | ||
349 | return 0; | 496 | return 0; |
350 | } | 497 | } |
351 | 498 | ||
@@ -364,4 +511,5 @@ void __exit spu_sched_exit(void) | |||
364 | mutex_unlock(&spu_prio->active_mutex[node]); | 511 | mutex_unlock(&spu_prio->active_mutex[node]); |
365 | } | 512 | } |
366 | kfree(spu_prio); | 513 | kfree(spu_prio); |
514 | destroy_workqueue(spu_sched_wq); | ||
367 | } | 515 | } |
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index 56864469215e..0c437891dfd5 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #define SPUFS_H | 23 | #define SPUFS_H |
24 | 24 | ||
25 | #include <linux/kref.h> | 25 | #include <linux/kref.h> |
26 | #include <linux/rwsem.h> | 26 | #include <linux/mutex.h> |
27 | #include <linux/spinlock.h> | 27 | #include <linux/spinlock.h> |
28 | #include <linux/fs.h> | 28 | #include <linux/fs.h> |
29 | 29 | ||
@@ -37,11 +37,13 @@ enum { | |||
37 | }; | 37 | }; |
38 | 38 | ||
39 | struct spu_context_ops; | 39 | struct spu_context_ops; |
40 | |||
41 | #define SPU_CONTEXT_PREEMPT 0UL | ||
42 | |||
43 | struct spu_gang; | 40 | struct spu_gang; |
44 | 41 | ||
42 | /* ctx->sched_flags */ | ||
43 | enum { | ||
44 | SPU_SCHED_WAKE = 0, | ||
45 | }; | ||
46 | |||
45 | struct spu_context { | 47 | struct spu_context { |
46 | struct spu *spu; /* pointer to a physical SPU */ | 48 | struct spu *spu; /* pointer to a physical SPU */ |
47 | struct spu_state csa; /* SPU context save area. */ | 49 | struct spu_state csa; /* SPU context save area. */ |
@@ -51,10 +53,12 @@ struct spu_context { | |||
51 | struct address_space *cntl; /* 'control' area mappings. */ | 53 | struct address_space *cntl; /* 'control' area mappings. */ |
52 | struct address_space *signal1; /* 'signal1' area mappings. */ | 54 | struct address_space *signal1; /* 'signal1' area mappings. */ |
53 | struct address_space *signal2; /* 'signal2' area mappings. */ | 55 | struct address_space *signal2; /* 'signal2' area mappings. */ |
56 | struct address_space *mss; /* 'mss' area mappings. */ | ||
57 | struct address_space *psmap; /* 'psmap' area mappings. */ | ||
54 | u64 object_id; /* user space pointer for oprofile */ | 58 | u64 object_id; /* user space pointer for oprofile */ |
55 | 59 | ||
56 | enum { SPU_STATE_RUNNABLE, SPU_STATE_SAVED } state; | 60 | enum { SPU_STATE_RUNNABLE, SPU_STATE_SAVED } state; |
57 | struct rw_semaphore state_sema; | 61 | struct mutex state_mutex; |
58 | struct semaphore run_sema; | 62 | struct semaphore run_sema; |
59 | 63 | ||
60 | struct mm_struct *owner; | 64 | struct mm_struct *owner; |
@@ -75,6 +79,14 @@ struct spu_context { | |||
75 | 79 | ||
76 | struct list_head gang_list; | 80 | struct list_head gang_list; |
77 | struct spu_gang *gang; | 81 | struct spu_gang *gang; |
82 | |||
83 | /* scheduler fields */ | ||
84 | struct list_head rq; | ||
85 | struct delayed_work sched_work; | ||
86 | unsigned long sched_flags; | ||
87 | unsigned long rt_priority; | ||
88 | int policy; | ||
89 | int prio; | ||
78 | }; | 90 | }; |
79 | 91 | ||
80 | struct spu_gang { | 92 | struct spu_gang { |
@@ -159,6 +171,16 @@ void spu_gang_remove_ctx(struct spu_gang *gang, struct spu_context *ctx); | |||
159 | void spu_gang_add_ctx(struct spu_gang *gang, struct spu_context *ctx); | 171 | void spu_gang_add_ctx(struct spu_gang *gang, struct spu_context *ctx); |
160 | 172 | ||
161 | /* context management */ | 173 | /* context management */ |
174 | static inline void spu_acquire(struct spu_context *ctx) | ||
175 | { | ||
176 | mutex_lock(&ctx->state_mutex); | ||
177 | } | ||
178 | |||
179 | static inline void spu_release(struct spu_context *ctx) | ||
180 | { | ||
181 | mutex_unlock(&ctx->state_mutex); | ||
182 | } | ||
183 | |||
162 | struct spu_context * alloc_spu_context(struct spu_gang *gang); | 184 | struct spu_context * alloc_spu_context(struct spu_gang *gang); |
163 | void destroy_spu_context(struct kref *kref); | 185 | void destroy_spu_context(struct kref *kref); |
164 | struct spu_context * get_spu_context(struct spu_context *ctx); | 186 | struct spu_context * get_spu_context(struct spu_context *ctx); |
@@ -166,20 +188,18 @@ int put_spu_context(struct spu_context *ctx); | |||
166 | void spu_unmap_mappings(struct spu_context *ctx); | 188 | void spu_unmap_mappings(struct spu_context *ctx); |
167 | 189 | ||
168 | void spu_forget(struct spu_context *ctx); | 190 | void spu_forget(struct spu_context *ctx); |
169 | void spu_acquire(struct spu_context *ctx); | 191 | int spu_acquire_runnable(struct spu_context *ctx, unsigned long flags); |
170 | void spu_release(struct spu_context *ctx); | ||
171 | int spu_acquire_runnable(struct spu_context *ctx); | ||
172 | void spu_acquire_saved(struct spu_context *ctx); | 192 | void spu_acquire_saved(struct spu_context *ctx); |
173 | int spu_acquire_exclusive(struct spu_context *ctx); | 193 | int spu_acquire_exclusive(struct spu_context *ctx); |
174 | 194 | enum { | |
175 | static inline void spu_release_exclusive(struct spu_context *ctx) | 195 | SPU_ACTIVATE_NOWAKE = 1, |
176 | { | 196 | }; |
177 | up_write(&ctx->state_sema); | 197 | int spu_activate(struct spu_context *ctx, unsigned long flags); |
178 | } | ||
179 | |||
180 | int spu_activate(struct spu_context *ctx, u64 flags); | ||
181 | void spu_deactivate(struct spu_context *ctx); | 198 | void spu_deactivate(struct spu_context *ctx); |
182 | void spu_yield(struct spu_context *ctx); | 199 | void spu_yield(struct spu_context *ctx); |
200 | void spu_start_tick(struct spu_context *ctx); | ||
201 | void spu_stop_tick(struct spu_context *ctx); | ||
202 | void spu_sched_tick(struct work_struct *work); | ||
183 | int __init spu_sched_init(void); | 203 | int __init spu_sched_init(void); |
184 | void __exit spu_sched_exit(void); | 204 | void __exit spu_sched_exit(void); |
185 | 205 | ||
diff --git a/arch/powerpc/platforms/celleb/htab.c b/arch/powerpc/platforms/celleb/htab.c index ffa7c2c2030d..279d7339e170 100644 --- a/arch/powerpc/platforms/celleb/htab.c +++ b/arch/powerpc/platforms/celleb/htab.c | |||
@@ -95,7 +95,6 @@ static long beat_lpar_hpte_insert(unsigned long hpte_group, | |||
95 | unsigned long lpar_rc; | 95 | unsigned long lpar_rc; |
96 | unsigned long slot; | 96 | unsigned long slot; |
97 | unsigned long hpte_v, hpte_r; | 97 | unsigned long hpte_v, hpte_r; |
98 | unsigned long flags; | ||
99 | 98 | ||
100 | /* same as iseries */ | 99 | /* same as iseries */ |
101 | if (vflags & HPTE_V_SECONDARY) | 100 | if (vflags & HPTE_V_SECONDARY) |
@@ -115,17 +114,17 @@ static long beat_lpar_hpte_insert(unsigned long hpte_group, | |||
115 | if (rflags & (_PAGE_GUARDED|_PAGE_NO_CACHE)) | 114 | if (rflags & (_PAGE_GUARDED|_PAGE_NO_CACHE)) |
116 | hpte_r &= ~_PAGE_COHERENT; | 115 | hpte_r &= ~_PAGE_COHERENT; |
117 | 116 | ||
118 | spin_lock_irqsave(&beat_htab_lock, flags); | 117 | spin_lock(&beat_htab_lock); |
119 | if ((lpar_rc = beat_read_mask(hpte_group)) == 0) { | 118 | if ((lpar_rc = beat_read_mask(hpte_group)) == 0) { |
120 | if (!(vflags & HPTE_V_BOLTED)) | 119 | if (!(vflags & HPTE_V_BOLTED)) |
121 | DBG_LOW(" full\n"); | 120 | DBG_LOW(" full\n"); |
122 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 121 | spin_unlock(&beat_htab_lock); |
123 | return -1; | 122 | return -1; |
124 | } | 123 | } |
125 | 124 | ||
126 | lpar_rc = beat_insert_htab_entry(0, hpte_group, lpar_rc << 48, | 125 | lpar_rc = beat_insert_htab_entry(0, hpte_group, lpar_rc << 48, |
127 | hpte_v, hpte_r, &slot); | 126 | hpte_v, hpte_r, &slot); |
128 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 127 | spin_unlock(&beat_htab_lock); |
129 | 128 | ||
130 | /* | 129 | /* |
131 | * Since we try and ioremap PHBs we don't own, the pte insert | 130 | * Since we try and ioremap PHBs we don't own, the pte insert |
@@ -189,7 +188,6 @@ static long beat_lpar_hpte_updatepp(unsigned long slot, | |||
189 | { | 188 | { |
190 | unsigned long lpar_rc; | 189 | unsigned long lpar_rc; |
191 | unsigned long dummy0, dummy1, want_v; | 190 | unsigned long dummy0, dummy1, want_v; |
192 | unsigned long flags; | ||
193 | 191 | ||
194 | want_v = hpte_encode_v(va, psize); | 192 | want_v = hpte_encode_v(va, psize); |
195 | 193 | ||
@@ -197,17 +195,17 @@ static long beat_lpar_hpte_updatepp(unsigned long slot, | |||
197 | "avpnv=%016lx, slot=%016lx, psize: %d, newpp %016lx ... ", | 195 | "avpnv=%016lx, slot=%016lx, psize: %d, newpp %016lx ... ", |
198 | want_v & HPTE_V_AVPN, slot, psize, newpp); | 196 | want_v & HPTE_V_AVPN, slot, psize, newpp); |
199 | 197 | ||
200 | spin_lock_irqsave(&beat_htab_lock, flags); | 198 | spin_lock(&beat_htab_lock); |
201 | dummy0 = beat_lpar_hpte_getword0(slot); | 199 | dummy0 = beat_lpar_hpte_getword0(slot); |
202 | if ((dummy0 & ~0x7FUL) != (want_v & ~0x7FUL)) { | 200 | if ((dummy0 & ~0x7FUL) != (want_v & ~0x7FUL)) { |
203 | DBG_LOW("not found !\n"); | 201 | DBG_LOW("not found !\n"); |
204 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 202 | spin_unlock(&beat_htab_lock); |
205 | return -1; | 203 | return -1; |
206 | } | 204 | } |
207 | 205 | ||
208 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, &dummy0, | 206 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, &dummy0, |
209 | &dummy1); | 207 | &dummy1); |
210 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 208 | spin_unlock(&beat_htab_lock); |
211 | if (lpar_rc != 0 || dummy0 == 0) { | 209 | if (lpar_rc != 0 || dummy0 == 0) { |
212 | DBG_LOW("not found !\n"); | 210 | DBG_LOW("not found !\n"); |
213 | return -1; | 211 | return -1; |
@@ -256,18 +254,17 @@ static void beat_lpar_hpte_updateboltedpp(unsigned long newpp, | |||
256 | int psize) | 254 | int psize) |
257 | { | 255 | { |
258 | unsigned long lpar_rc, slot, vsid, va, dummy0, dummy1; | 256 | unsigned long lpar_rc, slot, vsid, va, dummy0, dummy1; |
259 | unsigned long flags; | ||
260 | 257 | ||
261 | vsid = get_kernel_vsid(ea); | 258 | vsid = get_kernel_vsid(ea); |
262 | va = (vsid << 28) | (ea & 0x0fffffff); | 259 | va = (vsid << 28) | (ea & 0x0fffffff); |
263 | 260 | ||
264 | spin_lock_irqsave(&beat_htab_lock, flags); | 261 | spin_lock(&beat_htab_lock); |
265 | slot = beat_lpar_hpte_find(va, psize); | 262 | slot = beat_lpar_hpte_find(va, psize); |
266 | BUG_ON(slot == -1); | 263 | BUG_ON(slot == -1); |
267 | 264 | ||
268 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, | 265 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, |
269 | &dummy0, &dummy1); | 266 | &dummy0, &dummy1); |
270 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 267 | spin_unlock(&beat_htab_lock); |
271 | 268 | ||
272 | BUG_ON(lpar_rc != 0); | 269 | BUG_ON(lpar_rc != 0); |
273 | } | 270 | } |
diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c index 61599d919ea8..3f6c4114f908 100644 --- a/arch/powerpc/platforms/embedded6xx/linkstation.c +++ b/arch/powerpc/platforms/embedded6xx/linkstation.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
15 | #include <linux/initrd.h> | 15 | #include <linux/initrd.h> |
16 | #include <linux/root_dev.h> | ||
17 | #include <linux/mtd/physmap.h> | 16 | #include <linux/mtd/physmap.h> |
18 | 17 | ||
19 | #include <asm/time.h> | 18 | #include <asm/time.h> |
@@ -91,17 +90,6 @@ static void __init linkstation_setup_arch(void) | |||
91 | ARRAY_SIZE(linkstation_physmap_partitions)); | 90 | ARRAY_SIZE(linkstation_physmap_partitions)); |
92 | #endif | 91 | #endif |
93 | 92 | ||
94 | #ifdef CONFIG_BLK_DEV_INITRD | ||
95 | if (initrd_start) | ||
96 | ROOT_DEV = Root_RAM0; | ||
97 | else | ||
98 | #endif | ||
99 | #ifdef CONFIG_ROOT_NFS | ||
100 | ROOT_DEV = Root_NFS; | ||
101 | #else | ||
102 | ROOT_DEV = Root_HDA1; | ||
103 | #endif | ||
104 | |||
105 | /* Lookup PCI host bridges */ | 93 | /* Lookup PCI host bridges */ |
106 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 94 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
107 | add_bridge(np); | 95 | add_bridge(np); |
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c index d1929721b0e4..a397e4e17c13 100644 --- a/arch/powerpc/platforms/ps3/spu.c +++ b/arch/powerpc/platforms/ps3/spu.c | |||
@@ -170,31 +170,6 @@ static int __init construct_spu(struct spu *spu) | |||
170 | return result; | 170 | return result; |
171 | } | 171 | } |
172 | 172 | ||
173 | static int __init add_spu_pages(unsigned long start_addr, unsigned long size) | ||
174 | { | ||
175 | int result; | ||
176 | unsigned long start_pfn; | ||
177 | unsigned long nr_pages; | ||
178 | struct pglist_data *pgdata; | ||
179 | struct zone *zone; | ||
180 | |||
181 | BUG_ON(!mem_init_done); | ||
182 | |||
183 | start_pfn = start_addr >> PAGE_SHIFT; | ||
184 | nr_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
185 | |||
186 | pgdata = NODE_DATA(0); | ||
187 | zone = pgdata->node_zones; | ||
188 | |||
189 | result = __add_pages(zone, start_pfn, nr_pages); | ||
190 | |||
191 | if (result) | ||
192 | pr_debug("%s:%d: __add_pages failed: (%d)\n", | ||
193 | __func__, __LINE__, result); | ||
194 | |||
195 | return result; | ||
196 | } | ||
197 | |||
198 | static void spu_unmap(struct spu *spu) | 173 | static void spu_unmap(struct spu *spu) |
199 | { | 174 | { |
200 | iounmap(spu->priv2); | 175 | iounmap(spu->priv2); |
@@ -206,19 +181,6 @@ static void spu_unmap(struct spu *spu) | |||
206 | static int __init setup_areas(struct spu *spu) | 181 | static int __init setup_areas(struct spu *spu) |
207 | { | 182 | { |
208 | struct table {char* name; unsigned long addr; unsigned long size;}; | 183 | struct table {char* name; unsigned long addr; unsigned long size;}; |
209 | int result; | ||
210 | |||
211 | /* setup pages */ | ||
212 | |||
213 | result = add_spu_pages(spu->local_store_phys, LS_SIZE); | ||
214 | if (result) | ||
215 | goto fail_add; | ||
216 | |||
217 | result = add_spu_pages(spu->problem_phys, sizeof(struct spu_problem)); | ||
218 | if (result) | ||
219 | goto fail_add; | ||
220 | |||
221 | /* ioremap */ | ||
222 | 184 | ||
223 | spu_pdata(spu)->shadow = __ioremap( | 185 | spu_pdata(spu)->shadow = __ioremap( |
224 | spu_pdata(spu)->shadow_addr, sizeof(struct spe_shadow), | 186 | spu_pdata(spu)->shadow_addr, sizeof(struct spe_shadow), |
@@ -260,8 +222,8 @@ static int __init setup_areas(struct spu *spu) | |||
260 | 222 | ||
261 | fail_ioremap: | 223 | fail_ioremap: |
262 | spu_unmap(spu); | 224 | spu_unmap(spu); |
263 | fail_add: | 225 | |
264 | return result; | 226 | return -ENOMEM; |
265 | } | 227 | } |
266 | 228 | ||
267 | static int __init setup_interrupts(struct spu *spu) | 229 | static int __init setup_interrupts(struct spu *spu) |
diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile index 69590fbf83da..dc0583bdbc63 100644 --- a/arch/powerpc/platforms/pseries/Makefile +++ b/arch/powerpc/platforms/pseries/Makefile | |||
@@ -9,6 +9,7 @@ obj-$(CONFIG_SMP) += smp.o | |||
9 | obj-$(CONFIG_XICS) += xics.o | 9 | obj-$(CONFIG_XICS) += xics.o |
10 | obj-$(CONFIG_SCANLOG) += scanlog.o | 10 | obj-$(CONFIG_SCANLOG) += scanlog.o |
11 | obj-$(CONFIG_EEH) += eeh.o eeh_cache.o eeh_driver.o eeh_event.o | 11 | obj-$(CONFIG_EEH) += eeh.o eeh_cache.o eeh_driver.o eeh_event.o |
12 | obj-$(CONFIG_KEXEC) += kexec.o | ||
12 | 13 | ||
13 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug-cpu.o | 14 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug-cpu.o |
14 | 15 | ||
diff --git a/arch/powerpc/platforms/pseries/firmware.h b/arch/powerpc/platforms/pseries/firmware.h deleted file mode 100644 index 714f56f55362..000000000000 --- a/arch/powerpc/platforms/pseries/firmware.h +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2006 IBM Corporation. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef _PSERIES_FIRMWARE_H | ||
11 | #define _PSERIES_FIRMWARE_H | ||
12 | |||
13 | #include <asm/firmware.h> | ||
14 | |||
15 | extern void __init fw_feature_init(void); | ||
16 | |||
17 | #endif /* _PSERIES_FIRMWARE_H */ | ||
diff --git a/arch/powerpc/platforms/pseries/kexec.c b/arch/powerpc/platforms/pseries/kexec.c new file mode 100644 index 000000000000..af2685607458 --- /dev/null +++ b/arch/powerpc/platforms/pseries/kexec.c | |||
@@ -0,0 +1,72 @@ | |||
1 | /* | ||
2 | * Copyright 2006 Michael Ellerman, IBM Corporation | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #include <asm/machdep.h> | ||
11 | #include <asm/page.h> | ||
12 | #include <asm/firmware.h> | ||
13 | #include <asm/kexec.h> | ||
14 | #include <asm/mpic.h> | ||
15 | |||
16 | #include "pseries.h" | ||
17 | #include "xics.h" | ||
18 | #include "plpar_wrappers.h" | ||
19 | |||
20 | static void pseries_kexec_cpu_down(int crash_shutdown, int secondary) | ||
21 | { | ||
22 | /* Don't risk a hypervisor call if we're crashing */ | ||
23 | if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) { | ||
24 | unsigned long addr; | ||
25 | |||
26 | addr = __pa(get_slb_shadow()); | ||
27 | if (unregister_slb_shadow(hard_smp_processor_id(), addr)) | ||
28 | printk("SLB shadow buffer deregistration of " | ||
29 | "cpu %u (hw_cpu_id %d) failed\n", | ||
30 | smp_processor_id(), | ||
31 | hard_smp_processor_id()); | ||
32 | |||
33 | addr = __pa(get_lppaca()); | ||
34 | if (unregister_vpa(hard_smp_processor_id(), addr)) { | ||
35 | printk("VPA deregistration of cpu %u (hw_cpu_id %d) " | ||
36 | "failed\n", smp_processor_id(), | ||
37 | hard_smp_processor_id()); | ||
38 | } | ||
39 | } | ||
40 | } | ||
41 | |||
42 | static void pseries_kexec_cpu_down_mpic(int crash_shutdown, int secondary) | ||
43 | { | ||
44 | pseries_kexec_cpu_down(crash_shutdown, secondary); | ||
45 | mpic_teardown_this_cpu(secondary); | ||
46 | } | ||
47 | |||
48 | void __init setup_kexec_cpu_down_mpic(void) | ||
49 | { | ||
50 | ppc_md.kexec_cpu_down = pseries_kexec_cpu_down_mpic; | ||
51 | } | ||
52 | |||
53 | static void pseries_kexec_cpu_down_xics(int crash_shutdown, int secondary) | ||
54 | { | ||
55 | pseries_kexec_cpu_down(crash_shutdown, secondary); | ||
56 | xics_teardown_cpu(secondary); | ||
57 | } | ||
58 | |||
59 | void __init setup_kexec_cpu_down_xics(void) | ||
60 | { | ||
61 | ppc_md.kexec_cpu_down = pseries_kexec_cpu_down_xics; | ||
62 | } | ||
63 | |||
64 | static int __init pseries_kexec_setup(void) | ||
65 | { | ||
66 | ppc_md.machine_kexec = default_machine_kexec; | ||
67 | ppc_md.machine_kexec_prepare = default_machine_kexec_prepare; | ||
68 | ppc_md.machine_crash_shutdown = default_machine_crash_shutdown; | ||
69 | |||
70 | return 0; | ||
71 | } | ||
72 | __initcall(pseries_kexec_setup); | ||
diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c index c69bd15ced9c..fa59124ce3fe 100644 --- a/arch/powerpc/platforms/pseries/pci.c +++ b/arch/powerpc/platforms/pseries/pci.c | |||
@@ -98,6 +98,10 @@ static void fixup_winbond_82c105(struct pci_dev* dev) | |||
98 | if (dev->resource[i].flags & IORESOURCE_IO | 98 | if (dev->resource[i].flags & IORESOURCE_IO |
99 | && dev->bus->number == 0 && dev->devfn == 0x81) | 99 | && dev->bus->number == 0 && dev->devfn == 0x81) |
100 | dev->resource[i].flags &= ~IORESOURCE_IO; | 100 | dev->resource[i].flags &= ~IORESOURCE_IO; |
101 | if (dev->resource[i].start == 0 && dev->resource[i].end) { | ||
102 | dev->resource[i].flags = 0; | ||
103 | dev->resource[i].end = 0; | ||
104 | } | ||
101 | } | 105 | } |
102 | } | 106 | } |
103 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, | 107 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, |
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h new file mode 100644 index 000000000000..b43f1397a5b6 --- /dev/null +++ b/arch/powerpc/platforms/pseries/pseries.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * Copyright 2006 IBM Corporation. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License | ||
6 | * as published by the Free Software Foundation; either version | ||
7 | * 2 of the License, or (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef _PSERIES_PSERIES_H | ||
11 | #define _PSERIES_PSERIES_H | ||
12 | |||
13 | extern void __init fw_feature_init(void); | ||
14 | |||
15 | struct pt_regs; | ||
16 | |||
17 | extern int pSeries_system_reset_exception(struct pt_regs *regs); | ||
18 | extern int pSeries_machine_check_exception(struct pt_regs *regs); | ||
19 | |||
20 | #ifdef CONFIG_SMP | ||
21 | extern void smp_init_pseries_mpic(void); | ||
22 | extern void smp_init_pseries_xics(void); | ||
23 | #else | ||
24 | static inline smp_init_pseries_mpic(void) { }; | ||
25 | static inline smp_init_pseries_xics(void) { }; | ||
26 | #endif | ||
27 | |||
28 | #ifdef CONFIG_KEXEC | ||
29 | extern void setup_kexec_cpu_down_xics(void); | ||
30 | extern void setup_kexec_cpu_down_mpic(void); | ||
31 | #else | ||
32 | static inline setup_kexec_cpu_down_xics(void) { }; | ||
33 | static inline setup_kexec_cpu_down_mpic(void) { }; | ||
34 | #endif | ||
35 | |||
36 | #endif /* _PSERIES_PSERIES_H */ | ||
diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c index b1d3d161249e..edc038873113 100644 --- a/arch/powerpc/platforms/pseries/ras.c +++ b/arch/powerpc/platforms/pseries/ras.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #include <asm/udbg.h> | 51 | #include <asm/udbg.h> |
52 | #include <asm/firmware.h> | 52 | #include <asm/firmware.h> |
53 | 53 | ||
54 | #include "ras.h" | 54 | #include "pseries.h" |
55 | 55 | ||
56 | static unsigned char ras_log_buf[RTAS_ERROR_LOG_MAX]; | 56 | static unsigned char ras_log_buf[RTAS_ERROR_LOG_MAX]; |
57 | static DEFINE_SPINLOCK(ras_log_buf_lock); | 57 | static DEFINE_SPINLOCK(ras_log_buf_lock); |
diff --git a/arch/powerpc/platforms/pseries/ras.h b/arch/powerpc/platforms/pseries/ras.h deleted file mode 100644 index 0e66b0da55e2..000000000000 --- a/arch/powerpc/platforms/pseries/ras.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef _PSERIES_RAS_H | ||
2 | #define _PSERIES_RAS_H | ||
3 | |||
4 | struct pt_regs; | ||
5 | |||
6 | extern int pSeries_system_reset_exception(struct pt_regs *regs); | ||
7 | extern int pSeries_machine_check_exception(struct pt_regs *regs); | ||
8 | |||
9 | #endif /* _PSERIES_RAS_H */ | ||
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 042ecae107ac..435a04596526 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -55,7 +55,6 @@ | |||
55 | #include <asm/dma.h> | 55 | #include <asm/dma.h> |
56 | #include <asm/machdep.h> | 56 | #include <asm/machdep.h> |
57 | #include <asm/irq.h> | 57 | #include <asm/irq.h> |
58 | #include <asm/kexec.h> | ||
59 | #include <asm/time.h> | 58 | #include <asm/time.h> |
60 | #include <asm/nvram.h> | 59 | #include <asm/nvram.h> |
61 | #include "xics.h" | 60 | #include "xics.h" |
@@ -65,10 +64,10 @@ | |||
65 | #include <asm/i8259.h> | 64 | #include <asm/i8259.h> |
66 | #include <asm/udbg.h> | 65 | #include <asm/udbg.h> |
67 | #include <asm/smp.h> | 66 | #include <asm/smp.h> |
67 | #include <asm/firmware.h> | ||
68 | 68 | ||
69 | #include "plpar_wrappers.h" | 69 | #include "plpar_wrappers.h" |
70 | #include "ras.h" | 70 | #include "pseries.h" |
71 | #include "firmware.h" | ||
72 | 71 | ||
73 | #ifdef DEBUG | 72 | #ifdef DEBUG |
74 | #define DBG(fmt...) udbg_printf(fmt) | 73 | #define DBG(fmt...) udbg_printf(fmt) |
@@ -77,8 +76,6 @@ | |||
77 | #endif | 76 | #endif |
78 | 77 | ||
79 | /* move those away to a .h */ | 78 | /* move those away to a .h */ |
80 | extern void smp_init_pseries_mpic(void); | ||
81 | extern void smp_init_pseries_xics(void); | ||
82 | extern void find_udbg_vterm(void); | 79 | extern void find_udbg_vterm(void); |
83 | 80 | ||
84 | int fwnmi_active; /* TRUE if an FWNMI handler is present */ | 81 | int fwnmi_active; /* TRUE if an FWNMI handler is present */ |
@@ -221,42 +218,6 @@ static void pseries_lpar_enable_pmcs(void) | |||
221 | get_lppaca()->pmcregs_in_use = 1; | 218 | get_lppaca()->pmcregs_in_use = 1; |
222 | } | 219 | } |
223 | 220 | ||
224 | #ifdef CONFIG_KEXEC | ||
225 | static void pseries_kexec_cpu_down(int crash_shutdown, int secondary) | ||
226 | { | ||
227 | /* Don't risk a hypervisor call if we're crashing */ | ||
228 | if (firmware_has_feature(FW_FEATURE_SPLPAR) && !crash_shutdown) { | ||
229 | unsigned long addr; | ||
230 | |||
231 | addr = __pa(get_slb_shadow()); | ||
232 | if (unregister_slb_shadow(hard_smp_processor_id(), addr)) | ||
233 | printk("SLB shadow buffer deregistration of " | ||
234 | "cpu %u (hw_cpu_id %d) failed\n", | ||
235 | smp_processor_id(), | ||
236 | hard_smp_processor_id()); | ||
237 | |||
238 | addr = __pa(get_lppaca()); | ||
239 | if (unregister_vpa(hard_smp_processor_id(), addr)) { | ||
240 | printk("VPA deregistration of cpu %u (hw_cpu_id %d) " | ||
241 | "failed\n", smp_processor_id(), | ||
242 | hard_smp_processor_id()); | ||
243 | } | ||
244 | } | ||
245 | } | ||
246 | |||
247 | static void pseries_kexec_cpu_down_mpic(int crash_shutdown, int secondary) | ||
248 | { | ||
249 | pseries_kexec_cpu_down(crash_shutdown, secondary); | ||
250 | mpic_teardown_this_cpu(secondary); | ||
251 | } | ||
252 | |||
253 | static void pseries_kexec_cpu_down_xics(int crash_shutdown, int secondary) | ||
254 | { | ||
255 | pseries_kexec_cpu_down(crash_shutdown, secondary); | ||
256 | xics_teardown_cpu(secondary); | ||
257 | } | ||
258 | #endif /* CONFIG_KEXEC */ | ||
259 | |||
260 | static void __init pseries_discover_pic(void) | 221 | static void __init pseries_discover_pic(void) |
261 | { | 222 | { |
262 | struct device_node *np; | 223 | struct device_node *np; |
@@ -269,21 +230,13 @@ static void __init pseries_discover_pic(void) | |||
269 | pSeries_mpic_node = of_node_get(np); | 230 | pSeries_mpic_node = of_node_get(np); |
270 | ppc_md.init_IRQ = pseries_mpic_init_IRQ; | 231 | ppc_md.init_IRQ = pseries_mpic_init_IRQ; |
271 | ppc_md.get_irq = mpic_get_irq; | 232 | ppc_md.get_irq = mpic_get_irq; |
272 | #ifdef CONFIG_KEXEC | 233 | setup_kexec_cpu_down_mpic(); |
273 | ppc_md.kexec_cpu_down = pseries_kexec_cpu_down_mpic; | ||
274 | #endif | ||
275 | #ifdef CONFIG_SMP | ||
276 | smp_init_pseries_mpic(); | 234 | smp_init_pseries_mpic(); |
277 | #endif | ||
278 | return; | 235 | return; |
279 | } else if (strstr(typep, "ppc-xicp")) { | 236 | } else if (strstr(typep, "ppc-xicp")) { |
280 | ppc_md.init_IRQ = xics_init_IRQ; | 237 | ppc_md.init_IRQ = xics_init_IRQ; |
281 | #ifdef CONFIG_KEXEC | 238 | setup_kexec_cpu_down_xics(); |
282 | ppc_md.kexec_cpu_down = pseries_kexec_cpu_down_xics; | ||
283 | #endif | ||
284 | #ifdef CONFIG_SMP | ||
285 | smp_init_pseries_xics(); | 239 | smp_init_pseries_xics(); |
286 | #endif | ||
287 | return; | 240 | return; |
288 | } | 241 | } |
289 | } | 242 | } |
@@ -554,9 +507,4 @@ define_machine(pseries) { | |||
554 | .check_legacy_ioport = pSeries_check_legacy_ioport, | 507 | .check_legacy_ioport = pSeries_check_legacy_ioport, |
555 | .system_reset_exception = pSeries_system_reset_exception, | 508 | .system_reset_exception = pSeries_system_reset_exception, |
556 | .machine_check_exception = pSeries_machine_check_exception, | 509 | .machine_check_exception = pSeries_machine_check_exception, |
557 | #ifdef CONFIG_KEXEC | ||
558 | .machine_kexec = default_machine_kexec, | ||
559 | .machine_kexec_prepare = default_machine_kexec_prepare, | ||
560 | .machine_crash_shutdown = default_machine_crash_shutdown, | ||
561 | #endif | ||
562 | }; | 510 | }; |
diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c index 4408518eaebe..116305b22a2b 100644 --- a/arch/powerpc/platforms/pseries/smp.c +++ b/arch/powerpc/platforms/pseries/smp.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <asm/vdso_datapage.h> | 48 | #include <asm/vdso_datapage.h> |
49 | 49 | ||
50 | #include "plpar_wrappers.h" | 50 | #include "plpar_wrappers.h" |
51 | #include "pseries.h" | ||
51 | 52 | ||
52 | #ifdef DEBUG | 53 | #ifdef DEBUG |
53 | #include <asm/udbg.h> | 54 | #include <asm/udbg.h> |
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index 9f2a9a444bfb..34161bc5a02f 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c | |||
@@ -441,7 +441,8 @@ static int __init fsl_usb_of_init(void) | |||
441 | { | 441 | { |
442 | struct device_node *np; | 442 | struct device_node *np; |
443 | unsigned int i; | 443 | unsigned int i; |
444 | struct platform_device *usb_dev_mph = NULL, *usb_dev_dr = NULL; | 444 | struct platform_device *usb_dev_mph = NULL, *usb_dev_dr_host = NULL, |
445 | *usb_dev_dr_client = NULL; | ||
445 | int ret; | 446 | int ret; |
446 | 447 | ||
447 | for (np = NULL, i = 0; | 448 | for (np = NULL, i = 0; |
@@ -507,33 +508,72 @@ static int __init fsl_usb_of_init(void) | |||
507 | 508 | ||
508 | of_irq_to_resource(np, 0, &r[1]); | 509 | of_irq_to_resource(np, 0, &r[1]); |
509 | 510 | ||
510 | usb_dev_dr = | 511 | prop = get_property(np, "dr_mode", NULL); |
511 | platform_device_register_simple("fsl-ehci", i, r, 2); | 512 | |
512 | if (IS_ERR(usb_dev_dr)) { | 513 | if (!prop || !strcmp(prop, "host")) { |
513 | ret = PTR_ERR(usb_dev_dr); | 514 | usb_data.operating_mode = FSL_USB2_DR_HOST; |
515 | usb_dev_dr_host = platform_device_register_simple( | ||
516 | "fsl-ehci", i, r, 2); | ||
517 | if (IS_ERR(usb_dev_dr_host)) { | ||
518 | ret = PTR_ERR(usb_dev_dr_host); | ||
519 | goto err; | ||
520 | } | ||
521 | } else if (prop && !strcmp(prop, "peripheral")) { | ||
522 | usb_data.operating_mode = FSL_USB2_DR_DEVICE; | ||
523 | usb_dev_dr_client = platform_device_register_simple( | ||
524 | "fsl-usb2-udc", i, r, 2); | ||
525 | if (IS_ERR(usb_dev_dr_client)) { | ||
526 | ret = PTR_ERR(usb_dev_dr_client); | ||
527 | goto err; | ||
528 | } | ||
529 | } else if (prop && !strcmp(prop, "otg")) { | ||
530 | usb_data.operating_mode = FSL_USB2_DR_OTG; | ||
531 | usb_dev_dr_host = platform_device_register_simple( | ||
532 | "fsl-ehci", i, r, 2); | ||
533 | if (IS_ERR(usb_dev_dr_host)) { | ||
534 | ret = PTR_ERR(usb_dev_dr_host); | ||
535 | goto err; | ||
536 | } | ||
537 | usb_dev_dr_client = platform_device_register_simple( | ||
538 | "fsl-usb2-udc", i, r, 2); | ||
539 | if (IS_ERR(usb_dev_dr_client)) { | ||
540 | ret = PTR_ERR(usb_dev_dr_client); | ||
541 | goto err; | ||
542 | } | ||
543 | } else { | ||
544 | ret = -EINVAL; | ||
514 | goto err; | 545 | goto err; |
515 | } | 546 | } |
516 | 547 | ||
517 | usb_dev_dr->dev.coherent_dma_mask = 0xffffffffUL; | ||
518 | usb_dev_dr->dev.dma_mask = &usb_dev_dr->dev.coherent_dma_mask; | ||
519 | |||
520 | usb_data.operating_mode = FSL_USB2_DR_HOST; | ||
521 | |||
522 | prop = get_property(np, "phy_type", NULL); | 548 | prop = get_property(np, "phy_type", NULL); |
523 | usb_data.phy_mode = determine_usb_phy(prop); | 549 | usb_data.phy_mode = determine_usb_phy(prop); |
524 | 550 | ||
525 | ret = | 551 | if (usb_dev_dr_host) { |
526 | platform_device_add_data(usb_dev_dr, &usb_data, | 552 | usb_dev_dr_host->dev.coherent_dma_mask = 0xffffffffUL; |
527 | sizeof(struct | 553 | usb_dev_dr_host->dev.dma_mask = &usb_dev_dr_host-> |
528 | fsl_usb2_platform_data)); | 554 | dev.coherent_dma_mask; |
529 | if (ret) | 555 | if ((ret = platform_device_add_data(usb_dev_dr_host, |
530 | goto unreg_dr; | 556 | &usb_data, sizeof(struct |
557 | fsl_usb2_platform_data)))) | ||
558 | goto unreg_dr; | ||
559 | } | ||
560 | if (usb_dev_dr_client) { | ||
561 | usb_dev_dr_client->dev.coherent_dma_mask = 0xffffffffUL; | ||
562 | usb_dev_dr_client->dev.dma_mask = &usb_dev_dr_client-> | ||
563 | dev.coherent_dma_mask; | ||
564 | if ((ret = platform_device_add_data(usb_dev_dr_client, | ||
565 | &usb_data, sizeof(struct | ||
566 | fsl_usb2_platform_data)))) | ||
567 | goto unreg_dr; | ||
568 | } | ||
531 | } | 569 | } |
532 | return 0; | 570 | return 0; |
533 | 571 | ||
534 | unreg_dr: | 572 | unreg_dr: |
535 | if (usb_dev_dr) | 573 | if (usb_dev_dr_host) |
536 | platform_device_unregister(usb_dev_dr); | 574 | platform_device_unregister(usb_dev_dr_host); |
575 | if (usb_dev_dr_client) | ||
576 | platform_device_unregister(usb_dev_dr_client); | ||
537 | unreg_mph: | 577 | unreg_mph: |
538 | if (usb_dev_mph) | 578 | if (usb_dev_mph) |
539 | platform_device_unregister(usb_dev_mph); | 579 | platform_device_unregister(usb_dev_mph); |
@@ -699,7 +739,7 @@ static int __init fs_enet_of_init(void) | |||
699 | if (ret) | 739 | if (ret) |
700 | goto unreg; | 740 | goto unreg; |
701 | } | 741 | } |
702 | 742 | ||
703 | of_node_put(phy); | 743 | of_node_put(phy); |
704 | of_node_put(mdio); | 744 | of_node_put(mdio); |
705 | 745 | ||
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index aa701cc27ecc..4e54a09dd33b 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c | |||
@@ -1395,4 +1395,25 @@ void smp_mpic_message_pass(int target, int msg) | |||
1395 | break; | 1395 | break; |
1396 | } | 1396 | } |
1397 | } | 1397 | } |
1398 | |||
1399 | int __init smp_mpic_probe(void) | ||
1400 | { | ||
1401 | int nr_cpus; | ||
1402 | |||
1403 | DBG("smp_mpic_probe()...\n"); | ||
1404 | |||
1405 | nr_cpus = cpus_weight(cpu_possible_map); | ||
1406 | |||
1407 | DBG("nr_cpus: %d\n", nr_cpus); | ||
1408 | |||
1409 | if (nr_cpus > 1) | ||
1410 | mpic_request_ipis(); | ||
1411 | |||
1412 | return nr_cpus; | ||
1413 | } | ||
1414 | |||
1415 | void __devinit smp_mpic_setup_cpu(int cpu) | ||
1416 | { | ||
1417 | mpic_setup_this_cpu(); | ||
1418 | } | ||
1398 | #endif /* CONFIG_SMP */ | 1419 | #endif /* CONFIG_SMP */ |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index 47b56203f47e..0e97e5c94f8a 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c | |||
@@ -179,7 +179,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
179 | uccs->us_info = us_info; | 179 | uccs->us_info = us_info; |
180 | uccs->saved_uccm = 0; | 180 | uccs->saved_uccm = 0; |
181 | uccs->p_rx_frame = 0; | 181 | uccs->p_rx_frame = 0; |
182 | uccs->us_regs = us_info->us_regs; | 182 | uccs->us_regs = us_info->regs; |
183 | us_regs = uccs->us_regs; | 183 | us_regs = uccs->us_regs; |
184 | uccs->p_ucce = (u16 *) & (us_regs->ucce); | 184 | uccs->p_ucce = (u16 *) & (us_regs->ucce); |
185 | uccs->p_uccm = (u16 *) & (us_regs->uccm); | 185 | uccs->p_uccm = (u16 *) & (us_regs->uccm); |
@@ -206,7 +206,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
206 | uccs->us_pram = qe_muram_addr(uccs->us_pram_offset); | 206 | uccs->us_pram = qe_muram_addr(uccs->us_pram_offset); |
207 | 207 | ||
208 | /* Init Guemr register */ | 208 | /* Init Guemr register */ |
209 | if ((ret = ucc_init_guemr((struct ucc_common *) (us_info->us_regs)))) { | 209 | if ((ret = ucc_init_guemr((struct ucc_common *) (us_info->regs)))) { |
210 | uccs_err("ucc_slow_init: Could not init the guemr register."); | 210 | uccs_err("ucc_slow_init: Could not init the guemr register."); |
211 | ucc_slow_free(uccs); | 211 | ucc_slow_free(uccs); |
212 | return ret; | 212 | return ret; |
@@ -214,7 +214,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
214 | 214 | ||
215 | /* Set UCC to slow type */ | 215 | /* Set UCC to slow type */ |
216 | if ((ret = ucc_set_type(us_info->ucc_num, | 216 | if ((ret = ucc_set_type(us_info->ucc_num, |
217 | (struct ucc_common *) (us_info->us_regs), | 217 | (struct ucc_common *) (us_info->regs), |
218 | UCC_SPEED_TYPE_SLOW))) { | 218 | UCC_SPEED_TYPE_SLOW))) { |
219 | uccs_err("ucc_slow_init: Could not init the guemr register."); | 219 | uccs_err("ucc_slow_init: Could not init the guemr register."); |
220 | ucc_slow_free(uccs); | 220 | ucc_slow_free(uccs); |
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 77540a2f7704..0183e5fbaf46 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c | |||
@@ -2811,7 +2811,6 @@ static void dump_spu_fields(struct spu *spu) | |||
2811 | DUMP_FIELD(spu, "0x%lx", irqs[2]); | 2811 | DUMP_FIELD(spu, "0x%lx", irqs[2]); |
2812 | DUMP_FIELD(spu, "0x%x", slb_replace); | 2812 | DUMP_FIELD(spu, "0x%x", slb_replace); |
2813 | DUMP_FIELD(spu, "%d", pid); | 2813 | DUMP_FIELD(spu, "%d", pid); |
2814 | DUMP_FIELD(spu, "%d", prio); | ||
2815 | DUMP_FIELD(spu, "0x%p", mm); | 2814 | DUMP_FIELD(spu, "0x%p", mm); |
2816 | DUMP_FIELD(spu, "0x%p", ctx); | 2815 | DUMP_FIELD(spu, "0x%p", ctx); |
2817 | DUMP_FIELD(spu, "0x%p", rq); | 2816 | DUMP_FIELD(spu, "0x%p", rq); |
diff --git a/arch/ppc/configs/taishan_defconfig b/arch/ppc/configs/taishan_defconfig new file mode 100644 index 000000000000..1ca0204267b1 --- /dev/null +++ b/arch/ppc/configs/taishan_defconfig | |||
@@ -0,0 +1,1077 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20 | ||
4 | # Mon Feb 12 11:11:58 2007 | ||
5 | # | ||
6 | CONFIG_MMU=y | ||
7 | CONFIG_GENERIC_HARDIRQS=y | ||
8 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
9 | CONFIG_ARCH_HAS_ILOG2_U32=y | ||
10 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
11 | CONFIG_GENERIC_HWEIGHT=y | ||
12 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
13 | CONFIG_PPC=y | ||
14 | CONFIG_PPC32=y | ||
15 | CONFIG_GENERIC_NVRAM=y | ||
16 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
17 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
18 | CONFIG_ARCH_MAY_HAVE_PC_FDC=y | ||
19 | CONFIG_GENERIC_BUG=y | ||
20 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
21 | |||
22 | # | ||
23 | # Code maturity level options | ||
24 | # | ||
25 | CONFIG_EXPERIMENTAL=y | ||
26 | CONFIG_BROKEN_ON_SMP=y | ||
27 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
28 | |||
29 | # | ||
30 | # General setup | ||
31 | # | ||
32 | CONFIG_LOCALVERSION="" | ||
33 | CONFIG_LOCALVERSION_AUTO=y | ||
34 | CONFIG_SWAP=y | ||
35 | CONFIG_SYSVIPC=y | ||
36 | # CONFIG_IPC_NS is not set | ||
37 | # CONFIG_POSIX_MQUEUE is not set | ||
38 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
39 | # CONFIG_TASKSTATS is not set | ||
40 | # CONFIG_UTS_NS is not set | ||
41 | # CONFIG_AUDIT is not set | ||
42 | # CONFIG_IKCONFIG is not set | ||
43 | CONFIG_SYSFS_DEPRECATED=y | ||
44 | # CONFIG_RELAY is not set | ||
45 | CONFIG_INITRAMFS_SOURCE="" | ||
46 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
47 | CONFIG_SYSCTL=y | ||
48 | CONFIG_EMBEDDED=y | ||
49 | CONFIG_SYSCTL_SYSCALL=y | ||
50 | CONFIG_KALLSYMS=y | ||
51 | # CONFIG_KALLSYMS_ALL is not set | ||
52 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
53 | # CONFIG_HOTPLUG is not set | ||
54 | CONFIG_PRINTK=y | ||
55 | CONFIG_BUG=y | ||
56 | CONFIG_ELF_CORE=y | ||
57 | CONFIG_BASE_FULL=y | ||
58 | CONFIG_FUTEX=y | ||
59 | CONFIG_EPOLL=y | ||
60 | CONFIG_SHMEM=y | ||
61 | CONFIG_SLAB=y | ||
62 | CONFIG_VM_EVENT_COUNTERS=y | ||
63 | CONFIG_RT_MUTEXES=y | ||
64 | # CONFIG_TINY_SHMEM is not set | ||
65 | CONFIG_BASE_SMALL=0 | ||
66 | # CONFIG_SLOB is not set | ||
67 | |||
68 | # | ||
69 | # Loadable module support | ||
70 | # | ||
71 | CONFIG_MODULES=y | ||
72 | CONFIG_MODULE_UNLOAD=y | ||
73 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
74 | # CONFIG_MODVERSIONS is not set | ||
75 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
76 | CONFIG_KMOD=y | ||
77 | |||
78 | # | ||
79 | # Block layer | ||
80 | # | ||
81 | CONFIG_BLOCK=y | ||
82 | # CONFIG_LBD is not set | ||
83 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
84 | # CONFIG_LSF is not set | ||
85 | |||
86 | # | ||
87 | # IO Schedulers | ||
88 | # | ||
89 | CONFIG_IOSCHED_NOOP=y | ||
90 | CONFIG_IOSCHED_AS=y | ||
91 | CONFIG_IOSCHED_DEADLINE=y | ||
92 | CONFIG_IOSCHED_CFQ=y | ||
93 | CONFIG_DEFAULT_AS=y | ||
94 | # CONFIG_DEFAULT_DEADLINE is not set | ||
95 | # CONFIG_DEFAULT_CFQ is not set | ||
96 | # CONFIG_DEFAULT_NOOP is not set | ||
97 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
98 | |||
99 | # | ||
100 | # Processor | ||
101 | # | ||
102 | # CONFIG_6xx is not set | ||
103 | # CONFIG_40x is not set | ||
104 | CONFIG_44x=y | ||
105 | # CONFIG_8xx is not set | ||
106 | # CONFIG_E200 is not set | ||
107 | # CONFIG_E500 is not set | ||
108 | CONFIG_PPC_DCR_NATIVE=y | ||
109 | CONFIG_PPC_DCR=y | ||
110 | CONFIG_BOOKE=y | ||
111 | CONFIG_PTE_64BIT=y | ||
112 | CONFIG_PHYS_64BIT=y | ||
113 | # CONFIG_MATH_EMULATION is not set | ||
114 | # CONFIG_KEXEC is not set | ||
115 | # CONFIG_CPU_FREQ is not set | ||
116 | CONFIG_4xx=y | ||
117 | CONFIG_WANT_EARLY_SERIAL=y | ||
118 | |||
119 | # | ||
120 | # IBM 4xx options | ||
121 | # | ||
122 | # CONFIG_BAMBOO is not set | ||
123 | # CONFIG_EBONY is not set | ||
124 | # CONFIG_LUAN is not set | ||
125 | # CONFIG_YUCCA is not set | ||
126 | # CONFIG_OCOTEA is not set | ||
127 | CONFIG_TAISHAN=y | ||
128 | CONFIG_440GX=y | ||
129 | CONFIG_440A=y | ||
130 | CONFIG_IBM_OCP=y | ||
131 | CONFIG_IBM_EMAC4=y | ||
132 | CONFIG_PPC4xx_DMA=y | ||
133 | CONFIG_PPC4xx_EDMA=y | ||
134 | CONFIG_PPC_GEN550=y | ||
135 | CONFIG_NOT_COHERENT_CACHE=y | ||
136 | |||
137 | # | ||
138 | # Platform options | ||
139 | # | ||
140 | # CONFIG_PC_KEYBOARD is not set | ||
141 | # CONFIG_HIGHMEM is not set | ||
142 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
143 | # CONFIG_HZ_100 is not set | ||
144 | CONFIG_HZ_250=y | ||
145 | # CONFIG_HZ_300 is not set | ||
146 | # CONFIG_HZ_1000 is not set | ||
147 | CONFIG_HZ=250 | ||
148 | CONFIG_PREEMPT_NONE=y | ||
149 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
150 | # CONFIG_PREEMPT is not set | ||
151 | CONFIG_SELECT_MEMORY_MODEL=y | ||
152 | CONFIG_FLATMEM_MANUAL=y | ||
153 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
154 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
155 | CONFIG_FLATMEM=y | ||
156 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
157 | # CONFIG_SPARSEMEM_STATIC is not set | ||
158 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
159 | CONFIG_RESOURCES_64BIT=y | ||
160 | CONFIG_ZONE_DMA_FLAG=1 | ||
161 | CONFIG_BINFMT_ELF=y | ||
162 | # CONFIG_BINFMT_MISC is not set | ||
163 | CONFIG_CMDLINE_BOOL=y | ||
164 | CONFIG_CMDLINE="ip=on console=ttyS0,115200" | ||
165 | CONFIG_SECCOMP=y | ||
166 | CONFIG_ISA_DMA_API=y | ||
167 | |||
168 | # | ||
169 | # Bus options | ||
170 | # | ||
171 | CONFIG_ZONE_DMA=y | ||
172 | # CONFIG_PPC_I8259 is not set | ||
173 | CONFIG_PPC_INDIRECT_PCI=y | ||
174 | CONFIG_PCI=y | ||
175 | CONFIG_PCI_DOMAINS=y | ||
176 | # CONFIG_PCI_DEBUG is not set | ||
177 | |||
178 | # | ||
179 | # PCCARD (PCMCIA/CardBus) support | ||
180 | # | ||
181 | |||
182 | # | ||
183 | # Advanced setup | ||
184 | # | ||
185 | # CONFIG_ADVANCED_OPTIONS is not set | ||
186 | |||
187 | # | ||
188 | # Default settings for advanced configuration options are used | ||
189 | # | ||
190 | CONFIG_HIGHMEM_START=0xfe000000 | ||
191 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
192 | CONFIG_KERNEL_START=0xc0000000 | ||
193 | CONFIG_TASK_SIZE=0x80000000 | ||
194 | CONFIG_CONSISTENT_START=0xff100000 | ||
195 | CONFIG_CONSISTENT_SIZE=0x00200000 | ||
196 | CONFIG_BOOT_LOAD=0x01000000 | ||
197 | |||
198 | # | ||
199 | # Networking | ||
200 | # | ||
201 | CONFIG_NET=y | ||
202 | |||
203 | # | ||
204 | # Networking options | ||
205 | # | ||
206 | # CONFIG_NETDEBUG is not set | ||
207 | CONFIG_PACKET=y | ||
208 | # CONFIG_PACKET_MMAP is not set | ||
209 | CONFIG_UNIX=y | ||
210 | CONFIG_XFRM=y | ||
211 | # CONFIG_XFRM_USER is not set | ||
212 | # CONFIG_XFRM_SUB_POLICY is not set | ||
213 | # CONFIG_XFRM_MIGRATE is not set | ||
214 | # CONFIG_NET_KEY is not set | ||
215 | CONFIG_INET=y | ||
216 | # CONFIG_IP_MULTICAST is not set | ||
217 | CONFIG_IP_ADVANCED_ROUTER=y | ||
218 | CONFIG_ASK_IP_FIB_HASH=y | ||
219 | # CONFIG_IP_FIB_TRIE is not set | ||
220 | CONFIG_IP_FIB_HASH=y | ||
221 | # CONFIG_IP_MULTIPLE_TABLES is not set | ||
222 | # CONFIG_IP_ROUTE_MULTIPATH is not set | ||
223 | # CONFIG_IP_ROUTE_VERBOSE is not set | ||
224 | CONFIG_IP_PNP=y | ||
225 | # CONFIG_IP_PNP_DHCP is not set | ||
226 | CONFIG_IP_PNP_BOOTP=y | ||
227 | # CONFIG_IP_PNP_RARP is not set | ||
228 | # CONFIG_NET_IPIP is not set | ||
229 | # CONFIG_NET_IPGRE is not set | ||
230 | # CONFIG_ARPD is not set | ||
231 | # CONFIG_SYN_COOKIES is not set | ||
232 | # CONFIG_INET_AH is not set | ||
233 | # CONFIG_INET_ESP is not set | ||
234 | # CONFIG_INET_IPCOMP is not set | ||
235 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
236 | # CONFIG_INET_TUNNEL is not set | ||
237 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
238 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
239 | CONFIG_INET_XFRM_MODE_BEET=y | ||
240 | CONFIG_INET_DIAG=y | ||
241 | CONFIG_INET_TCP_DIAG=y | ||
242 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
243 | CONFIG_TCP_CONG_CUBIC=y | ||
244 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
245 | # CONFIG_TCP_MD5SIG is not set | ||
246 | # CONFIG_IPV6 is not set | ||
247 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
248 | # CONFIG_INET6_TUNNEL is not set | ||
249 | # CONFIG_NETWORK_SECMARK is not set | ||
250 | # CONFIG_NETFILTER is not set | ||
251 | |||
252 | # | ||
253 | # DCCP Configuration (EXPERIMENTAL) | ||
254 | # | ||
255 | # CONFIG_IP_DCCP is not set | ||
256 | |||
257 | # | ||
258 | # SCTP Configuration (EXPERIMENTAL) | ||
259 | # | ||
260 | # CONFIG_IP_SCTP is not set | ||
261 | |||
262 | # | ||
263 | # TIPC Configuration (EXPERIMENTAL) | ||
264 | # | ||
265 | # CONFIG_TIPC is not set | ||
266 | # CONFIG_ATM is not set | ||
267 | CONFIG_BRIDGE=y | ||
268 | # CONFIG_VLAN_8021Q is not set | ||
269 | # CONFIG_DECNET is not set | ||
270 | CONFIG_LLC=y | ||
271 | # CONFIG_LLC2 is not set | ||
272 | # CONFIG_IPX is not set | ||
273 | # CONFIG_ATALK is not set | ||
274 | # CONFIG_X25 is not set | ||
275 | # CONFIG_LAPB is not set | ||
276 | # CONFIG_ECONET is not set | ||
277 | # CONFIG_WAN_ROUTER is not set | ||
278 | |||
279 | # | ||
280 | # QoS and/or fair queueing | ||
281 | # | ||
282 | # CONFIG_NET_SCHED is not set | ||
283 | |||
284 | # | ||
285 | # Network testing | ||
286 | # | ||
287 | # CONFIG_NET_PKTGEN is not set | ||
288 | # CONFIG_HAMRADIO is not set | ||
289 | # CONFIG_IRDA is not set | ||
290 | # CONFIG_BT is not set | ||
291 | # CONFIG_IEEE80211 is not set | ||
292 | |||
293 | # | ||
294 | # Device Drivers | ||
295 | # | ||
296 | |||
297 | # | ||
298 | # Generic Driver Options | ||
299 | # | ||
300 | # CONFIG_STANDALONE is not set | ||
301 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
302 | # CONFIG_DEBUG_DRIVER is not set | ||
303 | # CONFIG_DEBUG_DEVRES is not set | ||
304 | # CONFIG_SYS_HYPERVISOR is not set | ||
305 | |||
306 | # | ||
307 | # Connector - unified userspace <-> kernelspace linker | ||
308 | # | ||
309 | # CONFIG_CONNECTOR is not set | ||
310 | |||
311 | # | ||
312 | # Memory Technology Devices (MTD) | ||
313 | # | ||
314 | CONFIG_MTD=y | ||
315 | # CONFIG_MTD_DEBUG is not set | ||
316 | CONFIG_MTD_CONCAT=y | ||
317 | CONFIG_MTD_PARTITIONS=y | ||
318 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
319 | CONFIG_MTD_CMDLINE_PARTS=y | ||
320 | |||
321 | # | ||
322 | # User Modules And Translation Layers | ||
323 | # | ||
324 | CONFIG_MTD_CHAR=y | ||
325 | CONFIG_MTD_BLKDEVS=y | ||
326 | CONFIG_MTD_BLOCK=y | ||
327 | # CONFIG_FTL is not set | ||
328 | # CONFIG_NFTL is not set | ||
329 | # CONFIG_INFTL is not set | ||
330 | # CONFIG_RFD_FTL is not set | ||
331 | # CONFIG_SSFDC is not set | ||
332 | |||
333 | # | ||
334 | # RAM/ROM/Flash chip drivers | ||
335 | # | ||
336 | CONFIG_MTD_CFI=y | ||
337 | CONFIG_MTD_JEDECPROBE=y | ||
338 | CONFIG_MTD_GEN_PROBE=y | ||
339 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
340 | CONFIG_MTD_CFI_NOSWAP=y | ||
341 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
342 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
343 | # CONFIG_MTD_CFI_GEOMETRY is not set | ||
344 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
345 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
346 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
347 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
348 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
349 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
350 | CONFIG_MTD_CFI_I1=y | ||
351 | CONFIG_MTD_CFI_I2=y | ||
352 | # CONFIG_MTD_CFI_I4 is not set | ||
353 | # CONFIG_MTD_CFI_I8 is not set | ||
354 | # CONFIG_MTD_OTP is not set | ||
355 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
356 | CONFIG_MTD_CFI_AMDSTD=y | ||
357 | # CONFIG_MTD_CFI_STAA is not set | ||
358 | CONFIG_MTD_CFI_UTIL=y | ||
359 | # CONFIG_MTD_RAM is not set | ||
360 | # CONFIG_MTD_ROM is not set | ||
361 | # CONFIG_MTD_ABSENT is not set | ||
362 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
363 | |||
364 | # | ||
365 | # Mapping drivers for chip access | ||
366 | # | ||
367 | CONFIG_MTD_COMPLEX_MAPPINGS=y | ||
368 | CONFIG_MTD_PHYSMAP=y | ||
369 | CONFIG_MTD_PHYSMAP_START=0x8000000 | ||
370 | CONFIG_MTD_PHYSMAP_LEN=0x0 | ||
371 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
372 | # CONFIG_MTD_PCI is not set | ||
373 | # CONFIG_MTD_PLATRAM is not set | ||
374 | |||
375 | # | ||
376 | # Self-contained MTD device drivers | ||
377 | # | ||
378 | # CONFIG_MTD_PMC551 is not set | ||
379 | # CONFIG_MTD_SLRAM is not set | ||
380 | # CONFIG_MTD_PHRAM is not set | ||
381 | # CONFIG_MTD_MTDRAM is not set | ||
382 | # CONFIG_MTD_BLOCK2MTD is not set | ||
383 | |||
384 | # | ||
385 | # Disk-On-Chip Device Drivers | ||
386 | # | ||
387 | # CONFIG_MTD_DOC2000 is not set | ||
388 | # CONFIG_MTD_DOC2001 is not set | ||
389 | # CONFIG_MTD_DOC2001PLUS is not set | ||
390 | |||
391 | # | ||
392 | # NAND Flash Device Drivers | ||
393 | # | ||
394 | # CONFIG_MTD_NAND is not set | ||
395 | # CONFIG_MTD_NAND_CAFE is not set | ||
396 | |||
397 | # | ||
398 | # OneNAND Flash Device Drivers | ||
399 | # | ||
400 | # CONFIG_MTD_ONENAND is not set | ||
401 | |||
402 | # | ||
403 | # Parallel port support | ||
404 | # | ||
405 | # CONFIG_PARPORT is not set | ||
406 | |||
407 | # | ||
408 | # Plug and Play support | ||
409 | # | ||
410 | |||
411 | # | ||
412 | # Block devices | ||
413 | # | ||
414 | # CONFIG_BLK_DEV_FD is not set | ||
415 | # CONFIG_BLK_CPQ_DA is not set | ||
416 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
417 | # CONFIG_BLK_DEV_DAC960 is not set | ||
418 | # CONFIG_BLK_DEV_UMEM is not set | ||
419 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
420 | # CONFIG_BLK_DEV_LOOP is not set | ||
421 | # CONFIG_BLK_DEV_NBD is not set | ||
422 | # CONFIG_BLK_DEV_SX8 is not set | ||
423 | CONFIG_BLK_DEV_RAM=y | ||
424 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
425 | CONFIG_BLK_DEV_RAM_SIZE=65536 | ||
426 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
427 | CONFIG_BLK_DEV_INITRD=y | ||
428 | # CONFIG_CDROM_PKTCDVD is not set | ||
429 | # CONFIG_ATA_OVER_ETH is not set | ||
430 | |||
431 | # | ||
432 | # Misc devices | ||
433 | # | ||
434 | # CONFIG_SGI_IOC4 is not set | ||
435 | # CONFIG_TIFM_CORE is not set | ||
436 | |||
437 | # | ||
438 | # ATA/ATAPI/MFM/RLL support | ||
439 | # | ||
440 | # CONFIG_IDE is not set | ||
441 | |||
442 | # | ||
443 | # SCSI device support | ||
444 | # | ||
445 | # CONFIG_RAID_ATTRS is not set | ||
446 | # CONFIG_SCSI is not set | ||
447 | # CONFIG_SCSI_NETLINK is not set | ||
448 | |||
449 | # | ||
450 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
451 | # | ||
452 | # CONFIG_ATA is not set | ||
453 | |||
454 | # | ||
455 | # Multi-device support (RAID and LVM) | ||
456 | # | ||
457 | # CONFIG_MD is not set | ||
458 | |||
459 | # | ||
460 | # Fusion MPT device support | ||
461 | # | ||
462 | # CONFIG_FUSION is not set | ||
463 | |||
464 | # | ||
465 | # IEEE 1394 (FireWire) support | ||
466 | # | ||
467 | # CONFIG_IEEE1394 is not set | ||
468 | |||
469 | # | ||
470 | # I2O device support | ||
471 | # | ||
472 | # CONFIG_I2O is not set | ||
473 | |||
474 | # | ||
475 | # Macintosh device drivers | ||
476 | # | ||
477 | # CONFIG_MAC_EMUMOUSEBTN is not set | ||
478 | # CONFIG_WINDFARM is not set | ||
479 | |||
480 | # | ||
481 | # Network device support | ||
482 | # | ||
483 | CONFIG_NETDEVICES=y | ||
484 | # CONFIG_DUMMY is not set | ||
485 | # CONFIG_BONDING is not set | ||
486 | # CONFIG_EQUALIZER is not set | ||
487 | # CONFIG_TUN is not set | ||
488 | |||
489 | # | ||
490 | # ARCnet devices | ||
491 | # | ||
492 | # CONFIG_ARCNET is not set | ||
493 | |||
494 | # | ||
495 | # PHY device support | ||
496 | # | ||
497 | # CONFIG_PHYLIB is not set | ||
498 | |||
499 | # | ||
500 | # Ethernet (10 or 100Mbit) | ||
501 | # | ||
502 | CONFIG_NET_ETHERNET=y | ||
503 | CONFIG_MII=y | ||
504 | # CONFIG_HAPPYMEAL is not set | ||
505 | # CONFIG_SUNGEM is not set | ||
506 | # CONFIG_CASSINI is not set | ||
507 | # CONFIG_NET_VENDOR_3COM is not set | ||
508 | |||
509 | # | ||
510 | # Tulip family network device support | ||
511 | # | ||
512 | # CONFIG_NET_TULIP is not set | ||
513 | # CONFIG_HP100 is not set | ||
514 | CONFIG_IBM_EMAC=y | ||
515 | CONFIG_IBM_EMAC_RXB=128 | ||
516 | CONFIG_IBM_EMAC_TXB=128 | ||
517 | CONFIG_IBM_EMAC_POLL_WEIGHT=32 | ||
518 | CONFIG_IBM_EMAC_RX_COPY_THRESHOLD=256 | ||
519 | CONFIG_IBM_EMAC_RX_SKB_HEADROOM=0 | ||
520 | CONFIG_IBM_EMAC_PHY_RX_CLK_FIX=y | ||
521 | # CONFIG_IBM_EMAC_DEBUG is not set | ||
522 | CONFIG_IBM_EMAC_ZMII=y | ||
523 | CONFIG_IBM_EMAC_RGMII=y | ||
524 | CONFIG_IBM_EMAC_TAH=y | ||
525 | CONFIG_NET_PCI=y | ||
526 | # CONFIG_PCNET32 is not set | ||
527 | # CONFIG_AMD8111_ETH is not set | ||
528 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
529 | # CONFIG_B44 is not set | ||
530 | # CONFIG_FORCEDETH is not set | ||
531 | # CONFIG_DGRS is not set | ||
532 | # CONFIG_EEPRO100 is not set | ||
533 | CONFIG_E100=y | ||
534 | # CONFIG_FEALNX is not set | ||
535 | # CONFIG_NATSEMI is not set | ||
536 | # CONFIG_NE2K_PCI is not set | ||
537 | # CONFIG_8139CP is not set | ||
538 | # CONFIG_8139TOO is not set | ||
539 | # CONFIG_SIS900 is not set | ||
540 | # CONFIG_EPIC100 is not set | ||
541 | # CONFIG_SUNDANCE is not set | ||
542 | # CONFIG_TLAN is not set | ||
543 | # CONFIG_VIA_RHINE is not set | ||
544 | # CONFIG_SC92031 is not set | ||
545 | |||
546 | # | ||
547 | # Ethernet (1000 Mbit) | ||
548 | # | ||
549 | # CONFIG_ACENIC is not set | ||
550 | # CONFIG_DL2K is not set | ||
551 | # CONFIG_E1000 is not set | ||
552 | # CONFIG_NS83820 is not set | ||
553 | # CONFIG_HAMACHI is not set | ||
554 | # CONFIG_YELLOWFIN is not set | ||
555 | # CONFIG_R8169 is not set | ||
556 | # CONFIG_SIS190 is not set | ||
557 | # CONFIG_SKGE is not set | ||
558 | # CONFIG_SKY2 is not set | ||
559 | # CONFIG_SK98LIN is not set | ||
560 | # CONFIG_VIA_VELOCITY is not set | ||
561 | # CONFIG_TIGON3 is not set | ||
562 | # CONFIG_BNX2 is not set | ||
563 | # CONFIG_QLA3XXX is not set | ||
564 | # CONFIG_ATL1 is not set | ||
565 | |||
566 | # | ||
567 | # Ethernet (10000 Mbit) | ||
568 | # | ||
569 | # CONFIG_CHELSIO_T1 is not set | ||
570 | # CONFIG_CHELSIO_T3 is not set | ||
571 | # CONFIG_IXGB is not set | ||
572 | # CONFIG_S2IO is not set | ||
573 | # CONFIG_MYRI10GE is not set | ||
574 | # CONFIG_NETXEN_NIC is not set | ||
575 | |||
576 | # | ||
577 | # Token Ring devices | ||
578 | # | ||
579 | # CONFIG_TR is not set | ||
580 | |||
581 | # | ||
582 | # Wireless LAN (non-hamradio) | ||
583 | # | ||
584 | # CONFIG_NET_RADIO is not set | ||
585 | |||
586 | # | ||
587 | # Wan interfaces | ||
588 | # | ||
589 | # CONFIG_WAN is not set | ||
590 | # CONFIG_FDDI is not set | ||
591 | # CONFIG_HIPPI is not set | ||
592 | CONFIG_PPP=y | ||
593 | # CONFIG_PPP_MULTILINK is not set | ||
594 | # CONFIG_PPP_FILTER is not set | ||
595 | # CONFIG_PPP_ASYNC is not set | ||
596 | # CONFIG_PPP_SYNC_TTY is not set | ||
597 | # CONFIG_PPP_DEFLATE is not set | ||
598 | # CONFIG_PPP_BSDCOMP is not set | ||
599 | # CONFIG_PPP_MPPE is not set | ||
600 | CONFIG_PPPOE=y | ||
601 | # CONFIG_SLIP is not set | ||
602 | CONFIG_SLHC=y | ||
603 | # CONFIG_SHAPER is not set | ||
604 | # CONFIG_NETCONSOLE is not set | ||
605 | # CONFIG_NETPOLL is not set | ||
606 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
607 | |||
608 | # | ||
609 | # ISDN subsystem | ||
610 | # | ||
611 | # CONFIG_ISDN is not set | ||
612 | |||
613 | # | ||
614 | # Telephony Support | ||
615 | # | ||
616 | # CONFIG_PHONE is not set | ||
617 | |||
618 | # | ||
619 | # Input device support | ||
620 | # | ||
621 | # CONFIG_INPUT is not set | ||
622 | |||
623 | # | ||
624 | # Hardware I/O ports | ||
625 | # | ||
626 | CONFIG_SERIO=y | ||
627 | # CONFIG_SERIO_I8042 is not set | ||
628 | # CONFIG_SERIO_SERPORT is not set | ||
629 | # CONFIG_SERIO_PCIPS2 is not set | ||
630 | # CONFIG_SERIO_LIBPS2 is not set | ||
631 | # CONFIG_SERIO_RAW is not set | ||
632 | # CONFIG_GAMEPORT is not set | ||
633 | |||
634 | # | ||
635 | # Character devices | ||
636 | # | ||
637 | # CONFIG_VT is not set | ||
638 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
639 | |||
640 | # | ||
641 | # Serial drivers | ||
642 | # | ||
643 | CONFIG_SERIAL_8250=y | ||
644 | CONFIG_SERIAL_8250_CONSOLE=y | ||
645 | CONFIG_SERIAL_8250_PCI=y | ||
646 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
647 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
648 | CONFIG_SERIAL_8250_EXTENDED=y | ||
649 | # CONFIG_SERIAL_8250_MANY_PORTS is not set | ||
650 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
651 | # CONFIG_SERIAL_8250_DETECT_IRQ is not set | ||
652 | # CONFIG_SERIAL_8250_RSA is not set | ||
653 | |||
654 | # | ||
655 | # Non-8250 serial port support | ||
656 | # | ||
657 | # CONFIG_SERIAL_UARTLITE is not set | ||
658 | CONFIG_SERIAL_CORE=y | ||
659 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
660 | # CONFIG_SERIAL_JSM is not set | ||
661 | CONFIG_UNIX98_PTYS=y | ||
662 | CONFIG_LEGACY_PTYS=y | ||
663 | CONFIG_LEGACY_PTY_COUNT=256 | ||
664 | |||
665 | # | ||
666 | # IPMI | ||
667 | # | ||
668 | # CONFIG_IPMI_HANDLER is not set | ||
669 | |||
670 | # | ||
671 | # Watchdog Cards | ||
672 | # | ||
673 | # CONFIG_WATCHDOG is not set | ||
674 | CONFIG_HW_RANDOM=m | ||
675 | # CONFIG_NVRAM is not set | ||
676 | # CONFIG_GEN_RTC is not set | ||
677 | # CONFIG_DTLK is not set | ||
678 | # CONFIG_R3964 is not set | ||
679 | # CONFIG_APPLICOM is not set | ||
680 | # CONFIG_AGP is not set | ||
681 | # CONFIG_DRM is not set | ||
682 | # CONFIG_RAW_DRIVER is not set | ||
683 | |||
684 | # | ||
685 | # TPM devices | ||
686 | # | ||
687 | # CONFIG_TCG_TPM is not set | ||
688 | |||
689 | # | ||
690 | # I2C support | ||
691 | # | ||
692 | CONFIG_I2C=y | ||
693 | CONFIG_I2C_CHARDEV=y | ||
694 | |||
695 | # | ||
696 | # I2C Algorithms | ||
697 | # | ||
698 | # CONFIG_I2C_ALGOBIT is not set | ||
699 | # CONFIG_I2C_ALGOPCF is not set | ||
700 | # CONFIG_I2C_ALGOPCA is not set | ||
701 | |||
702 | # | ||
703 | # I2C Hardware Bus support | ||
704 | # | ||
705 | # CONFIG_I2C_ALI1535 is not set | ||
706 | # CONFIG_I2C_ALI1563 is not set | ||
707 | # CONFIG_I2C_ALI15X3 is not set | ||
708 | # CONFIG_I2C_AMD756 is not set | ||
709 | # CONFIG_I2C_AMD8111 is not set | ||
710 | # CONFIG_I2C_I801 is not set | ||
711 | # CONFIG_I2C_I810 is not set | ||
712 | # CONFIG_I2C_PIIX4 is not set | ||
713 | CONFIG_I2C_IBM_IIC=y | ||
714 | # CONFIG_I2C_MPC is not set | ||
715 | # CONFIG_I2C_NFORCE2 is not set | ||
716 | # CONFIG_I2C_OCORES is not set | ||
717 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
718 | # CONFIG_I2C_PROSAVAGE is not set | ||
719 | # CONFIG_I2C_SAVAGE4 is not set | ||
720 | # CONFIG_I2C_SIS5595 is not set | ||
721 | # CONFIG_I2C_SIS630 is not set | ||
722 | # CONFIG_I2C_SIS96X is not set | ||
723 | # CONFIG_I2C_STUB is not set | ||
724 | # CONFIG_I2C_VIA is not set | ||
725 | # CONFIG_I2C_VIAPRO is not set | ||
726 | # CONFIG_I2C_VOODOO3 is not set | ||
727 | # CONFIG_I2C_PCA_ISA is not set | ||
728 | |||
729 | # | ||
730 | # Miscellaneous I2C Chip support | ||
731 | # | ||
732 | # CONFIG_SENSORS_DS1337 is not set | ||
733 | # CONFIG_SENSORS_DS1374 is not set | ||
734 | CONFIG_SENSORS_EEPROM=y | ||
735 | # CONFIG_SENSORS_PCF8574 is not set | ||
736 | # CONFIG_SENSORS_PCA9539 is not set | ||
737 | # CONFIG_SENSORS_PCF8591 is not set | ||
738 | # CONFIG_SENSORS_M41T00 is not set | ||
739 | # CONFIG_SENSORS_MAX6875 is not set | ||
740 | # CONFIG_I2C_DEBUG_CORE is not set | ||
741 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
742 | # CONFIG_I2C_DEBUG_BUS is not set | ||
743 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
744 | |||
745 | # | ||
746 | # SPI support | ||
747 | # | ||
748 | # CONFIG_SPI is not set | ||
749 | # CONFIG_SPI_MASTER is not set | ||
750 | |||
751 | # | ||
752 | # Dallas's 1-wire bus | ||
753 | # | ||
754 | # CONFIG_W1 is not set | ||
755 | |||
756 | # | ||
757 | # Hardware Monitoring support | ||
758 | # | ||
759 | CONFIG_HWMON=y | ||
760 | # CONFIG_HWMON_VID is not set | ||
761 | # CONFIG_SENSORS_ABITUGURU is not set | ||
762 | # CONFIG_SENSORS_ADM1021 is not set | ||
763 | # CONFIG_SENSORS_ADM1025 is not set | ||
764 | # CONFIG_SENSORS_ADM1026 is not set | ||
765 | # CONFIG_SENSORS_ADM1031 is not set | ||
766 | # CONFIG_SENSORS_ADM9240 is not set | ||
767 | # CONFIG_SENSORS_ASB100 is not set | ||
768 | # CONFIG_SENSORS_ATXP1 is not set | ||
769 | # CONFIG_SENSORS_DS1621 is not set | ||
770 | # CONFIG_SENSORS_F71805F is not set | ||
771 | # CONFIG_SENSORS_FSCHER is not set | ||
772 | # CONFIG_SENSORS_FSCPOS is not set | ||
773 | # CONFIG_SENSORS_GL518SM is not set | ||
774 | # CONFIG_SENSORS_GL520SM is not set | ||
775 | # CONFIG_SENSORS_IT87 is not set | ||
776 | # CONFIG_SENSORS_LM63 is not set | ||
777 | # CONFIG_SENSORS_LM75 is not set | ||
778 | # CONFIG_SENSORS_LM77 is not set | ||
779 | # CONFIG_SENSORS_LM78 is not set | ||
780 | # CONFIG_SENSORS_LM80 is not set | ||
781 | # CONFIG_SENSORS_LM83 is not set | ||
782 | # CONFIG_SENSORS_LM85 is not set | ||
783 | # CONFIG_SENSORS_LM87 is not set | ||
784 | # CONFIG_SENSORS_LM90 is not set | ||
785 | # CONFIG_SENSORS_LM92 is not set | ||
786 | # CONFIG_SENSORS_MAX1619 is not set | ||
787 | # CONFIG_SENSORS_PC87360 is not set | ||
788 | # CONFIG_SENSORS_PC87427 is not set | ||
789 | # CONFIG_SENSORS_SIS5595 is not set | ||
790 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
791 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
792 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
793 | # CONFIG_SENSORS_VIA686A is not set | ||
794 | # CONFIG_SENSORS_VT1211 is not set | ||
795 | # CONFIG_SENSORS_VT8231 is not set | ||
796 | # CONFIG_SENSORS_W83781D is not set | ||
797 | # CONFIG_SENSORS_W83791D is not set | ||
798 | # CONFIG_SENSORS_W83792D is not set | ||
799 | # CONFIG_SENSORS_W83793 is not set | ||
800 | # CONFIG_SENSORS_W83L785TS is not set | ||
801 | # CONFIG_SENSORS_W83627HF is not set | ||
802 | # CONFIG_SENSORS_W83627EHF is not set | ||
803 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
804 | |||
805 | # | ||
806 | # Multimedia devices | ||
807 | # | ||
808 | # CONFIG_VIDEO_DEV is not set | ||
809 | |||
810 | # | ||
811 | # Digital Video Broadcasting Devices | ||
812 | # | ||
813 | # CONFIG_DVB is not set | ||
814 | |||
815 | # | ||
816 | # Graphics support | ||
817 | # | ||
818 | CONFIG_FIRMWARE_EDID=y | ||
819 | # CONFIG_FB is not set | ||
820 | # CONFIG_FB_IBM_GXT4500 is not set | ||
821 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
822 | |||
823 | # | ||
824 | # Sound | ||
825 | # | ||
826 | # CONFIG_SOUND is not set | ||
827 | |||
828 | # | ||
829 | # USB support | ||
830 | # | ||
831 | CONFIG_USB_ARCH_HAS_HCD=y | ||
832 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
833 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
834 | # CONFIG_USB is not set | ||
835 | |||
836 | # | ||
837 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
838 | # | ||
839 | |||
840 | # | ||
841 | # USB Gadget Support | ||
842 | # | ||
843 | # CONFIG_USB_GADGET is not set | ||
844 | |||
845 | # | ||
846 | # MMC/SD Card support | ||
847 | # | ||
848 | # CONFIG_MMC is not set | ||
849 | |||
850 | # | ||
851 | # LED devices | ||
852 | # | ||
853 | # CONFIG_NEW_LEDS is not set | ||
854 | |||
855 | # | ||
856 | # LED drivers | ||
857 | # | ||
858 | |||
859 | # | ||
860 | # LED Triggers | ||
861 | # | ||
862 | |||
863 | # | ||
864 | # InfiniBand support | ||
865 | # | ||
866 | # CONFIG_INFINIBAND is not set | ||
867 | |||
868 | # | ||
869 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
870 | # | ||
871 | |||
872 | # | ||
873 | # Real Time Clock | ||
874 | # | ||
875 | # CONFIG_RTC_CLASS is not set | ||
876 | |||
877 | # | ||
878 | # DMA Engine support | ||
879 | # | ||
880 | # CONFIG_DMA_ENGINE is not set | ||
881 | |||
882 | # | ||
883 | # DMA Clients | ||
884 | # | ||
885 | |||
886 | # | ||
887 | # DMA Devices | ||
888 | # | ||
889 | |||
890 | # | ||
891 | # Auxiliary Display support | ||
892 | # | ||
893 | |||
894 | # | ||
895 | # Virtualization | ||
896 | # | ||
897 | |||
898 | # | ||
899 | # File systems | ||
900 | # | ||
901 | CONFIG_EXT2_FS=y | ||
902 | CONFIG_EXT2_FS_XATTR=y | ||
903 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
904 | CONFIG_EXT2_FS_SECURITY=y | ||
905 | CONFIG_EXT2_FS_XIP=y | ||
906 | CONFIG_FS_XIP=y | ||
907 | CONFIG_EXT3_FS=y | ||
908 | CONFIG_EXT3_FS_XATTR=y | ||
909 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
910 | CONFIG_EXT3_FS_SECURITY=y | ||
911 | # CONFIG_EXT4DEV_FS is not set | ||
912 | CONFIG_JBD=y | ||
913 | CONFIG_JBD_DEBUG=y | ||
914 | CONFIG_FS_MBCACHE=y | ||
915 | # CONFIG_REISERFS_FS is not set | ||
916 | # CONFIG_JFS_FS is not set | ||
917 | CONFIG_FS_POSIX_ACL=y | ||
918 | # CONFIG_XFS_FS is not set | ||
919 | # CONFIG_GFS2_FS is not set | ||
920 | # CONFIG_OCFS2_FS is not set | ||
921 | # CONFIG_MINIX_FS is not set | ||
922 | # CONFIG_ROMFS_FS is not set | ||
923 | CONFIG_INOTIFY=y | ||
924 | CONFIG_INOTIFY_USER=y | ||
925 | # CONFIG_QUOTA is not set | ||
926 | CONFIG_DNOTIFY=y | ||
927 | # CONFIG_AUTOFS_FS is not set | ||
928 | # CONFIG_AUTOFS4_FS is not set | ||
929 | # CONFIG_FUSE_FS is not set | ||
930 | |||
931 | # | ||
932 | # CD-ROM/DVD Filesystems | ||
933 | # | ||
934 | # CONFIG_ISO9660_FS is not set | ||
935 | # CONFIG_UDF_FS is not set | ||
936 | |||
937 | # | ||
938 | # DOS/FAT/NT Filesystems | ||
939 | # | ||
940 | # CONFIG_MSDOS_FS is not set | ||
941 | # CONFIG_VFAT_FS is not set | ||
942 | # CONFIG_NTFS_FS is not set | ||
943 | |||
944 | # | ||
945 | # Pseudo filesystems | ||
946 | # | ||
947 | CONFIG_PROC_FS=y | ||
948 | CONFIG_PROC_KCORE=y | ||
949 | CONFIG_PROC_SYSCTL=y | ||
950 | CONFIG_SYSFS=y | ||
951 | CONFIG_TMPFS=y | ||
952 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
953 | # CONFIG_HUGETLB_PAGE is not set | ||
954 | CONFIG_RAMFS=y | ||
955 | # CONFIG_CONFIGFS_FS is not set | ||
956 | |||
957 | # | ||
958 | # Miscellaneous filesystems | ||
959 | # | ||
960 | # CONFIG_ADFS_FS is not set | ||
961 | # CONFIG_AFFS_FS is not set | ||
962 | # CONFIG_HFS_FS is not set | ||
963 | # CONFIG_HFSPLUS_FS is not set | ||
964 | # CONFIG_BEFS_FS is not set | ||
965 | # CONFIG_BFS_FS is not set | ||
966 | # CONFIG_EFS_FS is not set | ||
967 | CONFIG_JFFS2_FS=y | ||
968 | CONFIG_JFFS2_FS_DEBUG=0 | ||
969 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
970 | CONFIG_JFFS2_SUMMARY=y | ||
971 | # CONFIG_JFFS2_FS_XATTR is not set | ||
972 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
973 | CONFIG_JFFS2_ZLIB=y | ||
974 | CONFIG_JFFS2_RTIME=y | ||
975 | # CONFIG_JFFS2_RUBIN is not set | ||
976 | # CONFIG_CRAMFS is not set | ||
977 | # CONFIG_VXFS_FS is not set | ||
978 | # CONFIG_HPFS_FS is not set | ||
979 | # CONFIG_QNX4FS_FS is not set | ||
980 | # CONFIG_SYSV_FS is not set | ||
981 | # CONFIG_UFS_FS is not set | ||
982 | |||
983 | # | ||
984 | # Network File Systems | ||
985 | # | ||
986 | CONFIG_NFS_FS=y | ||
987 | # CONFIG_NFS_V3 is not set | ||
988 | # CONFIG_NFS_V4 is not set | ||
989 | # CONFIG_NFS_DIRECTIO is not set | ||
990 | # CONFIG_NFSD is not set | ||
991 | CONFIG_ROOT_NFS=y | ||
992 | CONFIG_LOCKD=y | ||
993 | CONFIG_NFS_COMMON=y | ||
994 | CONFIG_SUNRPC=y | ||
995 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
996 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
997 | # CONFIG_SMB_FS is not set | ||
998 | # CONFIG_CIFS is not set | ||
999 | # CONFIG_NCP_FS is not set | ||
1000 | # CONFIG_CODA_FS is not set | ||
1001 | # CONFIG_AFS_FS is not set | ||
1002 | # CONFIG_9P_FS is not set | ||
1003 | |||
1004 | # | ||
1005 | # Partition Types | ||
1006 | # | ||
1007 | # CONFIG_PARTITION_ADVANCED is not set | ||
1008 | CONFIG_MSDOS_PARTITION=y | ||
1009 | |||
1010 | # | ||
1011 | # Native Language Support | ||
1012 | # | ||
1013 | # CONFIG_NLS is not set | ||
1014 | |||
1015 | # | ||
1016 | # Distributed Lock Manager | ||
1017 | # | ||
1018 | # CONFIG_DLM is not set | ||
1019 | |||
1020 | # | ||
1021 | # Library routines | ||
1022 | # | ||
1023 | CONFIG_BITREVERSE=y | ||
1024 | # CONFIG_CRC_CCITT is not set | ||
1025 | # CONFIG_CRC16 is not set | ||
1026 | CONFIG_CRC32=y | ||
1027 | # CONFIG_LIBCRC32C is not set | ||
1028 | CONFIG_ZLIB_INFLATE=y | ||
1029 | CONFIG_ZLIB_DEFLATE=y | ||
1030 | CONFIG_PLIST=y | ||
1031 | CONFIG_HAS_IOMEM=y | ||
1032 | CONFIG_HAS_IOPORT=y | ||
1033 | # CONFIG_PROFILING is not set | ||
1034 | |||
1035 | # | ||
1036 | # Kernel hacking | ||
1037 | # | ||
1038 | # CONFIG_PRINTK_TIME is not set | ||
1039 | CONFIG_ENABLE_MUST_CHECK=y | ||
1040 | # CONFIG_MAGIC_SYSRQ is not set | ||
1041 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1042 | CONFIG_DEBUG_FS=y | ||
1043 | # CONFIG_HEADERS_CHECK is not set | ||
1044 | CONFIG_DEBUG_KERNEL=y | ||
1045 | CONFIG_LOG_BUF_SHIFT=14 | ||
1046 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1047 | # CONFIG_SCHEDSTATS is not set | ||
1048 | # CONFIG_DEBUG_SLAB is not set | ||
1049 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1050 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1051 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1052 | CONFIG_DEBUG_MUTEXES=y | ||
1053 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1054 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1055 | # CONFIG_DEBUG_KOBJECT is not set | ||
1056 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1057 | CONFIG_DEBUG_INFO=y | ||
1058 | # CONFIG_DEBUG_VM is not set | ||
1059 | # CONFIG_DEBUG_LIST is not set | ||
1060 | CONFIG_FORCED_INLINING=y | ||
1061 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1062 | # CONFIG_KGDB is not set | ||
1063 | # CONFIG_XMON is not set | ||
1064 | CONFIG_BDI_SWITCH=y | ||
1065 | # CONFIG_SERIAL_TEXT_DEBUG is not set | ||
1066 | CONFIG_PPC_OCP=y | ||
1067 | |||
1068 | # | ||
1069 | # Security options | ||
1070 | # | ||
1071 | # CONFIG_KEYS is not set | ||
1072 | # CONFIG_SECURITY is not set | ||
1073 | |||
1074 | # | ||
1075 | # Cryptographic options | ||
1076 | # | ||
1077 | # CONFIG_CRYPTO is not set | ||
diff --git a/arch/ppc/kernel/head_fsl_booke.S b/arch/ppc/kernel/head_fsl_booke.S index 66877bdfe0b7..1f155d399d57 100644 --- a/arch/ppc/kernel/head_fsl_booke.S +++ b/arch/ppc/kernel/head_fsl_booke.S | |||
@@ -206,7 +206,8 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
206 | rlwimi r7,r3,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r3) */ | 206 | rlwimi r7,r3,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r3) */ |
207 | mtspr SPRN_MAS0,r7 | 207 | mtspr SPRN_MAS0,r7 |
208 | tlbre | 208 | tlbre |
209 | li r6,0 | 209 | mfspr r6,SPRN_MAS1 |
210 | rlwinm r6,r6,0,2,0 /* clear IPROT */ | ||
210 | mtspr SPRN_MAS1,r6 | 211 | mtspr SPRN_MAS1,r6 |
211 | tlbwe | 212 | tlbwe |
212 | /* Invalidate TLB1 */ | 213 | /* Invalidate TLB1 */ |
@@ -248,6 +249,8 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
248 | rlwimi r7,r5,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r5) */ | 249 | rlwimi r7,r5,16,4,15 /* Setup MAS0 = TLBSEL | ESEL(r5) */ |
249 | mtspr SPRN_MAS0,r7 | 250 | mtspr SPRN_MAS0,r7 |
250 | tlbre | 251 | tlbre |
252 | mfspr r8,SPRN_MAS1 | ||
253 | rlwinm r8,r8,0,2,0 /* clear IPROT */ | ||
251 | mtspr SPRN_MAS1,r8 | 254 | mtspr SPRN_MAS1,r8 |
252 | tlbwe | 255 | tlbwe |
253 | /* Invalidate TLB1 */ | 256 | /* Invalidate TLB1 */ |
@@ -889,7 +892,6 @@ load_up_spe: | |||
889 | REST_GPR(9, r11) | 892 | REST_GPR(9, r11) |
890 | REST_GPR(12, r11) | 893 | REST_GPR(12, r11) |
891 | lwz r11,GPR11(r11) | 894 | lwz r11,GPR11(r11) |
892 | SYNC | ||
893 | rfi | 895 | rfi |
894 | 896 | ||
895 | /* | 897 | /* |
@@ -953,7 +955,6 @@ _GLOBAL(giveup_altivec) | |||
953 | _GLOBAL(giveup_spe) | 955 | _GLOBAL(giveup_spe) |
954 | mfmsr r5 | 956 | mfmsr r5 |
955 | oris r5,r5,MSR_SPE@h | 957 | oris r5,r5,MSR_SPE@h |
956 | SYNC | ||
957 | mtmsr r5 /* enable use of SPE now */ | 958 | mtmsr r5 /* enable use of SPE now */ |
958 | isync | 959 | isync |
959 | cmpi 0,r3,0 | 960 | cmpi 0,r3,0 |
diff --git a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c index 1f49503317cb..1318b6f4c3df 100644 --- a/arch/ppc/kernel/ppc_ksyms.c +++ b/arch/ppc/kernel/ppc_ksyms.c | |||
@@ -271,7 +271,7 @@ EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */ | |||
271 | extern long *intercept_table; | 271 | extern long *intercept_table; |
272 | EXPORT_SYMBOL(intercept_table); | 272 | EXPORT_SYMBOL(intercept_table); |
273 | #endif /* CONFIG_PPC_STD_MMU */ | 273 | #endif /* CONFIG_PPC_STD_MMU */ |
274 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | 274 | #ifdef CONFIG_PPC_DCR_NATIVE |
275 | EXPORT_SYMBOL(__mtdcr); | 275 | EXPORT_SYMBOL(__mtdcr); |
276 | EXPORT_SYMBOL(__mfdcr); | 276 | EXPORT_SYMBOL(__mfdcr); |
277 | #endif | 277 | #endif |
diff --git a/arch/ppc/mm/pgtable.c b/arch/ppc/mm/pgtable.c index 82b06a1ef95d..c023b7298809 100644 --- a/arch/ppc/mm/pgtable.c +++ b/arch/ppc/mm/pgtable.c | |||
@@ -314,7 +314,7 @@ void __init mapin_ram(void) | |||
314 | } | 314 | } |
315 | 315 | ||
316 | /* is x a power of 4? */ | 316 | /* is x a power of 4? */ |
317 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)) | 317 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1) |
318 | 318 | ||
319 | /* | 319 | /* |
320 | * Set up a mapping for a block of I/O. | 320 | * Set up a mapping for a block of I/O. |
diff --git a/arch/ppc/platforms/4xx/Kconfig b/arch/ppc/platforms/4xx/Kconfig index 6980de420e92..705ae56016f0 100644 --- a/arch/ppc/platforms/4xx/Kconfig +++ b/arch/ppc/platforms/4xx/Kconfig | |||
@@ -98,6 +98,12 @@ config OCOTEA | |||
98 | help | 98 | help |
99 | This option enables support for the IBM PPC440GX evaluation board. | 99 | This option enables support for the IBM PPC440GX evaluation board. |
100 | 100 | ||
101 | config TAISHAN | ||
102 | bool "Taishan" | ||
103 | select WANT_EARLY_SERIAL | ||
104 | help | ||
105 | This option enables support for the AMCC PPC440GX evaluation board. | ||
106 | |||
101 | endchoice | 107 | endchoice |
102 | 108 | ||
103 | config EP405PC | 109 | config EP405PC |
@@ -126,7 +132,7 @@ config 440GP | |||
126 | 132 | ||
127 | config 440GX | 133 | config 440GX |
128 | bool | 134 | bool |
129 | depends on OCOTEA | 135 | depends on OCOTEA || TAISHAN |
130 | default y | 136 | default y |
131 | 137 | ||
132 | config 440SP | 138 | config 440SP |
@@ -173,7 +179,7 @@ config BOOKE | |||
173 | 179 | ||
174 | config IBM_OCP | 180 | config IBM_OCP |
175 | bool | 181 | bool |
176 | depends on ASH || BAMBOO || BUBINGA || CPCI405 || EBONY || EP405 || LUAN || YUCCA || OCOTEA || REDWOOD_5 || REDWOOD_6 || SYCAMORE || WALNUT | 182 | depends on ASH || BAMBOO || BUBINGA || CPCI405 || EBONY || EP405 || LUAN || YUCCA || OCOTEA || REDWOOD_5 || REDWOOD_6 || SYCAMORE || TAISHAN || WALNUT |
177 | default y | 183 | default y |
178 | 184 | ||
179 | config IBM_EMAC4 | 185 | config IBM_EMAC4 |
diff --git a/arch/ppc/platforms/4xx/Makefile b/arch/ppc/platforms/4xx/Makefile index a04a0d0a0f5c..fa6610bccaf9 100644 --- a/arch/ppc/platforms/4xx/Makefile +++ b/arch/ppc/platforms/4xx/Makefile | |||
@@ -12,6 +12,7 @@ obj-$(CONFIG_OCOTEA) += ocotea.o | |||
12 | obj-$(CONFIG_REDWOOD_5) += redwood5.o | 12 | obj-$(CONFIG_REDWOOD_5) += redwood5.o |
13 | obj-$(CONFIG_REDWOOD_6) += redwood6.o | 13 | obj-$(CONFIG_REDWOOD_6) += redwood6.o |
14 | obj-$(CONFIG_SYCAMORE) += sycamore.o | 14 | obj-$(CONFIG_SYCAMORE) += sycamore.o |
15 | obj-$(CONFIG_TAISHAN) += taishan.o | ||
15 | obj-$(CONFIG_WALNUT) += walnut.o | 16 | obj-$(CONFIG_WALNUT) += walnut.o |
16 | obj-$(CONFIG_XILINX_ML300) += xilinx_ml300.o | 17 | obj-$(CONFIG_XILINX_ML300) += xilinx_ml300.o |
17 | obj-$(CONFIG_XILINX_ML403) += xilinx_ml403.o | 18 | obj-$(CONFIG_XILINX_ML403) += xilinx_ml403.o |
diff --git a/arch/ppc/platforms/4xx/taishan.c b/arch/ppc/platforms/4xx/taishan.c new file mode 100644 index 000000000000..bb0253eef45a --- /dev/null +++ b/arch/ppc/platforms/4xx/taishan.c | |||
@@ -0,0 +1,395 @@ | |||
1 | /* | ||
2 | * arch/ppc/platforms/4xx/taishan.c | ||
3 | * | ||
4 | * AMCC Taishan board specific routines | ||
5 | * | ||
6 | * Copyright 2007 DENX Software Engineering, Stefan Roese <sr@denx.de> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | */ | ||
13 | |||
14 | #include <linux/stddef.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/errno.h> | ||
18 | #include <linux/reboot.h> | ||
19 | #include <linux/pci.h> | ||
20 | #include <linux/kdev_t.h> | ||
21 | #include <linux/types.h> | ||
22 | #include <linux/major.h> | ||
23 | #include <linux/blkdev.h> | ||
24 | #include <linux/console.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/ide.h> | ||
27 | #include <linux/initrd.h> | ||
28 | #include <linux/seq_file.h> | ||
29 | #include <linux/root_dev.h> | ||
30 | #include <linux/tty.h> | ||
31 | #include <linux/serial.h> | ||
32 | #include <linux/serial_core.h> | ||
33 | #include <linux/platform_device.h> | ||
34 | #include <linux/mtd/partitions.h> | ||
35 | #include <linux/mtd/nand.h> | ||
36 | #include <linux/mtd/ndfc.h> | ||
37 | #include <linux/mtd/physmap.h> | ||
38 | |||
39 | #include <asm/machdep.h> | ||
40 | #include <asm/ocp.h> | ||
41 | #include <asm/bootinfo.h> | ||
42 | #include <asm/ppcboot.h> | ||
43 | |||
44 | #include <syslib/gen550.h> | ||
45 | #include <syslib/ibm440gx_common.h> | ||
46 | |||
47 | extern bd_t __res; | ||
48 | |||
49 | static struct ibm44x_clocks clocks __initdata; | ||
50 | |||
51 | /* | ||
52 | * NOR FLASH configuration (using mtd physmap driver) | ||
53 | */ | ||
54 | |||
55 | /* start will be added dynamically, end is always fixed */ | ||
56 | static struct resource taishan_nor_resource = { | ||
57 | .start = TAISHAN_FLASH_ADDR, | ||
58 | .end = 0x1ffffffffULL, | ||
59 | .flags = IORESOURCE_MEM, | ||
60 | }; | ||
61 | |||
62 | #define RW_PART0_OF 0 | ||
63 | #define RW_PART0_SZ 0x180000 | ||
64 | #define RW_PART1_SZ 0x200000 | ||
65 | /* Partition 2 will be autosized dynamically... */ | ||
66 | #define RW_PART3_SZ 0x80000 | ||
67 | #define RW_PART4_SZ 0x40000 | ||
68 | |||
69 | static struct mtd_partition taishan_nor_parts[] = { | ||
70 | { | ||
71 | .name = "kernel", | ||
72 | .offset = 0, | ||
73 | .size = RW_PART0_SZ | ||
74 | }, | ||
75 | { | ||
76 | .name = "root", | ||
77 | .offset = MTDPART_OFS_APPEND, | ||
78 | .size = RW_PART1_SZ, | ||
79 | }, | ||
80 | { | ||
81 | .name = "user", | ||
82 | .offset = MTDPART_OFS_APPEND, | ||
83 | /* .size = RW_PART2_SZ */ /* will be adjusted dynamically */ | ||
84 | }, | ||
85 | { | ||
86 | .name = "env", | ||
87 | .offset = MTDPART_OFS_APPEND, | ||
88 | .size = RW_PART3_SZ, | ||
89 | }, | ||
90 | { | ||
91 | .name = "u-boot", | ||
92 | .offset = MTDPART_OFS_APPEND, | ||
93 | .size = RW_PART4_SZ, | ||
94 | } | ||
95 | }; | ||
96 | |||
97 | static struct physmap_flash_data taishan_nor_data = { | ||
98 | .width = 4, | ||
99 | .parts = taishan_nor_parts, | ||
100 | .nr_parts = ARRAY_SIZE(taishan_nor_parts), | ||
101 | }; | ||
102 | |||
103 | static struct platform_device taishan_nor_device = { | ||
104 | .name = "physmap-flash", | ||
105 | .id = 0, | ||
106 | .dev = { | ||
107 | .platform_data = &taishan_nor_data, | ||
108 | }, | ||
109 | .num_resources = 1, | ||
110 | .resource = &taishan_nor_resource, | ||
111 | }; | ||
112 | |||
113 | static int taishan_setup_flash(void) | ||
114 | { | ||
115 | /* | ||
116 | * Adjust partition 2 to flash size | ||
117 | */ | ||
118 | taishan_nor_parts[2].size = __res.bi_flashsize - | ||
119 | RW_PART0_SZ - RW_PART1_SZ - RW_PART3_SZ - RW_PART4_SZ; | ||
120 | |||
121 | platform_device_register(&taishan_nor_device); | ||
122 | |||
123 | return 0; | ||
124 | } | ||
125 | arch_initcall(taishan_setup_flash); | ||
126 | |||
127 | static void __init | ||
128 | taishan_calibrate_decr(void) | ||
129 | { | ||
130 | unsigned int freq; | ||
131 | |||
132 | if (mfspr(SPRN_CCR1) & CCR1_TCS) | ||
133 | freq = TAISHAN_TMR_CLK; | ||
134 | else | ||
135 | freq = clocks.cpu; | ||
136 | |||
137 | ibm44x_calibrate_decr(freq); | ||
138 | } | ||
139 | |||
140 | static int | ||
141 | taishan_show_cpuinfo(struct seq_file *m) | ||
142 | { | ||
143 | seq_printf(m, "vendor\t\t: AMCC\n"); | ||
144 | seq_printf(m, "machine\t\t: PPC440GX EVB (Taishan)\n"); | ||
145 | ibm440gx_show_cpuinfo(m); | ||
146 | return 0; | ||
147 | } | ||
148 | |||
149 | static inline int | ||
150 | taishan_map_irq(struct pci_dev *dev, unsigned char idsel, unsigned char pin) | ||
151 | { | ||
152 | static char pci_irq_table[][4] = | ||
153 | /* | ||
154 | * PCI IDSEL/INTPIN->INTLINE | ||
155 | * A B C D | ||
156 | */ | ||
157 | { | ||
158 | { 23, 24, 25, 26 }, /* IDSEL 1 - PCI Slot 0 */ | ||
159 | { 24, 25, 26, 23 }, /* IDSEL 2 - PCI Slot 1 */ | ||
160 | }; | ||
161 | |||
162 | const long min_idsel = 1, max_idsel = 2, irqs_per_slot = 4; | ||
163 | return PCI_IRQ_TABLE_LOOKUP; | ||
164 | } | ||
165 | |||
166 | static void __init taishan_set_emacdata(void) | ||
167 | { | ||
168 | struct ocp_def *def; | ||
169 | struct ocp_func_emac_data *emacdata; | ||
170 | int i; | ||
171 | |||
172 | /* Set phy_map, phy_mode, and mac_addr for each EMAC */ | ||
173 | for (i=2; i<4; i++) { | ||
174 | def = ocp_get_one_device(OCP_VENDOR_IBM, OCP_FUNC_EMAC, i); | ||
175 | emacdata = def->additions; | ||
176 | if (i < 2) { | ||
177 | emacdata->phy_map = 0x00000001; /* Skip 0x00 */ | ||
178 | emacdata->phy_mode = PHY_MODE_SMII; | ||
179 | } else { | ||
180 | emacdata->phy_map = 0x00000001; /* Skip 0x00 */ | ||
181 | emacdata->phy_mode = PHY_MODE_RGMII; | ||
182 | } | ||
183 | if (i == 0) | ||
184 | memcpy(emacdata->mac_addr, "\0\0\0\0\0\0", 6); | ||
185 | else if (i == 1) | ||
186 | memcpy(emacdata->mac_addr, "\0\0\0\0\0\0", 6); | ||
187 | else if (i == 2) | ||
188 | memcpy(emacdata->mac_addr, __res.bi_enetaddr, 6); | ||
189 | else if (i == 3) | ||
190 | memcpy(emacdata->mac_addr, __res.bi_enet1addr, 6); | ||
191 | } | ||
192 | } | ||
193 | |||
194 | #define PCIX_READW(offset) \ | ||
195 | (readw(pcix_reg_base+offset)) | ||
196 | |||
197 | #define PCIX_WRITEW(value, offset) \ | ||
198 | (writew(value, pcix_reg_base+offset)) | ||
199 | |||
200 | #define PCIX_WRITEL(value, offset) \ | ||
201 | (writel(value, pcix_reg_base+offset)) | ||
202 | |||
203 | /* | ||
204 | * FIXME: This is only here to "make it work". This will move | ||
205 | * to a ibm_pcix.c which will contain a generic IBM PCIX bridge | ||
206 | * configuration library. -Matt | ||
207 | */ | ||
208 | static void __init | ||
209 | taishan_setup_pcix(void) | ||
210 | { | ||
211 | void *pcix_reg_base; | ||
212 | |||
213 | pcix_reg_base = ioremap64(PCIX0_REG_BASE, PCIX_REG_SIZE); | ||
214 | |||
215 | /* Enable PCIX0 I/O, Mem, and Busmaster cycles */ | ||
216 | PCIX_WRITEW(PCIX_READW(PCIX0_COMMAND) | PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER, PCIX0_COMMAND); | ||
217 | |||
218 | /* Disable all windows */ | ||
219 | PCIX_WRITEL(0, PCIX0_POM0SA); | ||
220 | PCIX_WRITEL(0, PCIX0_POM1SA); | ||
221 | PCIX_WRITEL(0, PCIX0_POM2SA); | ||
222 | PCIX_WRITEL(0, PCIX0_PIM0SA); | ||
223 | PCIX_WRITEL(0, PCIX0_PIM0SAH); | ||
224 | PCIX_WRITEL(0, PCIX0_PIM1SA); | ||
225 | PCIX_WRITEL(0, PCIX0_PIM2SA); | ||
226 | PCIX_WRITEL(0, PCIX0_PIM2SAH); | ||
227 | |||
228 | /* Setup 2GB PLB->PCI outbound mem window (3_8000_0000->0_8000_0000) */ | ||
229 | PCIX_WRITEL(0x00000003, PCIX0_POM0LAH); | ||
230 | PCIX_WRITEL(0x80000000, PCIX0_POM0LAL); | ||
231 | PCIX_WRITEL(0x00000000, PCIX0_POM0PCIAH); | ||
232 | PCIX_WRITEL(0x80000000, PCIX0_POM0PCIAL); | ||
233 | PCIX_WRITEL(0x80000001, PCIX0_POM0SA); | ||
234 | |||
235 | /* Setup 2GB PCI->PLB inbound memory window at 0, enable MSIs */ | ||
236 | PCIX_WRITEL(0x00000000, PCIX0_PIM0LAH); | ||
237 | PCIX_WRITEL(0x00000000, PCIX0_PIM0LAL); | ||
238 | PCIX_WRITEL(0xe0000007, PCIX0_PIM0SA); | ||
239 | PCIX_WRITEL(0xffffffff, PCIX0_PIM0SAH); | ||
240 | |||
241 | iounmap(pcix_reg_base); | ||
242 | |||
243 | eieio(); | ||
244 | } | ||
245 | |||
246 | static void __init | ||
247 | taishan_setup_hose(void) | ||
248 | { | ||
249 | struct pci_controller *hose; | ||
250 | |||
251 | /* Configure windows on the PCI-X host bridge */ | ||
252 | taishan_setup_pcix(); | ||
253 | |||
254 | hose = pcibios_alloc_controller(); | ||
255 | |||
256 | if (!hose) | ||
257 | return; | ||
258 | |||
259 | hose->first_busno = 0; | ||
260 | hose->last_busno = 0xff; | ||
261 | |||
262 | hose->pci_mem_offset = TAISHAN_PCI_MEM_OFFSET; | ||
263 | |||
264 | pci_init_resource(&hose->io_resource, | ||
265 | TAISHAN_PCI_LOWER_IO, | ||
266 | TAISHAN_PCI_UPPER_IO, | ||
267 | IORESOURCE_IO, | ||
268 | "PCI host bridge"); | ||
269 | |||
270 | pci_init_resource(&hose->mem_resources[0], | ||
271 | TAISHAN_PCI_LOWER_MEM, | ||
272 | TAISHAN_PCI_UPPER_MEM, | ||
273 | IORESOURCE_MEM, | ||
274 | "PCI host bridge"); | ||
275 | |||
276 | hose->io_space.start = TAISHAN_PCI_LOWER_IO; | ||
277 | hose->io_space.end = TAISHAN_PCI_UPPER_IO; | ||
278 | hose->mem_space.start = TAISHAN_PCI_LOWER_MEM; | ||
279 | hose->mem_space.end = TAISHAN_PCI_UPPER_MEM; | ||
280 | hose->io_base_virt = ioremap64(TAISHAN_PCI_IO_BASE, TAISHAN_PCI_IO_SIZE); | ||
281 | isa_io_base = (unsigned long) hose->io_base_virt; | ||
282 | |||
283 | setup_indirect_pci(hose, | ||
284 | TAISHAN_PCI_CFGA_PLB32, | ||
285 | TAISHAN_PCI_CFGD_PLB32); | ||
286 | hose->set_cfg_type = 1; | ||
287 | |||
288 | hose->last_busno = pciauto_bus_scan(hose, hose->first_busno); | ||
289 | |||
290 | ppc_md.pci_swizzle = common_swizzle; | ||
291 | ppc_md.pci_map_irq = taishan_map_irq; | ||
292 | } | ||
293 | |||
294 | |||
295 | static void __init | ||
296 | taishan_early_serial_map(void) | ||
297 | { | ||
298 | struct uart_port port; | ||
299 | |||
300 | /* Setup ioremapped serial port access */ | ||
301 | memset(&port, 0, sizeof(port)); | ||
302 | port.membase = ioremap64(PPC440GX_UART0_ADDR, 8); | ||
303 | port.irq = UART0_INT; | ||
304 | port.uartclk = clocks.uart0; | ||
305 | port.regshift = 0; | ||
306 | port.iotype = UPIO_MEM; | ||
307 | port.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST; | ||
308 | port.line = 0; | ||
309 | |||
310 | if (early_serial_setup(&port) != 0) | ||
311 | printk("Early serial init of port 0 failed\n"); | ||
312 | |||
313 | #if defined(CONFIG_SERIAL_TEXT_DEBUG) || defined(CONFIG_KGDB) | ||
314 | /* Configure debug serial access */ | ||
315 | gen550_init(0, &port); | ||
316 | |||
317 | /* Purge TLB entry added in head_44x.S for early serial access */ | ||
318 | _tlbie(UART0_IO_BASE); | ||
319 | #endif | ||
320 | |||
321 | port.membase = ioremap64(PPC440GX_UART1_ADDR, 8); | ||
322 | port.irq = UART1_INT; | ||
323 | port.uartclk = clocks.uart1; | ||
324 | port.line = 1; | ||
325 | |||
326 | if (early_serial_setup(&port) != 0) | ||
327 | printk("Early serial init of port 1 failed\n"); | ||
328 | |||
329 | #if defined(CONFIG_SERIAL_TEXT_DEBUG) || defined(CONFIG_KGDB) | ||
330 | /* Configure debug serial access */ | ||
331 | gen550_init(1, &port); | ||
332 | #endif | ||
333 | } | ||
334 | |||
335 | static void __init | ||
336 | taishan_setup_arch(void) | ||
337 | { | ||
338 | taishan_set_emacdata(); | ||
339 | |||
340 | ibm440gx_tah_enable(); | ||
341 | |||
342 | /* | ||
343 | * Determine various clocks. | ||
344 | * To be completely correct we should get SysClk | ||
345 | * from FPGA, because it can be changed by on-board switches | ||
346 | * --ebs | ||
347 | */ | ||
348 | ibm440gx_get_clocks(&clocks, 33333333, 6 * 1843200); | ||
349 | ocp_sys_info.opb_bus_freq = clocks.opb; | ||
350 | |||
351 | /* init to some ~sane value until calibrate_delay() runs */ | ||
352 | loops_per_jiffy = 50000000/HZ; | ||
353 | |||
354 | /* Setup PCI host bridge */ | ||
355 | taishan_setup_hose(); | ||
356 | |||
357 | #ifdef CONFIG_BLK_DEV_INITRD | ||
358 | if (initrd_start) | ||
359 | ROOT_DEV = Root_RAM0; | ||
360 | else | ||
361 | #endif | ||
362 | #ifdef CONFIG_ROOT_NFS | ||
363 | ROOT_DEV = Root_NFS; | ||
364 | #else | ||
365 | ROOT_DEV = Root_HDA1; | ||
366 | #endif | ||
367 | |||
368 | taishan_early_serial_map(); | ||
369 | |||
370 | /* Identify the system */ | ||
371 | printk("AMCC PowerPC 440GX Taishan Platform\n"); | ||
372 | } | ||
373 | |||
374 | static void __init taishan_init(void) | ||
375 | { | ||
376 | ibm440gx_l2c_setup(&clocks); | ||
377 | } | ||
378 | |||
379 | void __init platform_init(unsigned long r3, unsigned long r4, | ||
380 | unsigned long r5, unsigned long r6, unsigned long r7) | ||
381 | { | ||
382 | ibm44x_platform_init(r3, r4, r5, r6, r7); | ||
383 | |||
384 | ppc_md.setup_arch = taishan_setup_arch; | ||
385 | ppc_md.show_cpuinfo = taishan_show_cpuinfo; | ||
386 | ppc_md.get_irq = NULL; /* Set in ppc4xx_pic_init() */ | ||
387 | |||
388 | ppc_md.calibrate_decr = taishan_calibrate_decr; | ||
389 | |||
390 | #ifdef CONFIG_KGDB | ||
391 | ppc_md.early_serial_map = taishan_early_serial_map; | ||
392 | #endif | ||
393 | ppc_md.init = taishan_init; | ||
394 | } | ||
395 | |||
diff --git a/arch/ppc/platforms/4xx/taishan.h b/arch/ppc/platforms/4xx/taishan.h new file mode 100644 index 000000000000..ea7561a80457 --- /dev/null +++ b/arch/ppc/platforms/4xx/taishan.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * arch/ppc/platforms/4xx/taishan.h | ||
3 | * | ||
4 | * AMCC Taishan board definitions | ||
5 | * | ||
6 | * Copyright 2007 DENX Software Engineering, Stefan Roese <sr@denx.de> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifdef __KERNEL__ | ||
16 | #ifndef __ASM_TAISHAN_H__ | ||
17 | #define __ASM_TAISHAN_H__ | ||
18 | |||
19 | #include <platforms/4xx/ibm440gx.h> | ||
20 | |||
21 | /* External timer clock frequency */ | ||
22 | #define TAISHAN_TMR_CLK 25000000 | ||
23 | |||
24 | /* Flash */ | ||
25 | #define TAISHAN_FPGA_ADDR 0x0000000141000000ULL | ||
26 | #define TAISHAN_LCM_ADDR 0x0000000142000000ULL | ||
27 | #define TAISHAN_FLASH_ADDR 0x00000001fc000000ULL | ||
28 | #define TAISHAN_FLASH_SIZE 0x4000000 | ||
29 | |||
30 | /* | ||
31 | * Serial port defines | ||
32 | */ | ||
33 | #define RS_TABLE_SIZE 2 | ||
34 | |||
35 | /* head_44x.S created UART mapping, used before early_serial_setup. | ||
36 | * We cannot use default OpenBIOS UART mappings because they | ||
37 | * don't work for configurations with more than 512M RAM. --ebs | ||
38 | */ | ||
39 | #define UART0_IO_BASE 0xF0000200 | ||
40 | #define UART1_IO_BASE 0xF0000300 | ||
41 | |||
42 | #define BASE_BAUD 11059200/16 | ||
43 | #define STD_UART_OP(num) \ | ||
44 | { 0, BASE_BAUD, 0, UART##num##_INT, \ | ||
45 | (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \ | ||
46 | iomem_base: (void*)UART##num##_IO_BASE, \ | ||
47 | io_type: SERIAL_IO_MEM}, | ||
48 | |||
49 | #define SERIAL_PORT_DFNS \ | ||
50 | STD_UART_OP(0) \ | ||
51 | STD_UART_OP(1) | ||
52 | |||
53 | /* PCI support */ | ||
54 | #define TAISHAN_PCI_LOWER_IO 0x00000000 | ||
55 | #define TAISHAN_PCI_UPPER_IO 0x0000ffff | ||
56 | #define TAISHAN_PCI_LOWER_MEM 0x80000000 | ||
57 | #define TAISHAN_PCI_UPPER_MEM 0xffffefff | ||
58 | |||
59 | #define TAISHAN_PCI_CFGA_PLB32 0x0ec00000 | ||
60 | #define TAISHAN_PCI_CFGD_PLB32 0x0ec00004 | ||
61 | |||
62 | #define TAISHAN_PCI_IO_BASE 0x0000000208000000ULL | ||
63 | #define TAISHAN_PCI_IO_SIZE 0x00010000 | ||
64 | #define TAISHAN_PCI_MEM_OFFSET 0x00000000 | ||
65 | |||
66 | #endif /* __ASM_TAISHAN_H__ */ | ||
67 | #endif /* __KERNEL__ */ | ||
diff --git a/arch/ppc/syslib/Makefile b/arch/ppc/syslib/Makefile index d84f04666972..09911118c675 100644 --- a/arch/ppc/syslib/Makefile +++ b/arch/ppc/syslib/Makefile | |||
@@ -69,6 +69,7 @@ obj-$(CONFIG_SANDPOINT) += pci_auto.o todc_time.o | |||
69 | obj-$(CONFIG_SBC82xx) += todc_time.o | 69 | obj-$(CONFIG_SBC82xx) += todc_time.o |
70 | obj-$(CONFIG_SPRUCE) += cpc700_pic.o pci_auto.o \ | 70 | obj-$(CONFIG_SPRUCE) += cpc700_pic.o pci_auto.o \ |
71 | todc_time.o | 71 | todc_time.o |
72 | obj-$(CONFIG_TAISHAN) += pci_auto.o | ||
72 | obj-$(CONFIG_8260) += m8260_setup.o pq2_devices.o pq2_sys.o \ | 73 | obj-$(CONFIG_8260) += m8260_setup.o pq2_devices.o pq2_sys.o \ |
73 | ppc_sys.o | 74 | ppc_sys.o |
74 | obj-$(CONFIG_PCI_8260) += m82xx_pci.o pci_auto.o | 75 | obj-$(CONFIG_PCI_8260) += m82xx_pci.o pci_auto.o |
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index d7378df44970..29e1809e5ecf 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c | |||
@@ -484,10 +484,8 @@ mpc52xx_ata_resume(struct of_device *op) | |||
484 | 484 | ||
485 | static struct of_device_id mpc52xx_ata_of_match[] = { | 485 | static struct of_device_id mpc52xx_ata_of_match[] = { |
486 | { | 486 | { |
487 | .compatible = "mpc5200-ata", | 487 | .type = "ata", |
488 | }, | 488 | .compatible = "mpc5200-ata", |
489 | { | ||
490 | .compatible = "mpc52xx-ata", | ||
491 | }, | 489 | }, |
492 | {}, | 490 | {}, |
493 | }; | 491 | }; |
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index 1c7d6f221b55..b77ef5187d6d 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c | |||
@@ -574,8 +574,8 @@ static struct adb_request led_request; | |||
574 | static int leds_pending[16]; | 574 | static int leds_pending[16]; |
575 | static int leds_req_pending; | 575 | static int leds_req_pending; |
576 | static int pending_devs[16]; | 576 | static int pending_devs[16]; |
577 | static int pending_led_start=0; | 577 | static int pending_led_start; |
578 | static int pending_led_end=0; | 578 | static int pending_led_end; |
579 | static DEFINE_SPINLOCK(leds_lock); | 579 | static DEFINE_SPINLOCK(leds_lock); |
580 | 580 | ||
581 | static void leds_done(struct adb_request *req) | 581 | static void leds_done(struct adb_request *req) |
diff --git a/drivers/macintosh/apm_emu.c b/drivers/macintosh/apm_emu.c index a6d50f4fabd7..c5e4d43f97fc 100644 --- a/drivers/macintosh/apm_emu.c +++ b/drivers/macintosh/apm_emu.c | |||
@@ -102,7 +102,7 @@ static struct pmu_sleep_notifier apm_sleep_notifier = { | |||
102 | SLEEP_LEVEL_USERLAND, | 102 | SLEEP_LEVEL_USERLAND, |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static char driver_version[] = "0.5"; /* no spaces */ | 105 | static const char driver_version[] = "0.5"; /* no spaces */ |
106 | 106 | ||
107 | #ifdef DEBUG | 107 | #ifdef DEBUG |
108 | static char * apm_event_name[] = { | 108 | static char * apm_event_name[] = { |
diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c index ee6b4ca69130..f632cec9ce45 100644 --- a/drivers/macintosh/mac_hid.c +++ b/drivers/macintosh/mac_hid.c | |||
@@ -17,10 +17,10 @@ | |||
17 | 17 | ||
18 | static struct input_dev *emumousebtn; | 18 | static struct input_dev *emumousebtn; |
19 | static int emumousebtn_input_register(void); | 19 | static int emumousebtn_input_register(void); |
20 | static int mouse_emulate_buttons = 0; | 20 | static int mouse_emulate_buttons; |
21 | static int mouse_button2_keycode = KEY_RIGHTCTRL; /* right control key */ | 21 | static int mouse_button2_keycode = KEY_RIGHTCTRL; /* right control key */ |
22 | static int mouse_button3_keycode = KEY_RIGHTALT; /* right option key */ | 22 | static int mouse_button3_keycode = KEY_RIGHTALT; /* right option key */ |
23 | static int mouse_last_keycode = 0; | 23 | static int mouse_last_keycode; |
24 | 24 | ||
25 | #if defined(CONFIG_SYSCTL) | 25 | #if defined(CONFIG_SYSCTL) |
26 | /* file(s) in /proc/sys/dev/mac_hid */ | 26 | /* file(s) in /proc/sys/dev/mac_hid */ |
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index 3d3bf1643e73..a7ce55926638 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c | |||
@@ -48,11 +48,11 @@ static u8 FAN_SPD_SET[2] = {0x30, 0x31}; | |||
48 | 48 | ||
49 | static u8 default_limits_local[3] = {70, 50, 70}; /* local, sensor1, sensor2 */ | 49 | static u8 default_limits_local[3] = {70, 50, 70}; /* local, sensor1, sensor2 */ |
50 | static u8 default_limits_chip[3] = {80, 65, 80}; /* local, sensor1, sensor2 */ | 50 | static u8 default_limits_chip[3] = {80, 65, 80}; /* local, sensor1, sensor2 */ |
51 | static const char *sensor_location[3] = {NULL, NULL, NULL}; | 51 | static const char *sensor_location[3]; |
52 | 52 | ||
53 | static int limit_adjust = 0; | 53 | static int limit_adjust; |
54 | static int fan_speed = -1; | 54 | static int fan_speed = -1; |
55 | static int verbose = 0; | 55 | static int verbose; |
56 | 56 | ||
57 | MODULE_AUTHOR("Colin Leroy <colin@colino.net>"); | 57 | MODULE_AUTHOR("Colin Leroy <colin@colino.net>"); |
58 | MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and " | 58 | MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and " |
diff --git a/drivers/macintosh/via-cuda.c b/drivers/macintosh/via-cuda.c index df66291b1322..3797f503cd6c 100644 --- a/drivers/macintosh/via-cuda.c +++ b/drivers/macintosh/via-cuda.c | |||
@@ -86,7 +86,7 @@ static int data_index; | |||
86 | #ifdef CONFIG_PPC | 86 | #ifdef CONFIG_PPC |
87 | static struct device_node *vias; | 87 | static struct device_node *vias; |
88 | #endif | 88 | #endif |
89 | static int cuda_fully_inited = 0; | 89 | static int cuda_fully_inited; |
90 | 90 | ||
91 | #ifdef CONFIG_ADB | 91 | #ifdef CONFIG_ADB |
92 | static int cuda_probe(void); | 92 | static int cuda_probe(void); |
diff --git a/drivers/macintosh/via-macii.c b/drivers/macintosh/via-macii.c index 5d88d5b0ad99..175b3e56e375 100644 --- a/drivers/macintosh/via-macii.c +++ b/drivers/macintosh/via-macii.c | |||
@@ -107,10 +107,10 @@ static enum macii_state { | |||
107 | awaiting_reply | 107 | awaiting_reply |
108 | } macii_state; | 108 | } macii_state; |
109 | 109 | ||
110 | static int need_poll = 0; | 110 | static int need_poll; |
111 | static int command_byte = 0; | 111 | static int command_byte; |
112 | static int last_reply = 0; | 112 | static int last_reply; |
113 | static int last_active = 0; | 113 | static int last_active; |
114 | 114 | ||
115 | static struct adb_request *current_req; | 115 | static struct adb_request *current_req; |
116 | static struct adb_request *last_req; | 116 | static struct adb_request *last_req; |
@@ -124,7 +124,7 @@ static int first_byte; | |||
124 | static int prefix_len; | 124 | static int prefix_len; |
125 | static int status = ST_IDLE|TREQ; | 125 | static int status = ST_IDLE|TREQ; |
126 | static int last_status; | 126 | static int last_status; |
127 | static int driver_running = 0; | 127 | static int driver_running; |
128 | 128 | ||
129 | /* debug level 10 required for ADB logging (should be && debug_adb, ideally) */ | 129 | /* debug level 10 required for ADB logging (should be && debug_adb, ideally) */ |
130 | 130 | ||
diff --git a/drivers/macintosh/via-maciisi.c b/drivers/macintosh/via-maciisi.c index 1f0aa5dc9aa5..10051db48d23 100644 --- a/drivers/macintosh/via-maciisi.c +++ b/drivers/macintosh/via-maciisi.c | |||
@@ -63,10 +63,10 @@ static volatile unsigned char *via; | |||
63 | 63 | ||
64 | #undef DEBUG_MACIISI_ADB | 64 | #undef DEBUG_MACIISI_ADB |
65 | 65 | ||
66 | static struct adb_request* current_req = NULL; | 66 | static struct adb_request* current_req; |
67 | static struct adb_request* last_req = NULL; | 67 | static struct adb_request* last_req; |
68 | static unsigned char maciisi_rbuf[16]; | 68 | static unsigned char maciisi_rbuf[16]; |
69 | static unsigned char *reply_ptr = NULL; | 69 | static unsigned char *reply_ptr; |
70 | static int data_index; | 70 | static int data_index; |
71 | static int reading_reply; | 71 | static int reading_reply; |
72 | static int reply_len; | 72 | static int reply_len; |
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 96bea4b62c43..b6073bdb50c3 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -141,13 +141,13 @@ static volatile int adb_int_pending; | |||
141 | static volatile int disable_poll; | 141 | static volatile int disable_poll; |
142 | static struct device_node *vias; | 142 | static struct device_node *vias; |
143 | static int pmu_kind = PMU_UNKNOWN; | 143 | static int pmu_kind = PMU_UNKNOWN; |
144 | static int pmu_fully_inited = 0; | 144 | static int pmu_fully_inited; |
145 | static int pmu_has_adb; | 145 | static int pmu_has_adb; |
146 | static struct device_node *gpio_node; | 146 | static struct device_node *gpio_node; |
147 | static unsigned char __iomem *gpio_reg = NULL; | 147 | static unsigned char __iomem *gpio_reg; |
148 | static int gpio_irq = NO_IRQ; | 148 | static int gpio_irq = NO_IRQ; |
149 | static int gpio_irq_enabled = -1; | 149 | static int gpio_irq_enabled = -1; |
150 | static volatile int pmu_suspended = 0; | 150 | static volatile int pmu_suspended; |
151 | static spinlock_t pmu_lock; | 151 | static spinlock_t pmu_lock; |
152 | static u8 pmu_intr_mask; | 152 | static u8 pmu_intr_mask; |
153 | static int pmu_version; | 153 | static int pmu_version; |
@@ -169,7 +169,7 @@ static int option_server_mode; | |||
169 | 169 | ||
170 | int pmu_battery_count; | 170 | int pmu_battery_count; |
171 | int pmu_cur_battery; | 171 | int pmu_cur_battery; |
172 | unsigned int pmu_power_flags; | 172 | unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT; |
173 | struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; | 173 | struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; |
174 | static int query_batt_timer = BATTERY_POLLING_COUNT; | 174 | static int query_batt_timer = BATTERY_POLLING_COUNT; |
175 | static struct adb_request batt_req; | 175 | static struct adb_request batt_req; |
@@ -180,7 +180,7 @@ int asleep; | |||
180 | BLOCKING_NOTIFIER_HEAD(sleep_notifier_list); | 180 | BLOCKING_NOTIFIER_HEAD(sleep_notifier_list); |
181 | 181 | ||
182 | #ifdef CONFIG_ADB | 182 | #ifdef CONFIG_ADB |
183 | static int adb_dev_map = 0; | 183 | static int adb_dev_map; |
184 | static int pmu_adb_flags; | 184 | static int pmu_adb_flags; |
185 | 185 | ||
186 | static int pmu_probe(void); | 186 | static int pmu_probe(void); |
@@ -2776,7 +2776,7 @@ pmu_polled_request(struct adb_request *req) | |||
2776 | 2776 | ||
2777 | #if defined(CONFIG_PM) && defined(CONFIG_PPC32) | 2777 | #if defined(CONFIG_PM) && defined(CONFIG_PPC32) |
2778 | 2778 | ||
2779 | static int pmu_sys_suspended = 0; | 2779 | static int pmu_sys_suspended; |
2780 | 2780 | ||
2781 | static int pmu_sys_suspend(struct sys_device *sysdev, pm_message_t state) | 2781 | static int pmu_sys_suspend(struct sys_device *sysdev, pm_message_t state) |
2782 | { | 2782 | { |
@@ -2816,7 +2816,6 @@ static struct sysdev_class pmu_sysclass = { | |||
2816 | }; | 2816 | }; |
2817 | 2817 | ||
2818 | static struct sys_device device_pmu = { | 2818 | static struct sys_device device_pmu = { |
2819 | .id = 0, | ||
2820 | .cls = &pmu_sysclass, | 2819 | .cls = &pmu_sysclass, |
2821 | }; | 2820 | }; |
2822 | 2821 | ||
diff --git a/drivers/macintosh/via-pmu68k.c b/drivers/macintosh/via-pmu68k.c index 4f5b6fa196c5..54baee57d2f8 100644 --- a/drivers/macintosh/via-pmu68k.c +++ b/drivers/macintosh/via-pmu68k.c | |||
@@ -96,10 +96,10 @@ static int data_index; | |||
96 | static int data_len; | 96 | static int data_len; |
97 | static int adb_int_pending; | 97 | static int adb_int_pending; |
98 | static int pmu_adb_flags; | 98 | static int pmu_adb_flags; |
99 | static int adb_dev_map = 0; | 99 | static int adb_dev_map; |
100 | static struct adb_request bright_req_1, bright_req_2, bright_req_3; | 100 | static struct adb_request bright_req_1, bright_req_2, bright_req_3; |
101 | static int pmu_kind = PMU_UNKNOWN; | 101 | static int pmu_kind = PMU_UNKNOWN; |
102 | static int pmu_fully_inited = 0; | 102 | static int pmu_fully_inited; |
103 | 103 | ||
104 | int asleep; | 104 | int asleep; |
105 | BLOCKING_NOTIFIER_HEAD(sleep_notifier_list); | 105 | BLOCKING_NOTIFIER_HEAD(sleep_notifier_list); |
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 5cc6b91f8408..d0edbaacb1f7 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig | |||
@@ -999,4 +999,14 @@ config SERIAL_NETX_CONSOLE | |||
999 | If you have enabled the serial port on the Motorola IMX | 999 | If you have enabled the serial port on the Motorola IMX |
1000 | CPU you can make it the console by answering Y to this option. | 1000 | CPU you can make it the console by answering Y to this option. |
1001 | 1001 | ||
1002 | config SERIAL_OF_PLATFORM | ||
1003 | tristate "Serial port on Open Firmware platform bus" | ||
1004 | depends on PPC_OF | ||
1005 | depends on SERIAL_8250 | ||
1006 | help | ||
1007 | If you have a PowerPC based system that has serial ports | ||
1008 | on a platform specific bus, you should enable this option. | ||
1009 | Currently, only 8250 compatible ports are supported, but | ||
1010 | others can easily be added. | ||
1011 | |||
1002 | endmenu | 1012 | endmenu |
diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile index df3632cd7df9..f3f82587b5fa 100644 --- a/drivers/serial/Makefile +++ b/drivers/serial/Makefile | |||
@@ -58,3 +58,4 @@ obj-$(CONFIG_SERIAL_SGI_IOC3) += ioc3_serial.o | |||
58 | obj-$(CONFIG_SERIAL_ATMEL) += atmel_serial.o | 58 | obj-$(CONFIG_SERIAL_ATMEL) += atmel_serial.o |
59 | obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o | 59 | obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o |
60 | obj-$(CONFIG_SERIAL_NETX) += netx-serial.o | 60 | obj-$(CONFIG_SERIAL_NETX) += netx-serial.o |
61 | obj-$(CONFIG_SERIAL_OF_PLATFORM) += of_serial.o | ||
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index 3c4b6c243712..955bbd653e22 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c | |||
@@ -127,8 +127,7 @@ static irqreturn_t mpc52xx_uart_int(int irq,void *dev_id); | |||
127 | 127 | ||
128 | #if defined(CONFIG_PPC_MERGE) | 128 | #if defined(CONFIG_PPC_MERGE) |
129 | static struct of_device_id mpc52xx_uart_of_match[] = { | 129 | static struct of_device_id mpc52xx_uart_of_match[] = { |
130 | { .type = "serial", .compatible = "mpc52xx-psc-uart", }, | 130 | { .type = "serial", .compatible = "mpc5200-psc-uart", }, |
131 | { .type = "serial", .compatible = "mpc5200-psc", }, /* Efika only! */ | ||
132 | {}, | 131 | {}, |
133 | }; | 132 | }; |
134 | #endif | 133 | #endif |
@@ -1068,7 +1067,7 @@ mpc52xx_uart_of_enumerate(void) | |||
1068 | continue; | 1067 | continue; |
1069 | 1068 | ||
1070 | /* Is a particular device number requested? */ | 1069 | /* Is a particular device number requested? */ |
1071 | devno = get_property(np, "device_no", NULL); | 1070 | devno = get_property(np, "port-number", NULL); |
1072 | mpc52xx_uart_of_assign(of_node_get(np), devno ? *devno : -1); | 1071 | mpc52xx_uart_of_assign(of_node_get(np), devno ? *devno : -1); |
1073 | } | 1072 | } |
1074 | 1073 | ||
diff --git a/drivers/serial/of_serial.c b/drivers/serial/of_serial.c new file mode 100644 index 000000000000..09b0b736a751 --- /dev/null +++ b/drivers/serial/of_serial.c | |||
@@ -0,0 +1,143 @@ | |||
1 | /* | ||
2 | * Serial Port driver for Open Firmware platform devices | ||
3 | * | ||
4 | * Copyright (C) 2006 Arnd Bergmann <arnd@arndb.de>, IBM Corp. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the License, or (at your option) any later version. | ||
10 | * | ||
11 | */ | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/serial_core.h> | ||
15 | #include <linux/serial_8250.h> | ||
16 | |||
17 | #include <asm/of_platform.h> | ||
18 | #include <asm/prom.h> | ||
19 | |||
20 | /* | ||
21 | * Fill a struct uart_port for a given device node | ||
22 | */ | ||
23 | static int __devinit of_platform_serial_setup(struct of_device *ofdev, | ||
24 | int type, struct uart_port *port) | ||
25 | { | ||
26 | struct resource resource; | ||
27 | struct device_node *np = ofdev->node; | ||
28 | const unsigned int *clk, *spd; | ||
29 | int ret; | ||
30 | |||
31 | memset(port, 0, sizeof *port); | ||
32 | spd = get_property(np, "current-speed", NULL); | ||
33 | clk = get_property(np, "clock-frequency", NULL); | ||
34 | if (!clk) { | ||
35 | dev_warn(&ofdev->dev, "no clock-frequency property set\n"); | ||
36 | return -ENODEV; | ||
37 | } | ||
38 | |||
39 | ret = of_address_to_resource(np, 0, &resource); | ||
40 | if (ret) { | ||
41 | dev_warn(&ofdev->dev, "invalid address\n"); | ||
42 | return ret; | ||
43 | } | ||
44 | |||
45 | spin_lock_init(&port->lock); | ||
46 | port->mapbase = resource.start; | ||
47 | port->irq = irq_of_parse_and_map(np, 0); | ||
48 | port->iotype = UPIO_MEM; | ||
49 | port->type = type; | ||
50 | port->uartclk = *clk; | ||
51 | port->flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP; | ||
52 | port->dev = &ofdev->dev; | ||
53 | port->custom_divisor = *clk / (16 * (*spd)); | ||
54 | |||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | /* | ||
59 | * Try to register a serial port | ||
60 | */ | ||
61 | static int __devinit of_platform_serial_probe(struct of_device *ofdev, | ||
62 | const struct of_device_id *id) | ||
63 | { | ||
64 | struct uart_port port; | ||
65 | int port_type; | ||
66 | int ret; | ||
67 | |||
68 | if (of_find_property(ofdev->node, "used-by-rtas", NULL)) | ||
69 | return -EBUSY; | ||
70 | |||
71 | port_type = (unsigned long)id->data; | ||
72 | ret = of_platform_serial_setup(ofdev, port_type, &port); | ||
73 | if (ret) | ||
74 | goto out; | ||
75 | |||
76 | switch (port_type) { | ||
77 | case PORT_UNKNOWN: | ||
78 | dev_info(&ofdev->dev, "Unknown serial port found, " | ||
79 | "attempting to use 8250 driver\n"); | ||
80 | /* fallthrough */ | ||
81 | case PORT_8250 ... PORT_MAX_8250: | ||
82 | ret = serial8250_register_port(&port); | ||
83 | break; | ||
84 | default: | ||
85 | /* need to add code for these */ | ||
86 | ret = -ENODEV; | ||
87 | break; | ||
88 | } | ||
89 | if (ret < 0) | ||
90 | goto out; | ||
91 | |||
92 | ofdev->dev.driver_data = (void *)(unsigned long)ret; | ||
93 | return 0; | ||
94 | out: | ||
95 | irq_dispose_mapping(port.irq); | ||
96 | return ret; | ||
97 | } | ||
98 | |||
99 | /* | ||
100 | * Release a line | ||
101 | */ | ||
102 | static int of_platform_serial_remove(struct of_device *ofdev) | ||
103 | { | ||
104 | int line = (unsigned long)ofdev->dev.driver_data; | ||
105 | serial8250_unregister_port(line); | ||
106 | return 0; | ||
107 | } | ||
108 | |||
109 | /* | ||
110 | * A few common types, add more as needed. | ||
111 | */ | ||
112 | static struct of_device_id __devinitdata of_platform_serial_table[] = { | ||
113 | { .type = "serial", .compatible = "ns8250", .data = (void *)PORT_8250, }, | ||
114 | { .type = "serial", .compatible = "ns16450", .data = (void *)PORT_16450, }, | ||
115 | { .type = "serial", .compatible = "ns16550", .data = (void *)PORT_16550, }, | ||
116 | { .type = "serial", .compatible = "ns16750", .data = (void *)PORT_16750, }, | ||
117 | { .type = "serial", .data = (void *)PORT_UNKNOWN, }, | ||
118 | { /* end of list */ }, | ||
119 | }; | ||
120 | |||
121 | static struct of_platform_driver __devinitdata of_platform_serial_driver = { | ||
122 | .owner = THIS_MODULE, | ||
123 | .name = "of_serial", | ||
124 | .probe = of_platform_serial_probe, | ||
125 | .remove = of_platform_serial_remove, | ||
126 | .match_table = of_platform_serial_table, | ||
127 | }; | ||
128 | |||
129 | static int __init of_platform_serial_init(void) | ||
130 | { | ||
131 | return of_register_platform_driver(&of_platform_serial_driver); | ||
132 | } | ||
133 | module_init(of_platform_serial_init); | ||
134 | |||
135 | static void __exit of_platform_serial_exit(void) | ||
136 | { | ||
137 | return of_unregister_platform_driver(&of_platform_serial_driver); | ||
138 | }; | ||
139 | module_exit(of_platform_serial_exit); | ||
140 | |||
141 | MODULE_AUTHOR("Arnd Bergmann <arnd@arndb.de>"); | ||
142 | MODULE_LICENSE("GPL"); | ||
143 | MODULE_DESCRIPTION("Serial Port driver for Open Firmware platform devices"); | ||
diff --git a/include/asm-powerpc/cell-pmu.h b/include/asm-powerpc/cell-pmu.h index e8c2ebd3ddda..35b95773746c 100644 --- a/include/asm-powerpc/cell-pmu.h +++ b/include/asm-powerpc/cell-pmu.h | |||
@@ -53,6 +53,11 @@ | |||
53 | #define CBE_PM_CTR_POLARITY 0x01000000 | 53 | #define CBE_PM_CTR_POLARITY 0x01000000 |
54 | #define CBE_PM_CTR_COUNT_CYCLES 0x00800000 | 54 | #define CBE_PM_CTR_COUNT_CYCLES 0x00800000 |
55 | #define CBE_PM_CTR_ENABLE 0x00400000 | 55 | #define CBE_PM_CTR_ENABLE 0x00400000 |
56 | #define PM07_CTR_INPUT_MUX(x) (((x) & 0x3F) << 26) | ||
57 | #define PM07_CTR_INPUT_CONTROL(x) (((x) & 1) << 25) | ||
58 | #define PM07_CTR_POLARITY(x) (((x) & 1) << 24) | ||
59 | #define PM07_CTR_COUNT_CYCLES(x) (((x) & 1) << 23) | ||
60 | #define PM07_CTR_ENABLE(x) (((x) & 1) << 22) | ||
56 | 61 | ||
57 | /* Macros for the pm_status register. */ | 62 | /* Macros for the pm_status register. */ |
58 | #define CBE_PM_CTR_OVERFLOW_INTR(ctr) (1 << (31 - ((ctr) & 7))) | 63 | #define CBE_PM_CTR_OVERFLOW_INTR(ctr) (1 << (31 - ((ctr) & 7))) |
@@ -89,8 +94,7 @@ extern void cbe_read_trace_buffer(u32 cpu, u64 *buf); | |||
89 | 94 | ||
90 | extern void cbe_enable_pm_interrupts(u32 cpu, u32 thread, u32 mask); | 95 | extern void cbe_enable_pm_interrupts(u32 cpu, u32 thread, u32 mask); |
91 | extern void cbe_disable_pm_interrupts(u32 cpu); | 96 | extern void cbe_disable_pm_interrupts(u32 cpu); |
92 | extern u32 cbe_query_pm_interrupts(u32 cpu); | 97 | extern u32 cbe_get_and_clear_pm_interrupts(u32 cpu); |
93 | extern u32 cbe_clear_pm_interrupts(u32 cpu); | ||
94 | extern void cbe_sync_irq(int node); | 98 | extern void cbe_sync_irq(int node); |
95 | 99 | ||
96 | /* Utility functions, macros */ | 100 | /* Utility functions, macros */ |
@@ -103,11 +107,4 @@ extern u32 cbe_get_hw_thread_id(int cpu); | |||
103 | #define CBE_COUNT_PROBLEM_MODE 2 | 107 | #define CBE_COUNT_PROBLEM_MODE 2 |
104 | #define CBE_COUNT_ALL_MODES 3 | 108 | #define CBE_COUNT_ALL_MODES 3 |
105 | 109 | ||
106 | /* Macros for the pm07_control registers. */ | ||
107 | #define PM07_CTR_INPUT_MUX(x) (((x) & 0x3F) << 26) | ||
108 | #define PM07_CTR_INPUT_CONTROL(x) (((x) & 1) << 25) | ||
109 | #define PM07_CTR_POLARITY(x) (((x) & 1) << 24) | ||
110 | #define PM07_CTR_COUNT_CYCLES(x) (((x) & 1) << 23) | ||
111 | #define PM07_CTR_ENABLE(x) (((x) & 1) << 22) | ||
112 | |||
113 | #endif /* __ASM_CELL_PMU_H__ */ | 110 | #endif /* __ASM_CELL_PMU_H__ */ |
diff --git a/include/asm-powerpc/floppy.h b/include/asm-powerpc/floppy.h index fd242a22331c..a0f14eea1da5 100644 --- a/include/asm-powerpc/floppy.h +++ b/include/asm-powerpc/floppy.h | |||
@@ -17,28 +17,115 @@ | |||
17 | #define fd_outb(value,port) outb_p(value,port) | 17 | #define fd_outb(value,port) outb_p(value,port) |
18 | 18 | ||
19 | #define fd_enable_dma() enable_dma(FLOPPY_DMA) | 19 | #define fd_enable_dma() enable_dma(FLOPPY_DMA) |
20 | #define fd_disable_dma() disable_dma(FLOPPY_DMA) | 20 | #define fd_disable_dma() fd_ops->_disable_dma(FLOPPY_DMA) |
21 | #define fd_request_dma() request_dma(FLOPPY_DMA, "floppy") | 21 | #define fd_free_dma() fd_ops->_free_dma(FLOPPY_DMA) |
22 | #define fd_free_dma() free_dma(FLOPPY_DMA) | ||
23 | #define fd_clear_dma_ff() clear_dma_ff(FLOPPY_DMA) | 22 | #define fd_clear_dma_ff() clear_dma_ff(FLOPPY_DMA) |
24 | #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA, mode) | 23 | #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA, mode) |
25 | #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA, count) | 24 | #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA, count) |
25 | #define fd_get_dma_residue() fd_ops->_get_dma_residue(FLOPPY_DMA) | ||
26 | #define fd_enable_irq() enable_irq(FLOPPY_IRQ) | 26 | #define fd_enable_irq() enable_irq(FLOPPY_IRQ) |
27 | #define fd_disable_irq() disable_irq(FLOPPY_IRQ) | 27 | #define fd_disable_irq() disable_irq(FLOPPY_IRQ) |
28 | #define fd_cacheflush(addr,size) /* nothing */ | 28 | #define fd_cacheflush(addr,size) /* nothing */ |
29 | #define fd_request_irq() request_irq(FLOPPY_IRQ, floppy_interrupt, \ | ||
30 | IRQF_DISABLED, "floppy", NULL) | ||
31 | #define fd_free_irq() free_irq(FLOPPY_IRQ, NULL); | 29 | #define fd_free_irq() free_irq(FLOPPY_IRQ, NULL); |
32 | 30 | ||
33 | #ifdef CONFIG_PCI | ||
34 | |||
35 | #include <linux/pci.h> | 31 | #include <linux/pci.h> |
36 | #include <asm/ppc-pci.h> /* for ppc64_isabridge_dev */ | 32 | #include <asm/ppc-pci.h> /* for ppc64_isabridge_dev */ |
37 | 33 | ||
38 | #define fd_dma_setup(addr,size,mode,io) powerpc_fd_dma_setup(addr,size,mode,io) | 34 | #define fd_dma_setup(addr,size,mode,io) fd_ops->_dma_setup(addr,size,mode,io) |
35 | |||
36 | static int fd_request_dma(void); | ||
37 | |||
38 | struct fd_dma_ops { | ||
39 | void (*_disable_dma)(unsigned int dmanr); | ||
40 | void (*_free_dma)(unsigned int dmanr); | ||
41 | int (*_get_dma_residue)(unsigned int dummy); | ||
42 | int (*_dma_setup)(char *addr, unsigned long size, int mode, int io); | ||
43 | }; | ||
44 | |||
45 | static int virtual_dma_count; | ||
46 | static int virtual_dma_residue; | ||
47 | static char *virtual_dma_addr; | ||
48 | static int virtual_dma_mode; | ||
49 | static int doing_vdma; | ||
50 | static struct fd_dma_ops *fd_ops; | ||
51 | |||
52 | static irqreturn_t floppy_hardint(int irq, void *dev_id) | ||
53 | { | ||
54 | unsigned char st; | ||
55 | int lcount; | ||
56 | char *lptr; | ||
57 | |||
58 | if (!doing_vdma) | ||
59 | return floppy_interrupt(irq, dev_id); | ||
60 | |||
61 | |||
62 | st = 1; | ||
63 | for (lcount=virtual_dma_count, lptr=virtual_dma_addr; | ||
64 | lcount; lcount--, lptr++) { | ||
65 | st=inb(virtual_dma_port+4) & 0xa0 ; | ||
66 | if (st != 0xa0) | ||
67 | break; | ||
68 | if (virtual_dma_mode) | ||
69 | outb_p(*lptr, virtual_dma_port+5); | ||
70 | else | ||
71 | *lptr = inb_p(virtual_dma_port+5); | ||
72 | } | ||
73 | virtual_dma_count = lcount; | ||
74 | virtual_dma_addr = lptr; | ||
75 | st = inb(virtual_dma_port+4); | ||
76 | |||
77 | if (st == 0x20) | ||
78 | return IRQ_HANDLED; | ||
79 | if (!(st & 0x20)) { | ||
80 | virtual_dma_residue += virtual_dma_count; | ||
81 | virtual_dma_count=0; | ||
82 | doing_vdma = 0; | ||
83 | floppy_interrupt(irq, dev_id); | ||
84 | return IRQ_HANDLED; | ||
85 | } | ||
86 | return IRQ_HANDLED; | ||
87 | } | ||
39 | 88 | ||
40 | static __inline__ int powerpc_fd_dma_setup(char *addr, unsigned long size, | 89 | static void vdma_disable_dma(unsigned int dummy) |
41 | int mode, int io) | 90 | { |
91 | doing_vdma = 0; | ||
92 | virtual_dma_residue += virtual_dma_count; | ||
93 | virtual_dma_count=0; | ||
94 | } | ||
95 | |||
96 | static void vdma_nop(unsigned int dummy) | ||
97 | { | ||
98 | } | ||
99 | |||
100 | |||
101 | static int vdma_get_dma_residue(unsigned int dummy) | ||
102 | { | ||
103 | return virtual_dma_count + virtual_dma_residue; | ||
104 | } | ||
105 | |||
106 | |||
107 | static int fd_request_irq(void) | ||
108 | { | ||
109 | if (can_use_virtual_dma) | ||
110 | return request_irq(FLOPPY_IRQ, floppy_hardint, | ||
111 | IRQF_DISABLED, "floppy", NULL); | ||
112 | else | ||
113 | return request_irq(FLOPPY_IRQ, floppy_interrupt, | ||
114 | IRQF_DISABLED, "floppy", NULL); | ||
115 | } | ||
116 | |||
117 | static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) | ||
118 | { | ||
119 | doing_vdma = 1; | ||
120 | virtual_dma_port = io; | ||
121 | virtual_dma_mode = (mode == DMA_MODE_WRITE); | ||
122 | virtual_dma_addr = addr; | ||
123 | virtual_dma_count = size; | ||
124 | virtual_dma_residue = 0; | ||
125 | return 0; | ||
126 | } | ||
127 | |||
128 | static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) | ||
42 | { | 129 | { |
43 | static unsigned long prev_size; | 130 | static unsigned long prev_size; |
44 | static dma_addr_t bus_addr = 0; | 131 | static dma_addr_t bus_addr = 0; |
@@ -46,6 +133,7 @@ static __inline__ int powerpc_fd_dma_setup(char *addr, unsigned long size, | |||
46 | static int prev_dir; | 133 | static int prev_dir; |
47 | int dir; | 134 | int dir; |
48 | 135 | ||
136 | doing_vdma = 0; | ||
49 | dir = (mode == DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; | 137 | dir = (mode == DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; |
50 | 138 | ||
51 | if (bus_addr | 139 | if (bus_addr |
@@ -74,11 +162,32 @@ static __inline__ int powerpc_fd_dma_setup(char *addr, unsigned long size, | |||
74 | return 0; | 162 | return 0; |
75 | } | 163 | } |
76 | 164 | ||
77 | #endif /* CONFIG_PCI */ | 165 | static struct fd_dma_ops real_dma_ops = |
166 | { | ||
167 | ._disable_dma = disable_dma, | ||
168 | ._free_dma = free_dma, | ||
169 | ._get_dma_residue = get_dma_residue, | ||
170 | ._dma_setup = hard_dma_setup | ||
171 | }; | ||
172 | |||
173 | static struct fd_dma_ops virt_dma_ops = | ||
174 | { | ||
175 | ._disable_dma = vdma_disable_dma, | ||
176 | ._free_dma = vdma_nop, | ||
177 | ._get_dma_residue = vdma_get_dma_residue, | ||
178 | ._dma_setup = vdma_dma_setup | ||
179 | }; | ||
78 | 180 | ||
79 | __inline__ void virtual_dma_init(void) | 181 | static int fd_request_dma() |
80 | { | 182 | { |
81 | /* Nothing to do on PowerPC */ | 183 | if (can_use_virtual_dma & 1) { |
184 | fd_ops = &virt_dma_ops; | ||
185 | return 0; | ||
186 | } | ||
187 | else { | ||
188 | fd_ops = &real_dma_ops; | ||
189 | return request_dma(FLOPPY_DMA, "floppy"); | ||
190 | } | ||
82 | } | 191 | } |
83 | 192 | ||
84 | static int FDC1 = 0x3f0; | 193 | static int FDC1 = 0x3f0; |
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index b634e16575f2..0f9f2dd24a79 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -129,7 +129,6 @@ struct spu { | |||
129 | struct spu_runqueue *rq; | 129 | struct spu_runqueue *rq; |
130 | unsigned long long timestamp; | 130 | unsigned long long timestamp; |
131 | pid_t pid; | 131 | pid_t pid; |
132 | int prio; | ||
133 | int class_0_pending; | 132 | int class_0_pending; |
134 | spinlock_t register_lock; | 133 | spinlock_t register_lock; |
135 | 134 | ||
diff --git a/include/asm-powerpc/systbl.h b/include/asm-powerpc/systbl.h index 97b435484177..418e5c7e972c 100644 --- a/include/asm-powerpc/systbl.h +++ b/include/asm-powerpc/systbl.h | |||
@@ -305,3 +305,4 @@ SYSCALL_SPU(faccessat) | |||
305 | COMPAT_SYS_SPU(get_robust_list) | 305 | COMPAT_SYS_SPU(get_robust_list) |
306 | COMPAT_SYS_SPU(set_robust_list) | 306 | COMPAT_SYS_SPU(set_robust_list) |
307 | COMPAT_SYS(move_pages) | 307 | COMPAT_SYS(move_pages) |
308 | SYSCALL_SPU(getcpu) | ||
diff --git a/include/asm-powerpc/ucc_slow.h b/include/asm-powerpc/ucc_slow.h index ca93bc99237e..1babad99c719 100644 --- a/include/asm-powerpc/ucc_slow.h +++ b/include/asm-powerpc/ucc_slow.h | |||
@@ -150,7 +150,7 @@ struct ucc_slow_info { | |||
150 | int ucc_num; | 150 | int ucc_num; |
151 | enum qe_clock rx_clock; | 151 | enum qe_clock rx_clock; |
152 | enum qe_clock tx_clock; | 152 | enum qe_clock tx_clock; |
153 | struct ucc_slow *us_regs; | 153 | struct ucc_slow *regs; |
154 | int irq; | 154 | int irq; |
155 | u16 uccm_mask; | 155 | u16 uccm_mask; |
156 | int data_mem_part; | 156 | int data_mem_part; |
diff --git a/include/asm-powerpc/udbg.h b/include/asm-powerpc/udbg.h index 4cbc313aa02a..d03d8557f706 100644 --- a/include/asm-powerpc/udbg.h +++ b/include/asm-powerpc/udbg.h | |||
@@ -46,6 +46,7 @@ extern void __init udbg_init_iseries(void); | |||
46 | extern void __init udbg_init_rtas_panel(void); | 46 | extern void __init udbg_init_rtas_panel(void); |
47 | extern void __init udbg_init_rtas_console(void); | 47 | extern void __init udbg_init_rtas_console(void); |
48 | extern void __init udbg_init_debug_beat(void); | 48 | extern void __init udbg_init_debug_beat(void); |
49 | extern void __init udbg_init_btext(void); | ||
49 | 50 | ||
50 | #endif /* __KERNEL__ */ | 51 | #endif /* __KERNEL__ */ |
51 | #endif /* _ASM_POWERPC_UDBG_H */ | 52 | #endif /* _ASM_POWERPC_UDBG_H */ |
diff --git a/include/asm-powerpc/vdso.h b/include/asm-powerpc/vdso.h index b9f9118b1607..26fc449bd989 100644 --- a/include/asm-powerpc/vdso.h +++ b/include/asm-powerpc/vdso.h | |||
@@ -18,16 +18,11 @@ | |||
18 | 18 | ||
19 | #ifndef __ASSEMBLY__ | 19 | #ifndef __ASSEMBLY__ |
20 | 20 | ||
21 | extern unsigned int vdso64_pages; | ||
22 | extern unsigned int vdso32_pages; | ||
23 | |||
24 | /* Offsets relative to thread->vdso_base */ | 21 | /* Offsets relative to thread->vdso_base */ |
25 | extern unsigned long vdso64_rt_sigtramp; | 22 | extern unsigned long vdso64_rt_sigtramp; |
26 | extern unsigned long vdso32_sigtramp; | 23 | extern unsigned long vdso32_sigtramp; |
27 | extern unsigned long vdso32_rt_sigtramp; | 24 | extern unsigned long vdso32_rt_sigtramp; |
28 | 25 | ||
29 | extern void vdso_init(void); | ||
30 | |||
31 | #else /* __ASSEMBLY__ */ | 26 | #else /* __ASSEMBLY__ */ |
32 | 27 | ||
33 | #ifdef __VDSO64__ | 28 | #ifdef __VDSO64__ |
diff --git a/include/asm-ppc/ibm4xx.h b/include/asm-ppc/ibm4xx.h index 7a64ede53bb6..92fd02d7b177 100644 --- a/include/asm-ppc/ibm4xx.h +++ b/include/asm-ppc/ibm4xx.h | |||
@@ -109,6 +109,10 @@ void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
109 | #include <platforms/4xx/ocotea.h> | 109 | #include <platforms/4xx/ocotea.h> |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #if defined(CONFIG_TAISHAN) | ||
113 | #include <platforms/4xx/taishan.h> | ||
114 | #endif | ||
115 | |||
112 | #ifndef __ASSEMBLY__ | 116 | #ifndef __ASSEMBLY__ |
113 | #ifdef CONFIG_40x | 117 | #ifdef CONFIG_40x |
114 | /* | 118 | /* |