[PATCH v3 3/9] add Freescale SerDes PHY support

Li Yang-r58472 LeoLi at freescale.com
Mon Oct 15 22:30:46 EST 2007


> -----Original Message-----
> From: linuxppc-dev-bounces+leoli=freescale.com at ozlabs.org 
> [mailto:linuxppc-dev-bounces+leoli=freescale.com at ozlabs.org] 
> On Behalf Of Arnd Bergmann
> Sent: Friday, October 12, 2007 10:34 PM
> To: linuxppc-dev at ozlabs.org
> Cc: linuxppc-dev at ozlabs.org; paulus at samba.org
> Subject: Re: [PATCH v3 3/9] add Freescale SerDes PHY support
> 
> On Friday 12 October 2007, Li Yang wrote:
> > The SerDes(serializer/deserializer) PHY block is a new SoC 
> block used 
> > in Freescale chips to support multiple serial interfaces, 
> such as PCI 
> > Express, SGMII, SATA.
> 
> Some of my comments here are similar to those for the ata 
> driver, so I won't be as verbose here
> 
> > +static int __init setup_serdes(struct device_node *np) {
> > +	void __iomem *regs;
> > +	const void *prot;
> > +	const unsigned int *freq;
> > +	struct resource res;
> > +	u32 rfcks;
> > +
> > +	of_address_to_resource(np, 0, &res);
> > +	regs = ioremap(res.start, res.end - res.start + 1);
> 
> of_iomap?

I'd like to but of_iomap() couldn't provide the physical address of the
device used as identification.

- Leo



More information about the Linuxppc-dev mailing list