[U-Boot] [PATCH v3 3/7] [REPOST] add Multi Function Pin configuration support for ARMADA100

Wolfgang Denk wd at denx.de
Thu Dec 2 12:14:43 CET 2010


Dear Prafulla Wadaskar,

In message <1291302695-15561-2-git-send-email-prafulla at marvell.com> you wrote:
> This patch adds the support MFP support for Marvell ARMADA100 SoCs
> 
> Signed-off-by: Prafulla Wadaskar <prafulla at marvell.com>
> ---
> 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.


More information about the U-Boot mailing list