Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…t/scottwood/linux into next

Merge changes from Scott:
  Includes a couple of device tree fixes, a spelling fix, and leftover
  code cleanup.
  • Loading branch information
mpe committed Nov 18, 2019
2 parents 0695f8b + a76bea0 commit 98ba8e8
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 36 deletions.
52 changes: 47 additions & 5 deletions arch/powerpc/boot/dts/fsl/kmcent2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,19 @@

fman@400000 {
ethernet@e0000 {
fixed-link = <0 1 1000 0 0>;
phy-connection-type = "sgmii";
phy-mode = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

ethernet@e2000 {
fixed-link = <1 1 1000 0 0>;
phy-connection-type = "sgmii";
phy-mode = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

ethernet@e4000 {
Expand All @@ -229,7 +235,7 @@

ethernet@e8000 {
phy-handle = <&front_phy>;
phy-connection-type = "rgmii";
phy-mode = "rgmii-id";
};

mdio0: mdio@fc000 {
Expand Down Expand Up @@ -258,14 +264,50 @@

pci1: pcie@ffe250000 {
status = "disabled";
reg = <0xf 0xfe250000 0 0x10000>;
ranges = <0x02000000 0 0xe0000000 0xc 0x10000000 0 0x10000000
0x01000000 0 0 0xf 0xf8010000 0 0x00010000>;
pcie@0 {
ranges = <0x02000000 0 0xe0000000
0x02000000 0 0xe0000000
0 0x10000000

0x01000000 0 0x00000000
0x01000000 0 0x00000000
0 0x00010000>;
};
};

pci2: pcie@ffe260000 {
status = "disabled";
reg = <0xf 0xfe260000 0 0x10000>;
ranges = <0x02000000 0 0xe0000000 0xc 0x20000000 0 0x10000000
0x01000000 0 0x00000000 0xf 0xf8020000 0 0x00010000>;
pcie@0 {
ranges = <0x02000000 0 0xe0000000
0x02000000 0 0xe0000000
0 0x10000000

0x01000000 0 0x00000000
0x01000000 0 0x00000000
0 0x00010000>;
};
};

pci3: pcie@ffe270000 {
status = "disabled";
reg = <0xf 0xfe270000 0 0x10000>;
ranges = <0x02000000 0 0xe0000000 0xc 0x30000000 0 0x10000000
0x01000000 0 0x00000000 0xf 0xf8030000 0 0x00010000>;
pcie@0 {
ranges = <0x02000000 0 0xe0000000
0x02000000 0 0xe0000000
0 0x10000000

0x01000000 0 0x00000000
0x01000000 0 0x00000000
0 0x00010000>;
};
};

qe: qe@ffe140000 {
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/cpu_setup_fsl_booke.S
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ _GLOBAL(__setup_cpu_e5500)
blr
#endif

/* flush L1 date cache, it can apply to e500v2, e500mc and e5500 */
/* flush L1 data cache, it can apply to e500v2, e500mc and e5500 */
_GLOBAL(flush_dcache_L1)
mfmsr r10
wrteei 0
Expand Down
23 changes: 0 additions & 23 deletions arch/powerpc/platforms/85xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,29 +86,6 @@ void __init mpc85xx_cpm2_pic_init(void)
#endif

#ifdef CONFIG_QUICC_ENGINE
void __init mpc85xx_qe_init(void)
{
struct device_node *np;

np = of_find_compatible_node(NULL, NULL, "fsl,qe");
if (!np) {
np = of_find_node_by_name(NULL, "qe");
if (!np) {
pr_err("%s: Could not find Quicc Engine node\n",
__func__);
return;
}
}

if (!of_device_is_available(np)) {
of_node_put(np);
return;
}

of_node_put(np);

}

void __init mpc85xx_qe_par_io_init(void)
{
struct device_node *np;
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/platforms/85xx/corenet_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ void __init corenet_gen_setup_arch(void)
swiotlb_detect_4g();

pr_info("%s board\n", ppc_md.name);

mpc85xx_qe_init();
}

static const struct of_device_id of_device_ids[] = {
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/platforms/85xx/mpc85xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ static inline void __init mpc85xx_cpm2_pic_init(void) {}
#endif /* CONFIG_CPM2 */

#ifdef CONFIG_QUICC_ENGINE
extern void mpc85xx_qe_init(void);
extern void mpc85xx_qe_par_io_init(void);
#else
static inline void __init mpc85xx_qe_init(void) {}
static inline void __init mpc85xx_qe_par_io_init(void) {}
#endif

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ static void __init mpc85xx_mds_qe_init(void)
{
struct device_node *np;

mpc85xx_qe_init();
mpc85xx_qe_par_io_init();
mpc85xx_mds_reset_ucc_phys();

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ static void __init mpc85xx_rdb_setup_arch(void)
fsl_pci_assign_primary();

#ifdef CONFIG_QUICC_ENGINE
mpc85xx_qe_init();
mpc85xx_qe_par_io_init();
#if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE)
if (machine_is(p1025_rdb)) {
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/85xx/twr_p102x.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ static void __init twr_p1025_setup_arch(void)
fsl_pci_assign_primary();

#ifdef CONFIG_QUICC_ENGINE
mpc85xx_qe_init();
mpc85xx_qe_par_io_init();

#if IS_ENABLED(CONFIG_UCC_GETH) || IS_ENABLED(CONFIG_SERIAL_QE)
Expand Down

0 comments on commit 98ba8e8

Please sign in to comment.