imx21: activate i2c
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Wed, 1 Apr 2009 11:58:21 +0000 (13:58 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 16 Apr 2009 10:57:13 +0000 (12:57 +0200)
Set the correct clkdev-name for the i2c clock.

It also get's rid of the ARCH_NR_GPIOS define on the rationale
that isn't an ARCH-wide setting anyway. If a device has two
pca953x devices, the reserved number will be wrong.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
arch/arm/mach-mx2/clock_imx21.c
arch/arm/plat-mxc/include/mach/mx21.h

index cbc5dbb9e144aa92cb6e6edba9d18204b0367ab2..999d013e06e352e62e45cc232fc28b755b573ebd 100644 (file)
@@ -931,7 +931,7 @@ static struct clk_lookup lookups[] __initdata = {
        _REGISTER_CLOCK(NULL, "slcdc", slcdc_clk[0])
        _REGISTER_CLOCK("imx-wdt.0", NULL, wdog_clk)
        _REGISTER_CLOCK(NULL, "gpio", gpio_clk)
-       _REGISTER_CLOCK(NULL, "i2c", i2c_clk)
+       _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk)
        _REGISTER_CLOCK("mxc-keypad", NULL, kpp_clk)
        _REGISTER_CLOCK(NULL, "owire", owire_clk)
        _REGISTER_CLOCK(NULL, "rtc", rtc_clk)
index e8c4cf56c24ed8c1349b7bc87e2186f2e4f10544..8b070a041a997014d97201beb7c8aacfb3613428 100644 (file)
@@ -54,9 +54,6 @@
 
 #define IRAM_BASE_ADDR          0xFFFFE800     /* internal ram */
 
-/* this CPU supports up to 192 GPIOs (don't forget the baseboard!) */
-#define ARCH_NR_GPIOS          (6*32 + 16)
-
 /* fixed interrupt numbers */
 #define MXC_INT_USBCTRL         58
 #define MXC_INT_USBCTRL         58