[PATCH v2] using mii-bitbang on different processor ports - update the booting-without-of.txt-file

2007-11-14 Thread Sergej Stepanov
The patch updates the booting-without-of.txt-file. There is a description for the case if mdio data and clock pins are on different processor ports. It extends the "[PATCH v3] using mii-bitbang on different processor ports". Signed-off-by: Sergej Stepanov <[EMAIL PROTECTED]> Signed-off-by: Scott W

Re: [PATCH v2] using mii-bitbang on different processor ports

2007-10-30 Thread Sergej Stepanov
Am Dienstag, den 30.10.2007, 13:23 -0500 schrieb Scott Wood: > Sergej Stepanov wrote: > > + if( !of_address_to_resource(np, 1, &res[1])) { > > The spacing is still wrong. > > > - iounmap(bitbang->dir); > > + if ( bitbang->mdio.dir != bitbang->mdc.dir) > > + iounmap(bitbang->mdio.d

[PATCH v2] using mii-bitbang on different processor ports

2007-10-30 Thread Sergej Stepanov
The patch makes possible to have mdio and mdc pins on different physical ports also for CONFIG_PPC_CPM_NEW_BINDING. To setup it in the device tree: reg = <10d40 14 10d60 14>; // mdc: 0x10d40, mdio: 0x10d60 or reg = <10d40 14>; // mdc and mdio have the same offset 10d40 The approach was taken from o

Re: [PATCH v2] using mii-bitbang on different processor ports

2007-10-30 Thread Scott Wood
Sergej Stepanov wrote: + if( !of_address_to_resource(np, 1, &res[1])) { The spacing is still wrong. - iounmap(bitbang->dir); + if ( bitbang->mdio.dir != bitbang->mdc.dir) + iounmap(bitbang->mdio.dir); + iounmap(bitbang->mdc.dir); And here. -Scott - To