From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailrelay005.isp.belgacom.be (mailrelay005.isp.belgacom.be [195.238.6.171]) by ozlabs.org (Postfix) with ESMTP id 8014FDE113 for ; Thu, 3 Apr 2008 22:19:15 +1100 (EST) From: Laurent Pinchart To: linuxppc-dev@ozlabs.org Subject: Re: [PATCH] [POWERPC] CPM1: implement GPIO LIB API Date: Thu, 3 Apr 2008 13:19:08 +0200 References: <47E92EC8.7010700@scram.de> In-Reply-To: <47E92EC8.7010700@scram.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1562485.dGU5ni4Ual"; protocol="application/pgp-signature"; micalg=pgp-sha1 Message-Id: <200804031319.12715.laurentp@cse-semaphore.com> Cc: Scott Wood , linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --nextPart1562485.dGU5ni4Ual Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jochen, On Tuesday 25 March 2008 17:56, Jochen Friedrich wrote: > Implement GPIO LIB API on CPM1 Freescale SoC. >=20 > Signed-off-by: Jochen Friedrich > --- >=20 > This is based on the series starting at=20 http://patchwork.ozlabs.org/linuxppc/patch?id=3D17299 >=20 > arch/powerpc/platforms/8xx/Kconfig | 2 + > arch/powerpc/sysdev/cpm1.c | 240=20 +++++++++++++++++++++++++++++++++++- > 2 files changed, 241 insertions(+), 1 deletions(-) >=20 [snip] > diff --git a/arch/powerpc/sysdev/cpm1.c b/arch/powerpc/sysdev/cpm1.c > index df8bd2b..c3d5df8 100644 > --- a/arch/powerpc/sysdev/cpm1.c > +++ b/arch/powerpc/sysdev/cpm1.c > @@ -30,11 +30,14 @@ > #include > #include > #include > +#include > +#include > #include > #include > #include > #include > #include > +#include > #include > #include > #include > @@ -403,7 +406,7 @@ struct cpm_ioport16 { > }; > =20 > struct cpm_ioport32 { > - __be32 dir, par, sor; > + __be32 dir, par, sor, dat; > }; I haven't checked all CPM1-based parts, but for the MPC855 family this does= n't=20 look right. The MPC855 has two 32-bit ports, port B and port E. Registers f= or=20 port B are dir, par, odr and dat, and registers for port E are dir, par, so= r,=20 odr and dat. Are you working on a similar patch for the CPM2 ? CPM2 I/O ports are 32 bit= =20 wide and their registers are layed out like for port E on the MPC855. It=20 should thus be possible to share code between CPM1 and CPM2. Best regards, =2D-=20 Laurent Pinchart CSE Semaphore Belgium Chauss=E9e de Bruxelles, 732A B-1410 Waterloo Belgium T +32 (2) 387 42 59 =46 +32 (2) 387 42 75 --nextPart1562485.dGU5ni4Ual Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBH9L0w8y9gWxC9vpcRAvhoAKCCygKu7qNMmsr8/NaDlngfBfaJ5gCgwKxT QOWOIRNAhV9ZBuHI8l33Shw= =mcgX -----END PGP SIGNATURE----- --nextPart1562485.dGU5ni4Ual--