RE: [PATCH V2] am35xx-emac: move generic EMAC init to separate file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Ilya Yanok [mailto:yanok@xxxxxxxxxxx]
> Sent: Wednesday, December 21, 2011 2:45 PM
> To: Hiremath, Vaibhav
> Cc: linux-omap@xxxxxxxxxxxxxxx; sasha_d@xxxxxxxxxxx
> Subject: Re: [PATCH V2] am35xx-emac: move generic EMAC init to separate
> file
> 
> Hi,
> 
> On 21.12.2011 10:07, Hiremath, Vaibhav wrote:
> >> +static struct resource am35xx_mdio_resources[] = {
> >> +	{
> >> +		.start  = AM35XX_IPSS_EMAC_BASE + AM35XX_EMAC_MDIO_OFFSET,
> >> +		.end    = AM35XX_IPSS_EMAC_BASE + AM35XX_EMAC_MDIO_OFFSET +
> >> +			  SZ_4K - 1,
> >> +		.flags  = IORESOURCE_MEM,
> >> +	},
> >> +};
> > This will not be board independent, using AM35xx everywhere.
> 
> Why? It will work for any AM35XX based board. Probably we can try and
> make it work with EMACs on other AM3XXXs but I don't have these devices.
> 
> > To make it completely board independent, you should get all this
> platform
> > specific data from board file. Probably have emac_init() function here
> and
> > pass the data.
> 
> Hm.. This data is SoC-dependent not board-dependent, what's the reason
> to move it to the board file?
> 
[Hiremath, Vaibhav] My bad. I got confused between 3530 and AM35x...
Yeup, this is SoC specific thing for AM3517/05 device.

Thanks,
Vaibhav

> > Do you know any other platform or device using this IP?
> 
> Yes, I have a couple of AM3517 based boards that use this IP.
> 
> Regards, Ilya.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux