From: Wolfgang Denk Date: Thu, 02 Dec 2010 12:14:43 +0100 Subject: [U-Boot] [PATCH v3 3/7] [REPOST] add Multi Function Pin configuration support for ARMADA100 In-Reply-To: <1291302695-15561-2-git-send-email-prafulla@marvell.com> References: <1291302695-15561-1-git-send-email-prafulla@marvell.com> <1291302695-15561-2-git-send-email-prafulla@marvell.com> Message-ID: <20101202111443.C4A12EA6600@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Prafulla Wadaskar, In message <1291302695-15561-2-git-send-email-prafulla@marvell.com> you wrote: > This patch adds the support MFP support for Marvell ARMADA100 SoCs > > Signed-off-by: Prafulla Wadaskar > --- > Change log v3 REPOST: > macro MFPR_PTR_UPDATE added > > arch/arm/include/asm/arch-armada100/mfp.h | 231 +++++++++++++++++++++++++++++ > 1 files changed, 231 insertions(+), 0 deletions(-) > create mode 100755 arch/arm/include/asm/arch-armada100/mfp.h ... > +/* GPIOs */ > +#define GPIOAF(x) (if (x <= 15) ? 5 : \ > + if (x == 16) ? 0 : \ > + if (x == 17) ? 5 : \ > + if (x == 18) ? 0 : \ > + if (x == 19) ? 5 : \ > + if (x == 20) ? 0 : \ > + if (x <= 25) ? 5 : \ > + if (x == 26) ? 0 : \ > + if (x == 33) ? 5 : 0) Does this code actually compile? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de To the systems programmer, users and applications serve only to provide a test load.