Skip to content

Commit 98ba8e8

Browse files
committed
Merge changes from Scott: Includes a couple of device tree fixes, a spelling fix, and leftover code cleanup.
2 parents 0695f8b + a76bea0 commit 98ba8e8

File tree

8 files changed

+48
-36
lines changed

8 files changed

+48
-36
lines changed

arch/powerpc/boot/dts/fsl/kmcent2.dts

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,19 @@
210210

211211
fman@400000 {
212212
ethernet@e0000 {
213-
fixed-link = <0 1 1000 0 0>;
214-
phy-connection-type = "sgmii";
213+
phy-mode = "sgmii";
214+
fixed-link {
215+
speed = <1000>;
216+
full-duplex;
217+
};
215218
};
216219

217220
ethernet@e2000 {
218-
fixed-link = <1 1 1000 0 0>;
219-
phy-connection-type = "sgmii";
221+
phy-mode = "sgmii";
222+
fixed-link {
223+
speed = <1000>;
224+
full-duplex;
225+
};
220226
};
221227

222228
ethernet@e4000 {
@@ -229,7 +235,7 @@
229235

230236
ethernet@e8000 {
231237
phy-handle = <&front_phy>;
232-
phy-connection-type = "rgmii";
238+
phy-mode = "rgmii-id";
233239
};
234240

235241
mdio0: mdio@fc000 {
@@ -258,14 +264,50 @@
258264

259265
pci1: pcie@ffe250000 {
260266
status = "disabled";
267+
reg = <0xf 0xfe250000 0 0x10000>;
268+
ranges = <0x02000000 0 0xe0000000 0xc 0x10000000 0 0x10000000
269+
0x01000000 0 0 0xf 0xf8010000 0 0x00010000>;
270+
pcie@0 {
271+
ranges = <0x02000000 0 0xe0000000
272+
0x02000000 0 0xe0000000
273+
0 0x10000000
274+
275+
0x01000000 0 0x00000000
276+
0x01000000 0 0x00000000
277+
0 0x00010000>;
278+
};
261279
};
262280

263281
pci2: pcie@ffe260000 {
264282
status = "disabled";
283+
reg = <0xf 0xfe260000 0 0x10000>;
284+
ranges = <0x02000000 0 0xe0000000 0xc 0x20000000 0 0x10000000
285+
0x01000000 0 0x00000000 0xf 0xf8020000 0 0x00010000>;
286+
pcie@0 {
287+
ranges = <0x02000000 0 0xe0000000
288+
0x02000000 0 0xe0000000
289+
0 0x10000000
290+
291+
0x01000000 0 0x00000000
292+
0x01000000 0 0x00000000
293+
0 0x00010000>;
294+
};
265295
};
266296

267297
pci3: pcie@ffe270000 {
268298
status = "disabled";
299+
reg = <0xf 0xfe270000 0 0x10000>;
300+
ranges = <0x02000000 0 0xe0000000 0xc 0x30000000 0 0x10000000
301+
0x01000000 0 0x00000000 0xf 0xf8030000 0 0x00010000>;
302+
pcie@0 {
303+
ranges = <0x02000000 0 0xe0000000
304+
0x02000000 0 0xe0000000
305+
0 0x10000000
306+
307+
0x01000000 0 0x00000000
308+
0x01000000 0 0x00000000
309+
0 0x00010000>;
310+
};
269311
};
270312

271313
qe: qe@ffe140000 {

arch/powerpc/kernel/cpu_setup_fsl_booke.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ _GLOBAL(__setup_cpu_e5500)
231231
blr
232232
#endif
233233

234-
/* flush L1 date cache, it can apply to e500v2, e500mc and e5500 */
234+
/* flush L1 data cache, it can apply to e500v2, e500mc and e5500 */
235235
_GLOBAL(flush_dcache_L1)
236236
mfmsr r10
237237
wrteei 0

arch/powerpc/platforms/85xx/common.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -86,29 +86,6 @@ void __init mpc85xx_cpm2_pic_init(void)
8686
#endif
8787

8888
#ifdef CONFIG_QUICC_ENGINE
89-
void __init mpc85xx_qe_init(void)
90-
{
91-
struct device_node *np;
92-
93-
np = of_find_compatible_node(NULL, NULL, "fsl,qe");
94-
if (!np) {
95-
np = of_find_node_by_name(NULL, "qe");
96-
if (!np) {
97-
pr_err("%s: Could not find Quicc Engine node\n",
98-
__func__);
99-
return;
100-
}
101-
}
102-
103-
if (!of_device_is_available(np)) {
104-
of_node_put(np);
105-
return;
106-
}
107-
108-
of_node_put(np);
109-
110-
}
111-
11289
void __init mpc85xx_qe_par_io_init(void)
11390
{
11491
struct device_node *np;

arch/powerpc/platforms/85xx/corenet_generic.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ void __init corenet_gen_setup_arch(void)
6666
swiotlb_detect_4g();
6767

6868
pr_info("%s board\n", ppc_md.name);
69-
70-
mpc85xx_qe_init();
7169
}
7270

7371
static const struct of_device_id of_device_ids[] = {

arch/powerpc/platforms/85xx/mpc85xx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ static inline void __init mpc85xx_cpm2_pic_init(void) {}
1010
#endif /* CONFIG_CPM2 */
1111

1212
#ifdef CONFIG_QUICC_ENGINE
13-
extern void mpc85xx_qe_init(void);
1413
extern void mpc85xx_qe_par_io_init(void);
1514
#else
16-
static inline void __init mpc85xx_qe_init(void) {}
1715
static inline void __init mpc85xx_qe_par_io_init(void) {}
1816
#endif
1917

arch/powerpc/platforms/85xx/mpc85xx_mds.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ static void __init mpc85xx_mds_qe_init(void)
238238
{
239239
struct device_node *np;
240240

241-
mpc85xx_qe_init();
242241
mpc85xx_qe_par_io_init();
243242
mpc85xx_mds_reset_ucc_phys();
244243

arch/powerpc/platforms/85xx/mpc85xx_rdb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ static void __init mpc85xx_rdb_setup_arch(void)
8989
fsl_pci_assign_primary();
9090

9191
#ifdef CONFIG_QUICC_ENGINE
92-
mpc85xx_qe_init();
9392
mpc85xx_qe_par_io_init();
9493
#if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE)
9594
if (machine_is(p1025_rdb)) {

arch/powerpc/platforms/85xx/twr_p102x.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ static void __init twr_p1025_setup_arch(void)
7272
fsl_pci_assign_primary();
7373

7474
#ifdef CONFIG_QUICC_ENGINE
75-
mpc85xx_qe_init();
7675
mpc85xx_qe_par_io_init();
7776

7877
#if IS_ENABLED(CONFIG_UCC_GETH) || IS_ENABLED(CONFIG_SERIAL_QE)

0 commit comments

Comments
 (0)