mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] Slight refactor of interrupt mapping for FSL parts
* Cleaned up interrupt mapping a little by adding a helper function which parses the irq out of the device-tree, and puts it into a resource. * Changed the arch/ppc platform files to specify PHY_POLL, instead of -1 * Changed the fixed phy to use PHY_IGNORE_INTERRUPT * Added ethtool.h and mii.h to phy.h includes Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
c37858d333
commit
a9b14973a8
13 changed files with 40 additions and 36 deletions
|
|
@ -121,8 +121,8 @@ mpc834x_sys_setup_arch(void)
|
|||
|
||||
mdata->irq[0] = MPC83xx_IRQ_EXT1;
|
||||
mdata->irq[1] = MPC83xx_IRQ_EXT2;
|
||||
mdata->irq[2] = -1;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[2] = PHY_POLL;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC83xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -92,9 +92,9 @@ mpc8540ads_setup_arch(void)
|
|||
|
||||
mdata->irq[0] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[1] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[2] = -1;
|
||||
mdata->irq[2] = PHY_POLL;
|
||||
mdata->irq[3] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -156,9 +156,9 @@ mpc8560ads_setup_arch(void)
|
|||
|
||||
mdata->irq[0] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[1] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[2] = -1;
|
||||
mdata->irq[2] = PHY_POLL;
|
||||
mdata->irq[3] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -451,9 +451,9 @@ mpc85xx_cds_setup_arch(void)
|
|||
|
||||
mdata->irq[0] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[1] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[2] = -1;
|
||||
mdata->irq[3] = -1;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[2] = PHY_POLL;
|
||||
mdata->irq[3] = PHY_POLL;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ sbc8560_setup_arch(void)
|
|||
|
||||
mdata->irq[25] = MPC85xx_IRQ_EXT6;
|
||||
mdata->irq[26] = MPC85xx_IRQ_EXT7;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ gp3_setup_arch(void)
|
|||
|
||||
mdata->irq[2] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[4] = MPC85xx_IRQ_EXT5;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -137,9 +137,9 @@ tqm85xx_setup_arch(void)
|
|||
|
||||
mdata->irq[0] = MPC85xx_IRQ_EXT8;
|
||||
mdata->irq[1] = MPC85xx_IRQ_EXT8;
|
||||
mdata->irq[2] = -1;
|
||||
mdata->irq[2] = PHY_POLL;
|
||||
mdata->irq[3] = MPC85xx_IRQ_EXT8;
|
||||
mdata->irq[31] = -1;
|
||||
mdata->irq[31] = PHY_POLL;
|
||||
|
||||
/* setup the board related information for the enet controllers */
|
||||
pdata = (struct gianfar_platform_data *) ppc_sys_get_pdata(MPC85xx_TSEC1);
|
||||
|
|
|
|||
|
|
@ -266,10 +266,10 @@ static void __init mpc8272ads_fixup_mdio_pdata(struct platform_device *pdev,
|
|||
int idx)
|
||||
{
|
||||
m82xx_mii_bb_pdata.irq[0] = PHY_INTERRUPT;
|
||||
m82xx_mii_bb_pdata.irq[1] = -1;
|
||||
m82xx_mii_bb_pdata.irq[2] = -1;
|
||||
m82xx_mii_bb_pdata.irq[1] = PHY_POLL;
|
||||
m82xx_mii_bb_pdata.irq[2] = PHY_POLL;
|
||||
m82xx_mii_bb_pdata.irq[3] = PHY_INTERRUPT;
|
||||
m82xx_mii_bb_pdata.irq[31] = -1;
|
||||
m82xx_mii_bb_pdata.irq[31] = PHY_POLL;
|
||||
|
||||
|
||||
m82xx_mii_bb_pdata.mdio_dat.offset =
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ int __init mpc866ads_init(void)
|
|||
|
||||
fmpi->mii_speed = ((((bd->bi_intfreq + 4999999) / 2500000) / 2) & 0x3F) << 1;
|
||||
/* No PHY interrupt line here */
|
||||
fmpi->irq[0xf] = -1;
|
||||
fmpi->irq[0xf] = PHY_POLL;
|
||||
|
||||
/* Since either of the uarts could be used as console, they need to ready */
|
||||
#ifdef CONFIG_SERIAL_CPM_SMC1
|
||||
|
|
@ -380,7 +380,7 @@ int __init mpc866ads_init(void)
|
|||
|
||||
fmpi->mii_speed = ((((bd->bi_intfreq + 4999999) / 2500000) / 2) & 0x3F) << 1;
|
||||
/* No PHY interrupt line here */
|
||||
fmpi->irq[0xf] = -1;
|
||||
fmpi->irq[0xf] = PHY_POLL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue