powerpc/85xx: add support for FM2 DTSEC5
Subsystems (2)
PATCH 1/7 powerpc/85xx: add support for FM2 DTSEC5
Unlike previous SOCs, the Freescale P5040 has a fifth DTSEC on the second Fman, so add the Fman and SerDes macros for that DTSEC.
--- arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 6 ++++++ arch/powerpc/include/asm/fsl_serdes.h | 1 + arch/powerpc/include/asm/immap_85xx.h | 1 + drivers/net/fm/init.c | 3 +++ include/fm_eth.h | 1 + 5 files changed, 12 insertions(+), 0 deletions(-)
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c +6 -0
@@ -68,6 +68,7 @@ static const char *serdes_prtcl_str[] = { [SGMII_FM2_DTSEC2] = "SGMII_FM2_DTSEC2", [SGMII_FM2_DTSEC3] = "SGMII_FM2_DTSEC3", [SGMII_FM2_DTSEC4] = "SGMII_FM2_DTSEC4", + [SGMII_FM2_DTSEC5] = "SGMII_FM2_DTSEC5", [XAUI_FM1] = "XAUI_FM1", [XAUI_FM2] = "XAUI_FM2", [AURORA] = "DEBUG",
@@ -658,6 +659,7 @@ void fsl_serdes_init(void)case SGMII_FM2_DTSEC2 :case SGMII_FM2_DTSEC3 :case SGMII_FM2_DTSEC4 : +case SGMII_FM2_DTSEC5 :case XAUI_FM1 :case XAUI_FM2 :case SRIO1 :
@@ -717,6 +719,10 @@ void fsl_serdes_init(void) serdes8_devdisr2 |=FSL_CORENET_DEVDISR2_FM2 |FSL_CORENET_DEVDISR2_DTSEC2_4 ;break ; +case SGMII_FM2_DTSEC5 : + serdes8_devdisr2 |=FSL_CORENET_DEVDISR2_FM2 | +FSL_CORENET_DEVDISR2_DTSEC2_5 ; +break ;case XAUI_FM1 : serdes8_devdisr2 |=FSL_CORENET_DEVDISR2_FM1 |FSL_CORENET_DEVDISR2_10GEC1 ;
arch/powerpc/include/asm/fsl_serdes.h +1 -0
@@ -41,6 +41,7 @@ enum srds_prtcl {SGMII_FM2_DTSEC2 ,SGMII_FM2_DTSEC3 ,SGMII_FM2_DTSEC4 , +SGMII_FM2_DTSEC5 ,SGMII_TSEC1 ,SGMII_TSEC2 , SGMII_TSEC3,
arch/powerpc/include/asm/immap_85xx.h +1 -0
@@ -1729,6 +1729,7 @@ typedef struct ccsr_gur {#define FSL_CORENET_DEVDISR2_DTSEC2_2 0x00004000#define FSL_CORENET_DEVDISR2_DTSEC2_3 0x00002000#define FSL_CORENET_DEVDISR2_DTSEC2_4 0x00001000 +#define FSL_CORENET_DEVDISR2_DTSEC2_5 0x00000800#define FSL_CORENET_NUM_DEVDISR 2u8 res7[8 ];u32 powmgtcsr;/* Power management status & control */
drivers/net/fm/init.c +3 -0
@@ -50,6 +50,9 @@ struct fm_eth_info fm_info[] = {#if (CONFIG_SYS_NUM_FM2_DTSEC >=4 ) FM_DTSEC_INFO_INITIALIZER(2, 4),#endif +#if (CONFIG_SYS_NUM_FM2_DTSEC >=5 ) + FM_DTSEC_INFO_INITIALIZER(2, 5), +#endif #if (CONFIG_SYS_NUM_FM1_10GEC >=1 ) FM_TGEC_INFO_INITIALIZER(1, 1),#endif
include/fm_eth.h +1 -0
@@ -35,6 +35,7 @@ enum fm_port {FM2_DTSEC2 ,FM2_DTSEC3 ,FM2_DTSEC4 , +FM2_DTSEC5 ,FM2_10GEC1 , NUM_FM_PORTS, };
Signature · 1 line
1.7.3.4
PATCH 2/7 fm-eth: add function fm_info_get_phy_address()
Function fm_info_get_phy_address() returns the PHY address for a given Fman port. This is handy when the MDIO code needs to fixup the Ethernet nodes in the device tree to point to PHY nodes for a specific PHY address.
--- drivers/net/fm/init.c | 16 ++++++++++++++++ include/fm_eth.h | 1 + 2 files changed, 17 insertions(+), 0 deletions(-)
drivers/net/fm/init.c +16 -0
@@ -155,6 +155,22 @@ void fm_info_set_phy_address(enum fm_port port, int address) }/* +* Returns the PHY address for a given Fman port +* +* The port must be set via a prior call to fm_info_set_phy_address(). +* A negative error code is returned if the port is invalid. +*/ +int fm_info_get_phy_address (enum fm_port port) +{ +int i =fm_port_to_index (port); + +if (i ==-1 ) +return -1 ; + +return fm_info[i].phy_addr; +} + +/* * Returns the type of the data interface between the given MAC and its PHY. * This is typically determined by the RCW. */
include/fm_eth.h +1 -0
@@ -110,6 +110,7 @@ void fman_enet_init(void);void fdt_fixup_fman_ethernet (void *fdt);phy_interface_t fm_info_get_enet_if (enum fm_port port);void fm_info_set_phy_address (enum fm_port port,int address); +int fm_info_get_phy_address (enum fm_port port);void fm_info_set_mdio (enum fm_port port,struct mii_dev *bus);void fm_disable_port (enum fm_port port);
Signature · 1 line
1.7.3.4
PATCH v2 3/7 powerpc/85xx: introduce function serdes_device_from_fm_port()
In reply to Timur TabiIn order to figure out which SerDes lane a given Fman port is connected to, we need a function that maps the fm_port namespace to the srds_prtcl namespace.
--- board/freescale/common/fman.c | 31 +++++++++++++++++++++++++++++++ board/freescale/common/fman.h | 2 ++ 2 files changed, 33 insertions(+), 0 deletions(-)
board/freescale/common/fman.c +31 -0
@@ -25,6 +25,9 @@#include <libfdt_env.h> #include <fdt_support.h> +#include <fm_eth.h> +#include <asm/fsl_serdes.h> +/* * Given the following ... *
@@ -67,3 +70,31 @@ int fdt_set_phy_handle(void *fdt, char *compat, phys_addr_t addr,return fdt_setprop (fdt, offset,"phy-handle" , &ph,sizeof (ph)); } + +/* +* Return the SerDes device enum for a given Fman port +* +* This function just maps the fm_port namespace to the srds_prtcl namespace. +*/ +enum srds_prtcl serdes_device_from_fm_port (enum fm_port port) +{ +static const enum srds_prtcl srds_table[] = { + [FM1_DTSEC1 ] =SGMII_FM1_DTSEC1 , + [FM1_DTSEC2 ] =SGMII_FM1_DTSEC2 , + [FM1_DTSEC3 ] =SGMII_FM1_DTSEC3 , + [FM1_DTSEC4 ] =SGMII_FM1_DTSEC4 , + [FM1_DTSEC5 ] =SGMII_FM1_DTSEC5 , + [FM1_10GEC1 ] =XAUI_FM1 , + [FM2_DTSEC1 ] =SGMII_FM2_DTSEC1 , + [FM2_DTSEC2 ] =SGMII_FM2_DTSEC2 , + [FM2_DTSEC3 ] =SGMII_FM2_DTSEC3 , + [FM2_DTSEC4 ] =SGMII_FM2_DTSEC4 , + [FM2_DTSEC5 ] =SGMII_FM2_DTSEC5 , + [FM2_10GEC1 ] =XAUI_FM2 , + }; + +if ((port <FM1_DTSEC1 ) || (port >FM2_10GEC1 )) +return NONE ; +else +return srds_table[port]; +}
board/freescale/common/fman.h +2 -0
@@ -23,4 +23,6 @@int fdt_set_phy_handle (void *fdt,char *compat,phys_addr_t addr,const char *alias); +enum srds_prtcl serdes_device_from_fm_port (enum fm_port port); +#endif
Signature · 1 line
1.7.3.4
PATCH 4/7 fm-eth: use fdt_status_disabled() function in ft_fixup_port()
In reply to Timur TabiWe have a dedicated function for setting the node status now, so use it. Also improve a comment and fix the type of the phandle variable.
--- drivers/net/fm/init.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-)
drivers/net/fm/init.c +5 -6
@@ -200,7 +200,8 @@ void board_ft_fman_fixup_port(void *blob, char * prop, phys_addr_t pa,static void ft_fixup_port (void *blob,struct fm_eth_info *info,char *prop) { -int off, ph; +int off; +uint32_t ph;phys_addr_t paddr =CONFIG_SYS_CCSRBAR_PHYS + info->compat_offset;u64 dtsec1_addr = (u64 )CONFIG_SYS_CCSRBAR_PHYS +CONFIG_SYS_FSL_FM1_DTSEC1_OFFSET ;
@@ -217,12 +218,10 @@ static void ft_fixup_port(void *blob, struct fm_eth_info *info, char *prop) off =fdt_node_offset_by_compat_reg (blob, prop, paddr);/* Don't disable FM1-DTSEC1 MAC as its used for MDIO */ -if (paddr != dtsec1_addr) { -/* disable the mac node */ -fdt_setprop_string (blob, off,"status" ,"disabled" ); - } +if (paddr != dtsec1_addr) +fdt_status_disabled (blob, off);/* disable the MAC node */ -/* disable the node point to the mac */ +/* disable the fsl,dpa-ethernet node that points to the MAC */ ph =fdt_get_phandle (blob, off);do_fixup_by_prop (blob,"fsl,fman-mac" , &ph,sizeof (ph),"status" ,"disabled" ,strlen ("disabled" ) +1 ,1 );
Signature · 1 line
1.7.3.4
PATCH 5/7 powerpc/85xx: get rid of enum board_slots in P4080 MDIO driver
In reply to Timur Tabienum board_slots contained six values, where SLOT1 == 1, SLOT2 == 2, and so on. This is pointless, so remove it. Also move the lane_to_slot[] array to the top of the file so that it can be used by other functions.
--- board/freescale/corenet_ds/eth_p4080.c | 59 ++++++++++--------------------- 1 files changed, 19 insertions(+), 40 deletions(-)
board/freescale/corenet_ds/eth_p4080.c +19 -40
@@ -68,6 +68,15 @@ static char *mdio_names[16] = { NULL, NULL, NULL, }; +/* +* Mapping of all 18 SERDES lanes to board slots. A value of '0' here means +* that the mapping must be determined dynamically, or that the lane maps to +* something other than a board slot. +*/ +static u8 lane_to_slot[] = { +1 ,1 ,2 ,2 ,3 ,3 ,3 ,3 ,6 ,6 ,4 ,4 ,4 ,4 ,5 ,5 ,5 ,5 +}; +static char *p4080ds_mdio_name_for_muxval (u32 muxval) {return mdio_names[(muxval &EMI_MASK ) >>28 ];
@@ -290,15 +299,6 @@ void fdt_fixup_board_enet(void *fdt) } } -enum board_slots { -SLOT1 =1 , -SLOT2 , -SLOT3 , -SLOT4 , -SLOT5 , -SLOT6 , -}; -int board_eth_init (bd_t *bis) {#ifdef CONFIG_FMAN_ENET
@@ -307,27 +307,6 @@ int board_eth_init(bd_t *bis)struct fsl_pq_mdio_info dtsec_mdio_info;struct tgec_mdio_info tgec_mdio_info; -u8 lane_to_slot[] = { -SLOT1 ,/* 0 - Bank 1:A */ -SLOT1 ,/* 1 - Bank 1:B */ -SLOT2 ,/* 2 - Bank 1:C */ -SLOT2 ,/* 3 - Bank 1:D */ -SLOT3 ,/* 4 - Bank 1:E */ -SLOT3 ,/* 5 - Bank 1:F */ -SLOT3 ,/* 6 - Bank 1:G */ -SLOT3 ,/* 7 - Bank 1:H */ -SLOT6 ,/* 8 - Bank 1:I */ -SLOT6 ,/* 9 - Bank 1:J */ -SLOT4 ,/* 10 - Bank 2:A */ -SLOT4 ,/* 11 - Bank 2:B */ -SLOT4 ,/* 12 - Bank 2:C */ -SLOT4 ,/* 13 - Bank 2:D */ -SLOT5 ,/* 14 - Bank 3:A */ -SLOT5 ,/* 15 - Bank 3:B */ -SLOT5 ,/* 16 - Bank 3:C */ -SLOT5 ,/* 17 - Bank 3:D */ - }; -/* Initialize the mdio_mux array so we can recognize empty elements */ for (i =0 ; i <NUM_FM_PORTS ; i++) mdio_mux[i] =EMI_NONE ;
@@ -380,17 +359,17 @@ int board_eth_init(bd_t *bis)break ; slot = lane_to_slot[lane];switch (slot) { -case SLOT3 : +case 3 : mdio_mux[i] =EMI1_SLOT3 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));break ; -case SLOT4 : +case 4 : mdio_mux[i] =EMI1_SLOT4 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));break ; -case SLOT5 : +case 5 : mdio_mux[i] =EMI1_SLOT5 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));
@@ -417,12 +396,12 @@ int board_eth_init(bd_t *bis)break ; slot = lane_to_slot[lane];switch (slot) { -case SLOT4 : +case 4 : mdio_mux[i] =EMI2_SLOT4 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));break ; -case SLOT5 : +case 5 : mdio_mux[i] =EMI2_SLOT5 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));
@@ -444,17 +423,17 @@ int board_eth_init(bd_t *bis)break ; slot = lane_to_slot[lane];switch (slot) { -case SLOT3 : +case 3 : mdio_mux[i] =EMI1_SLOT3 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));break ; -case SLOT4 : +case 4 : mdio_mux[i] =EMI1_SLOT4 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));break ; -case SLOT5 : +case 5 : mdio_mux[i] =EMI1_SLOT5 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));
@@ -481,12 +460,12 @@ int board_eth_init(bd_t *bis)break ; slot = lane_to_slot[lane];switch (slot) { -case SLOT4 : +case 4 : mdio_mux[i] =EMI2_SLOT4 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));break ; -case SLOT5 : +case 5 : mdio_mux[i] =EMI2_SLOT5 ;fm_info_set_mdio (i,mii_dev_for_muxval (mdio_mux[i]));
Signature · 1 line
1.7.3.4
PATCH 6/7 powerpc/85xx: update P4080DS MDIO bus multiplexer support
In reply to Timur TabiThe Freescale P4080DS has a complex multiplexed MDIO bus, where the muxing varies per SerDes protocol. This is because the protocol determines in which PCI slot the various SGMII and XGMII interface cards belong, as well as whether the RGMII ports are enabled.
The Freescale SDK includes support for MDIO bus multiplexing, but the upstream Linux kernel uses David Daney's (Cavium) method instead. Therefore, the P4080 code needs to be migrated to the new method.
The device tree contains two top-level mdio-mux nodes, one for EMI1 (RGMII and SGMII) and the other for EMI2 (XGMII). The U-boot code depends on several device tree aliases to help it find the nodes that need to be updated.
--- board/freescale/corenet_ds/eth_p4080.c | 172 ++++++++++++++++++++++++-------- 1 files changed, 129 insertions(+), 43 deletions(-)
board/freescale/corenet_ds/eth_p4080.c +129 -43
@@ -53,7 +53,7 @@#define EMI1_MASK 0xc0000000#define EMI2_MASK 0x30000000 -static int mdio_mux[NUM_FM_PORTS ]; +static u32 mdio_mux[NUM_FM_PORTS ];static char *mdio_names[16 ] = {"P4080DS_MDIO0" ,
@@ -232,73 +232,159 @@ static int p4080ds_mdio_init(char *realbusname, u32 muxval)return mdio_register (bus); } -void board_ft_fman_fixup_port (void *blob,char * prop,phys_addr_t pa, -enum fm_port port,int offset) +/* +* Given the following ... +* +* 1) A pointer to an Fman Ethernet node (as identified by the 'compat' +* compatible string and 'addr' physical address) +* +* 2) An Fman port +* +* ... update the phy-handle property of the Ethernet node to point to the +* right PHY. This assumes that we already know the PHY for each port. +* +* The PHY type (RGMII, SGMII, XGMII) is already set via a prior call to +* fdt_fixup_phy_connection(). The parent mdio-mux node will be enabled later +* in fdt_fixup_board_enet(). +* +* Note that what we call "Fman ports" (enum fm_port) is really an Fman MAC. +* Inside the Fman, "ports" are things that connect to MACs. We only call +* them ports in U-Boot because on previous Ethernet devices (e.g. Gianfar), +* MACs and ports are the same thing. +* +* XGMII Ethernet nodes are already mapped correctly, so we ignore those. +*/ +void board_ft_fman_fixup_port (void *fdt,char *compat,phys_addr_t addr, +enum fm_port port,int offset) { -if (mdio_mux[port] ==EMI1_RGMII ) -fdt_set_phy_handle (blob, prop, pa,"phy_rgmii" ); - -if (mdio_mux[port] ==EMI1_SLOT3 ) { -int idx = port -FM2_DTSEC1 +5 ; -char phy[16 ]; +phy_interface_t phyc =fm_info_get_enet_if (port); +enum srds_prtcl device; +int lane; +int ret =0 ; + +switch (phyc) { +case PHY_INTERFACE_MODE_RGMII : +debug ("Setting phy-handle for ethernet@%llx to RGMII\n" , addr); + ret =fdt_set_phy_handle (fdt, compat, addr,"phy_rgmii" ); +break ; + +case PHY_INTERFACE_MODE_SGMII : + device =serdes_device_from_fm_port (port); + lane =serdes_get_first_lane (device); + +if (lane >=0 ) { +unsigned int slot = lane_to_slot[lane]; +int phy =fm_info_get_phy_address (port); +char alias[32 ]; + +debug ("Setting phy-handle for ethernet@%llx to slot %u," +" addr %x\n" , addr, slot, phy); +sprintf (alias,"phy_sgmii_slot%u_%x" , slot, phy); + ret =fdt_set_phy_handle (fdt, compat, addr, alias); + } +break ; -sprintf (phy,"phy%d_slot3" , idx); +default : +/* XGMII nodes are already linked in the DTS */ +debug ("Skipping phy-handle setup for %s ethernet@%llx\n" , + phy_interface_strings[phyc], addr); +break ; + } -fdt_set_phy_handle (blob, prop, pa, phy); +if (ret <0 ) { +printf ("Fman: could not set phy-handle for ethernet@%llx " +"(%s)\n" , addr,fdt_strerror (ret)); } }void fdt_fixup_board_enet (void *fdt) { -int i; - -/* -* P4080DS can be configured in many different ways, supporting a number -* of combinations of ethernet devices and phy types. In order to -* have just one device tree for all of those configurations, we fix up -* the tree here. By default, the device tree configures FM1 and FM2 -* for SGMII, and configures XAUI on both 10G interfaces. So we have -* a number of different variables to track: -* -* 1) Whether the device is configured at all. Whichever devices are -* not enabled should be disabled by setting the "status" property -* to "disabled". -* 2) What the PHY interface is. If this is an RGMII connection, -* we should change the "phy-connection-type" property to -* "rgmii" -* 3) Which PHY is being used. Because the MDIO buses are muxed, -* we need to redirect the "phy-handle" property to point@the -* PHY on the right slot/bus. -*/ - -/* We've got six MDIO nodes that may or may not need to exist */ -fdt_status_disabled_by_alias (fdt,"emi1_slot3" ); -fdt_status_disabled_by_alias (fdt,"emi1_slot4" ); -fdt_status_disabled_by_alias (fdt,"emi1_slot5" ); -fdt_status_disabled_by_alias (fdt,"emi2_slot4" ); -fdt_status_disabled_by_alias (fdt,"emi2_slot5" ); +enum fm_port i; +int ret;for (i =0 ; i <NUM_FM_PORTS ; i++) { +const char *alias; +switch (mdio_mux[i]) { +case EMI1_RGMII : + alias ="emi1_rgmii" ; +break ;case EMI1_SLOT3 : -fdt_status_okay_by_alias (fdt,"emi1_slot3" ); + alias ="emi1_slot3" ;break ;case EMI1_SLOT4 : -fdt_status_okay_by_alias (fdt,"emi1_slot4" ); + alias ="emi1_slot4" ;break ;case EMI1_SLOT5 : -fdt_status_okay_by_alias (fdt,"emi1_slot5" ); + alias ="emi1_slot5" ;break ;case EMI2_SLOT4 : -fdt_status_okay_by_alias (fdt,"emi2_slot4" ); + alias ="emi2_slot4" ;break ;case EMI2_SLOT5 : -fdt_status_okay_by_alias (fdt,"emi2_slot5" ); + alias ="emi2_slot5" ;break ; +default : +continue ; + } + +debug ("Enabling %s mdio-mux node for port %i\n" , alias, i); + ret =fdt_status_okay_by_alias (fdt, alias); +if (ret <0 ) { +printf ("Fman: could not enable mdio-mux node %s (%s)\n" , + alias,fdt_strerror (ret)); } } } +/* +* Mapping of SerDes protocol to slots and SGMII card ports +* +* EMI1 EMI2 +* Slot Mux Value Mux Value +* 3 0b10 +* 4 0b01 0b01 +* 5 0b11 0b11 +* +* Slot Phy Addr +* .1 0x1c +* .2 0x1d +* .3 0x1e +* .4 0x1f +* +* Fman 1: +* | DTSEC1 | DTSEC2 | DTSEC3 | DTSEC4 | TGEC +* 0x02 | | | | | 5 +* 0x05 | | | | | 5 +* 0x08 | | | | | 5 +* 0x0d | | | | | 5 +* 0x0e | | | | | 5 +* 0x0f | | | | | +* 0x10 | | | | | +* 0x13 | | | | | 5 +* 0x16 | 5.1 | 5.2 | 5.3 | 5.4 | +* 0x19 | 5.1 | 5.2 | 5.3 | 5.4 | +* 0x1d | | | | | 5 +* 0x22 | | | | | 5 +* 0x25 | | | | | 5 +* +* Fman 2: +* | DTSEC1 | DTSEC2 | DTSEC3 | DTSEC4 | TGEC +* 0x02 | | | | | 4 +* 0x05 | | | | | 4 +* 0x08 | | | | | 4 +* 0x0d | | | 3.3 | 3.4 | 4 +* 0x0e | | | 3.3 | 3.4 | 4 +* 0x0f | 3.1 | 3.2 | 3.3 | 3.4 | 4 +* 0x10 | 3.1 | 3.2 | 3.3 | 3.4 | 4 +* 0x13 | | | | | 4 +* 0x16 | 4.1 | 4.2 | 4.3 | 4.4 | +* 0x19 | | | | | +* 0x1d | | | | | 4 +* 0x22 | | | | | 4 +* 0x25 | | | | | 4 +*/ +int board_eth_init (bd_t *bis) {#ifdef CONFIG_FMAN_ENET
Signature · 1 line
1.7.3.4
PATCH 7/7 powerpc/85xx: remove support for the Freescale P3060
In reply to Timur TabiThe P3060 was cancelled before it went into production, so there's no point in supporting it.
--- arch/powerpc/cpu/mpc85xx/Makefile | 3 - arch/powerpc/cpu/mpc85xx/fdt.c | 2 +- arch/powerpc/cpu/mpc85xx/p3060_ids.c | 117 ------- arch/powerpc/cpu/mpc85xx/p3060_serdes.c | 118 ------- arch/powerpc/cpu/mpc8xxx/cpu.c | 1 - arch/powerpc/include/asm/config_mpc85xx.h | 19 -- arch/powerpc/include/asm/immap_85xx.h | 2 +- arch/powerpc/include/asm/processor.h | 1 - board/freescale/common/Makefile | 2 - board/freescale/p3060qds/Makefile | 54 ---- board/freescale/p3060qds/ddr.c | 248 --------------- board/freescale/p3060qds/eth.c | 482 ----------------------------- board/freescale/p3060qds/fixed_ddr.c | 214 ------------- board/freescale/p3060qds/p3060qds.c | 342 -------------------- board/freescale/p3060qds/p3060qds.h | 30 -- board/freescale/p3060qds/p3060qds_qixis.h | 74 ----- boards.cfg | 3 - doc/README.p3060qds | 110 ------- drivers/net/fm/Makefile | 1 - drivers/net/fm/p3060.c | 97 ------ include/configs/P3060QDS.h | 48 --- include/configs/corenet_ds.h | 6 +- 22 files changed, 3 insertions(+), 1971 deletions(-) delete mode 100644 arch/powerpc/cpu/mpc85xx/p3060_ids.c delete mode 100644 arch/powerpc/cpu/mpc85xx/p3060_serdes.c delete mode 100644 board/freescale/p3060qds/Makefile delete mode 100644 board/freescale/p3060qds/ddr.c delete mode 100644 board/freescale/p3060qds/eth.c delete mode 100644 board/freescale/p3060qds/fixed_ddr.c delete mode 100644 board/freescale/p3060qds/p3060qds.c delete mode 100644 board/freescale/p3060qds/p3060qds.h delete mode 100644 board/freescale/p3060qds/p3060qds_qixis.h delete mode 100644 doc/README.p3060qds delete mode 100644 drivers/net/fm/p3060.c delete mode 100644 include/configs/P3060QDS.h
arch/powerpc/cpu/mpc85xx/Makefile +0 -3
@@ -67,7 +67,6 @@ COBJS-$(CONFIG_P2020) += ddr-gen3.o COBJS-$(CONFIG_PPC_P2040) += ddr-gen3.o COBJS-$(CONFIG_PPC_P2041) += ddr-gen3.o COBJS-$(CONFIG_PPC_P3041) += ddr-gen3.o -COBJS-$(CONFIG_PPC_P3060) += ddr-gen3.o COBJS-$(CONFIG_PPC_P4080) += ddr-gen3.o COBJS-$(CONFIG_PPC_P5020) += ddr-gen3.o COBJS-$(CONFIG_BSC9131) += ddr-gen3.o
@@ -83,7 +82,6 @@ COBJS-$(CONFIG_SYS_DPAA_QBMAN) += portals.o COBJS-$(CONFIG_PPC_P2040) += p2041_ids.o COBJS-$(CONFIG_PPC_P2041) += p2041_ids.o COBJS-$(CONFIG_PPC_P3041) += p3041_ids.o -COBJS-$(CONFIG_PPC_P3060) += p3060_ids.o COBJS-$(CONFIG_PPC_P4080) += p4080_ids.o COBJS-$(CONFIG_PPC_P5020) += p5020_ids.o
@@ -117,7 +115,6 @@ COBJS-$(CONFIG_P2020) += p2020_serdes.o COBJS-$(CONFIG_PPC_P2040) += p2041_serdes.o COBJS-$(CONFIG_PPC_P2041) += p2041_serdes.o COBJS-$(CONFIG_PPC_P3041) += p3041_serdes.o -COBJS-$(CONFIG_PPC_P3060) += p3060_serdes.o COBJS-$(CONFIG_PPC_P4080) += p4080_serdes.o COBJS-$(CONFIG_PPC_P5020) += p5020_serdes.o
arch/powerpc/cpu/mpc85xx/fdt.c +1 -1
@@ -534,7 +534,7 @@ void fdt_fixup_fman_firmware(void *blob)#define fdt_fixup_fman_firmware (x)#endif -#if defined(CONFIG_PPC_P4080 ) || defined(CONFIG_PPC_P3060 ) +#if defined(CONFIG_PPC_P4080 )static void fdt_fixup_usb (void *fdt) {ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
arch/powerpc/cpu/mpc85xx/p3060_ids.c deleted +0 -117
117 lines not on this page · raw message
arch/powerpc/cpu/mpc85xx/p3060_serdes.c deleted +0 -118
118 lines not on this page · raw message
arch/powerpc/cpu/mpc8xxx/cpu.c +0 -1
@@ -71,7 +71,6 @@ struct cpu_type cpu_type_list [] = {CPU_TYPE_ENTRY (P2040 ,P2040 ,4 ),CPU_TYPE_ENTRY (P2041 ,P2041 ,4 ),CPU_TYPE_ENTRY (P3041 ,P3041 ,4 ), -CPU_TYPE_ENTRY_MASK (P3060 ,P3060 ,6 ,0xf3 ),CPU_TYPE_ENTRY (P4040 ,P4040 ,4 ),CPU_TYPE_ENTRY (P4080 ,P4080 ,8 ), CPU_TYPE_ENTRY(P5010, P5010, 1),
arch/powerpc/include/asm/config_mpc85xx.h +0 -19
@@ -405,25 +405,6 @@#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 -#elif defined(CONFIG_PPC_P3060 ) -#define CONFIG_MAX_CPUS 8 -#define CONFIG_SYS_FSL_NUM_CC_PLLS 4 -#define CONFIG_SYS_FSL_NUM_LAWS 32 -#define CONFIG_SYS_FSL_SEC_COMPAT 4 -#define CONFIG_SYS_NUM_FMAN 2 -#define CONFIG_SYS_NUM_FM1_DTSEC 4 -#define CONFIG_SYS_NUM_FM2_DTSEC 4 -#define CONFIG_NUM_DDR_CONTROLLERS 1 -#define CONFIG_SYS_FM_MURAM_SIZE 0x28000 -#define CONFIG_SYS_FSL_TBCLK_DIV 16 -#define CONFIG_SYS_FSL_PCIE_COMPAT "fsl,qoriq-pcie-v2.2" -#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 -#define CONFIG_SYS_FSL_ERRATUM_DDR_A003 -#define CONFIG_SYS_FSL_ERRATUM_CPU_A003999 -#define CONFIG_SYS_FSL_SRIO_MAX_PORTS 2 -#define CONFIG_SYS_FSL_SRIO_OB_WIN_NUM 9 -#define CONFIG_SYS_FSL_SRIO_IB_WIN_NUM 5 -#elif defined(CONFIG_PPC_P4040 )#define CONFIG_MAX_CPUS 4#define CONFIG_SYS_FSL_NUM_CC_PLLS 4
arch/powerpc/include/asm/immap_85xx.h +1 -1
@@ -1765,7 +1765,7 @@ typedef struct ccsr_gur {#define FSL_CORENET_RCWSR8_HOST_AGT_B1 0x00e00000#define FSL_CORENET_RCWSR8_HOST_AGT_B2 0x00100000#define FSL_CORENET_RCWSR11_EC1 0x00c00000/* bits 360..361 */ -#if defined(CONFIG_PPC_P4080 ) || defined(CONFIG_PPC_P3060 ) +#ifdef CONFIG_PPC_P4080 #define FSL_CORENET_RCWSR11_EC1_FM1_DTSEC1 0x00000000#define FSL_CORENET_RCWSR11_EC1_FM1_USB1 0x00800000#define FSL_CORENET_RCWSR11_EC2 0x001c0000/* bits 363..365 */
arch/powerpc/include/asm/processor.h +0 -1
@@ -1089,7 +1089,6 @@#define SVR_P2040 0x821000#define SVR_P2041 0x821001#define SVR_P3041 0x821103 -#define SVR_P3060 0x820002#define SVR_P4040 0x820100#define SVR_P4080 0x820000#define SVR_P5010 0x822100
board/freescale/common/Makefile +0 -2
@@ -51,14 +51,12 @@ COBJS-$(CONFIG_MPC8572DS) += ics307_clk.o COBJS-$(CONFIG_P1022DS) += ics307_clk.o COBJS-$(CONFIG_P2020DS) += ics307_clk.o COBJS-$(CONFIG_P3041DS) += ics307_clk.o -COBJS-$(CONFIG_P3060QDS) += ics307_clk.o COBJS-$(CONFIG_P4080DS) += ics307_clk.o COBJS-$(CONFIG_P5020DS) += ics307_clk.o # deal with common files for P-series corenet based devices SUBLIB-$(CONFIG_P2041RDB) += p_corenet/libp_corenet.o SUBLIB-$(CONFIG_P3041DS) += p_corenet/libp_corenet.o -SUBLIB-$(CONFIG_P3060QDS) += p_corenet/libp_corenet.o SUBLIB-$(CONFIG_P4080DS) += p_corenet/libp_corenet.o SUBLIB-$(CONFIG_P5020DS) += p_corenet/libp_corenet.o
board/freescale/p3060qds/Makefile deleted +0 -54
54 lines not on this page · raw message
board/freescale/p3060qds/ddr.c deleted +0 -248
248 lines not on this page · raw message
board/freescale/p3060qds/eth.c deleted +0 -482
482 lines not on this page · raw message
board/freescale/p3060qds/fixed_ddr.c deleted +0 -214
214 lines not on this page · raw message
board/freescale/p3060qds/p3060qds.c deleted +0 -342
342 lines not on this page · raw message
board/freescale/p3060qds/p3060qds.h deleted +0 -30
@@ -1,30 +0,0 @@ -/* -* Copyright 2011 Freescale Semiconductor, Inc. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License as -* published by the Free Software Foundation; either version 2 of -* the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, -* MA 02111-1307 USA -*/ - -#ifndef __P3060QDS_H__ -#define __P3060QDS_H__ - -#include <asm/fsl_ddr_sdram.h> -#include <asm/u-boot.h> - -void fdt_fixup_board_enet (void *blob); -void pci_of_setup (void *blob,bd_t *bd); -extern fixed_ddr_parm_t fixed_ddr_parm_0[]; - -#endif
board/freescale/p3060qds/p3060qds_qixis.h deleted +0 -74
74 lines not on this page · raw message
boards.cfg +0 -3
@@ -759,9 +759,6 @@ P3041DS_SECURE_BOOT powerpc mpc85xx corenet_ds freesca P3041DS_SPIFLASH powerpc mpc85xx corenet_ds freescale - P3041DS:RAMBOOT_PBL,SPIFLASH,SYS_TEXT_BASE=0xFFF80000 P3041DS_SRIOBOOT_MASTER powerpc mpc85xx corenet_ds freescale - P3041DS:SRIOBOOT_MASTER P3041DS_SRIOBOOT_SLAVE powerpc mpc85xx corenet_ds freescale - P3041DS:SRIOBOOT_SLAVE,SYS_TEXT_BASE=0xFFF80000 -P3060QDS powerpc mpc85xx p3060qds freescale -P3060QDS_NAND powerpc mpc85xx p3060qds freescale - P3060QDS:RAMBOOT_PBL,NAND,SYS_TEXT_BASE=0xFFF80000 -P3060QDS_SECURE_BOOT powerpc mpc85xx p3060qds freescale - P3060QDS:SECURE_BOOT P4080DS powerpc mpc85xx corenet_ds freescale P4080DS_SDCARD powerpc mpc85xx corenet_ds freescale - P4080DS:RAMBOOT_PBL,SDCARD,SYS_TEXT_BASE=0xFFF80000 P4080DS_SECURE_BOOT powerpc mpc85xx corenet_ds freescale - P4080DS:SECURE_BOOT
doc/README.p3060qds deleted +0 -110
110 lines not on this page · raw message
drivers/net/fm/Makefile +0 -1
@@ -39,7 +39,6 @@ COBJS-$(CONFIG_P1023) += p1023.o COBJS-$(CONFIG_PPC_P2040) += p5020.o COBJS-$(CONFIG_PPC_P2041) += p5020.o COBJS-$(CONFIG_PPC_P3041) += p5020.o -COBJS-$(CONFIG_PPC_P3060) += p3060.o COBJS-$(CONFIG_PPC_P4080) += p4080.o COBJS-$(CONFIG_PPC_P5020) += p5020.o endif
drivers/net/fm/p3060.c deleted +0 -97
97 lines not on this page · raw message
include/configs/P3060QDS.h deleted +0 -48
48 lines not on this page · raw message
include/configs/corenet_ds.h +1 -5
@@ -186,11 +186,7 @@#define CONFIG_DDR_SPD #define CONFIG_FSL_DDR3 -#ifdef CONFIG_P3060QDS -#define CONFIG_SYS_SPD_BUS_NUM 0 -#else #define CONFIG_SYS_SPD_BUS_NUM 1 -#endif #define SPD_EEPROM_ADDRESS1 0x51#define SPD_EEPROM_ADDRESS2 0x52#define SPD_EEPROM_ADDRESS SPD_EEPROM_ADDRESS1/* for p3041/p5010 */
@@ -724,7 +720,7 @@#define CONFIG_BAUDRATE 115200 -#if defined(CONFIG_P4080DS ) || defined(CONFIG_P3060QDS ) +#ifdef CONFIG_P4080DS #define __USB_PHY_TYPE ulpi#else #define __USB_PHY_TYPE utmi
Signature · 1 line
1.7.3.4
PATCH 6/7 powerpc/85xx: update P4080DS MDIO bus multiplexer support
In reply to Timur TabiQuoted 14 lines · Timur Tabi
The Freescale P4080DS has a complex multiplexed MDIO bus, where the muxing varies per SerDes protocol. This is because the protocol determines in which PCI slot the various SGMII and XGMII interface cards belong, as well as whether the RGMII ports are enabled.
The Freescale SDK includes support for MDIO bus multiplexing, but the upstream Linux kernel uses David Daney's (Cavium) method instead. Therefore, the P4080 code needs to be migrated to the new method.
The device tree contains two top-level mdio-mux nodes, one for EMI1 (RGMII and SGMII) and the other for EMI2 (XGMII). The U-boot code depends on several device tree aliases to help it find the nodes that need to be updated.
Quoted 4 lines
Signed-off-by Timur Tabi <[email protected]>---
board/freescale/corenet_ds/eth_p4080.c| 172 ++++++++++++++++++++++++--------1 files changed, 129 insertions(+), 43 deletions(-)
I think we need to hold on this patch until we have a kernel somewhere that can actually utilize it.
I'm guessing this would break the SDK mux support for p4080ds?
- k
PATCH 6/7 powerpc/85xx: update P4080DS MDIO bus multiplexer support
In reply to Timur TabiQuoted 14 lines · Timur Tabi
The Freescale P4080DS has a complex multiplexed MDIO bus, where the muxing varies per SerDes protocol. This is because the protocol determines in which PCI slot the various SGMII and XGMII interface cards belong, as well as whether the RGMII ports are enabled.
The Freescale SDK includes support for MDIO bus multiplexing, but the upstream Linux kernel uses David Daney's (Cavium) method instead. Therefore, the P4080 code needs to be migrated to the new method.
The device tree contains two top-level mdio-mux nodes, one for EMI1 (RGMII and SGMII) and the other for EMI2 (XGMII). The U-boot code depends on several device tree aliases to help it find the nodes that need to be updated.
Quoted 4 lines
Signed-off-by Timur Tabi <[email protected]>---
board/freescale/corenet_ds/eth_p4080.c| 172 ++++++++++++++++++++++++--------1 files changed, 129 insertions(+), 43 deletions(-)
I think we need to hold on this patch until we have a kernel somewhere that can actually utilize it.
I'm guessing this would break the SDK mux support for p4080ds?
- k
PATCH 6/7 powerpc/85xx: update P4080DS MDIO bus multiplexer support
In reply to Kumar GalaQuoted 1 line · Kumar Gala
I think we need to hold on this patch until we have a kernel somewhere that can actually utilize it.
*sigh*
And here I was hoping I would get this done for the next release.
Quoted 1 line
I'm guessing this would break the SDK mux support for p4080ds?
Assuming we don't back-port the kernel code, which I've already done for my testing.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale