aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn de Gouw <martijn.de.gouw@prodrive.nl>2014-04-15 13:51:46 -0400
committerScott Wood <scottwood@freescale.com>2014-05-22 19:08:20 -0400
commit2b09c6038941b8ba6ee9b3851c7be50a9f3acedf (patch)
tree1cdf16eae3868388a8c6b2cf4878c3d4dbdd163c
parent497c8b6096ac49ffa13c4bc2a0f48cb3fbb6ba59 (diff)
powerpc/85xx: Add OCA4080 board support
OCA4080 overview: - 1.466 GHz Freescale QorIQ P4080E Processor - 4Gbyte DDR3 on board - 8Mbyte Nor flash - Serial RapidIO 1.2 - 1 x 10/100/1000 BASE-T front ethernet - 1 x 1000 BASE-BX ethernet on AMC connector Signed-off-by: Martijn de Gouw <martijn.de.gouw@prodrive.nl> [scottwood@freescale.com: minor conflict-related changes] Signed-off-by: Scott Wood <scottwood@freescale.com>
-rw-r--r--arch/powerpc/boot/dts/oca4080.dts118
-rw-r--r--arch/powerpc/configs/corenet32_smp_defconfig1
-rw-r--r--arch/powerpc/platforms/85xx/Kconfig2
-rw-r--r--arch/powerpc/platforms/85xx/corenet_generic.c2
4 files changed, 122 insertions, 1 deletions
diff --git a/arch/powerpc/boot/dts/oca4080.dts b/arch/powerpc/boot/dts/oca4080.dts
new file mode 100644
index 000000000000..3d4c751d1608
--- /dev/null
+++ b/arch/powerpc/boot/dts/oca4080.dts
@@ -0,0 +1,118 @@
1/*
2 * OCA4080 Device Tree Source
3 *
4 * Copyright 2014 Prodrive Technologies B.V.
5 *
6 * Based on:
7 * P4080DS Device Tree Source
8 * Copyright 2009-2011 Freescale Semiconductor Inc.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are met:
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * * Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * * Neither the name of Freescale Semiconductor nor the
18 * names of its contributors may be used to endorse or promote products
19 * derived from this software without specific prior written permission.
20 *
21 *
22 * ALTERNATIVELY, this software may be distributed under the terms of the
23 * GNU General Public License ("GPL") as published by the Free Software
24 * Foundation, either version 2 of that License or (at your option) any
25 * later version.
26 *
27 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
28 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
31 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
34 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 */
38
39/include/ "fsl/p4080si-pre.dtsi"
40
41/ {
42 model = "fsl,OCA4080";
43 compatible = "fsl,OCA4080";
44 #address-cells = <2>;
45 #size-cells = <2>;
46 interrupt-parent = <&mpic>;
47
48 memory {
49 device_type = "memory";
50 };
51
52 dcsr: dcsr@f00000000 {
53 ranges = <0x00000000 0xf 0x00000000 0x01008000>;
54 };
55
56 soc: soc@ffe000000 {
57 ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
58 reg = <0xf 0xfe000000 0 0x00001000>;
59
60 i2c@118000 {
61 status = "disabled";
62 };
63
64 i2c@118100 {
65 status = "disabled";
66 };
67
68 i2c@119000 {
69 status = "disabled";
70 };
71
72 i2c@119100 {
73 status = "disabled";
74 };
75
76 usb0: usb@210000 {
77 status = "disabled";
78 };
79
80 usb1: usb@211000 {
81 status = "disabled";
82 };
83 };
84
85 rio: rapidio@ffe0c0000 {
86 reg = <0xf 0xfe0c0000 0 0x11000>;
87
88 port1 {
89 ranges = <0 0 0xc 0x20000000 0 0x10000000>;
90 };
91 };
92
93 lbc: localbus@ffe124000 {
94 reg = <0xf 0xfe124000 0 0x1000>;
95 ranges = <0 0 0xf 0xef800000 0x800000>;
96
97 flash@0,0 {
98 compatible = "cfi-flash";
99 reg = <0 0 0x00800000>;
100 bank-width = <2>;
101 device-width = <2>;
102 };
103 };
104
105 pci0: pcie@ffe200000 {
106 status = "disabled";
107 };
108
109 pci1: pcie@ffe201000 {
110 status = "disabled";
111 };
112
113 pci2: pcie@ffe202000 {
114 status = "disabled";
115 };
116};
117
118/include/ "fsl/p4080si-post.dtsi"
diff --git a/arch/powerpc/configs/corenet32_smp_defconfig b/arch/powerpc/configs/corenet32_smp_defconfig
index bbd794deb6eb..c19ff057d0f9 100644
--- a/arch/powerpc/configs/corenet32_smp_defconfig
+++ b/arch/powerpc/configs/corenet32_smp_defconfig
@@ -72,6 +72,7 @@ CONFIG_MTD_CMDLINE_PARTS=y
72CONFIG_MTD_CHAR=y 72CONFIG_MTD_CHAR=y
73CONFIG_MTD_BLOCK=y 73CONFIG_MTD_BLOCK=y
74CONFIG_MTD_CFI=y 74CONFIG_MTD_CFI=y
75CONFIG_MTD_CFI_INTELEXT=y
75CONFIG_MTD_CFI_AMDSTD=y 76CONFIG_MTD_CFI_AMDSTD=y
76CONFIG_MTD_PHYSMAP_OF=y 77CONFIG_MTD_PHYSMAP_OF=y
77CONFIG_MTD_M25P80=y 78CONFIG_MTD_M25P80=y
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index fb98fd6b91b5..a1182796a9d1 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -263,7 +263,7 @@ config CORENET_GENERIC
263 help 263 help
264 This option enables support for the FSL CoreNet based boards. 264 This option enables support for the FSL CoreNet based boards.
265 For 32bit kernel, the following boards are supported: 265 For 32bit kernel, the following boards are supported:
266 P2041 RDB, P3041 DS, P4080 DS and kmcoge4 266 P2041 RDB, P3041 DS, P4080 DS, kmcoge4, and OCA4080
267 For 64bit kernel, the following boards are supported: 267 For 64bit kernel, the following boards are supported:
268 T4240 QDS and B4 QDS 268 T4240 QDS and B4 QDS
269 The following boards are supported for both 32bit and 64bit kernel: 269 The following boards are supported for both 32bit and 64bit kernel:
diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c b/arch/powerpc/platforms/85xx/corenet_generic.c
index ceb0dac32ade..477c182e4ba5 100644
--- a/arch/powerpc/platforms/85xx/corenet_generic.c
+++ b/arch/powerpc/platforms/85xx/corenet_generic.c
@@ -115,6 +115,7 @@ int __init corenet_gen_publish_devices(void)
115static const char * const boards[] __initconst = { 115static const char * const boards[] __initconst = {
116 "fsl,P2041RDB", 116 "fsl,P2041RDB",
117 "fsl,P3041DS", 117 "fsl,P3041DS",
118 "fsl,OCA4080",
118 "fsl,P4080DS", 119 "fsl,P4080DS",
119 "fsl,P5020DS", 120 "fsl,P5020DS",
120 "fsl,P5040DS", 121 "fsl,P5040DS",
@@ -129,6 +130,7 @@ static const char * const boards[] __initconst = {
129static const char * const hv_boards[] __initconst = { 130static const char * const hv_boards[] __initconst = {
130 "fsl,P2041RDB-hv", 131 "fsl,P2041RDB-hv",
131 "fsl,P3041DS-hv", 132 "fsl,P3041DS-hv",
133 "fsl,OCA4080-hv",
132 "fsl,P4080DS-hv", 134 "fsl,P4080DS-hv",
133 "fsl,P5020DS-hv", 135 "fsl,P5020DS-hv",
134 "fsl,P5040DS-hv", 136 "fsl,P5040DS-hv",