ARM: at91: fix at91rm9200 soc subtype handling
commit5e0ff93a215968c5ae4a9cb41c88a819499b57fa
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 28 Dec 2011 11:10:04 +0000 (28 13:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:21:45 +0000 (3 09:21 -0800)
treeb00ffc5387fe44b1ba9b12a5e21b75ad1572b1f4
parent3141ec606540f9cb82b40dc291066279bf92e64c
ARM: at91: fix at91rm9200 soc subtype handling

commit 3e90772f76010c315474bde59eaca7cc4c94d645 upstream.

Currently setting it to PQFP changes subtype to BGA as subtypes are
swapped in at91rm9200_set_type().

Wrong subtype causes GPIO bank D not to work at all.

After this fix, subtype is still set as unknown. But board code should
fill it in with proper value. Another information is thus printed.

Bug discovery and first implementation made by Veli-Pekka Peltola.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-at91/setup.c