diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-11-10 05:59:31 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-18 09:43:33 -0500 |
commit | 6290ce30583017bf7916471f15ff4084137e5ce4 (patch) | |
tree | 71700cea8449017a253610175a9939dac5b74ad8 | |
parent | e2178d437460dafaaae89926088523432eb4de53 (diff) |
[ARM] ANUBIS: Add SM501 GPIO and update I2C setup
Add GPIO support to the SM501 on the Simtec Anubis,
and then add the necessary updates for allowing the
two gpio I2C busses to be used.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r-- | arch/arm/mach-s3c2440/mach-anubis.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c index 334379bdfc6e..f151f8939929 100644 --- a/arch/arm/mach-s3c2440/mach-anubis.c +++ b/arch/arm/mach-s3c2440/mach-anubis.c | |||
@@ -366,6 +366,8 @@ static struct sm501_initdata anubis_sm501_initdata = { | |||
366 | .mask = 0, | 366 | .mask = 0, |
367 | }, | 367 | }, |
368 | 368 | ||
369 | .devices = SM501_USE_GPIO, | ||
370 | |||
369 | /* set the SDRAM and bus clocks */ | 371 | /* set the SDRAM and bus clocks */ |
370 | .mclk = 72 * MHZ, | 372 | .mclk = 72 * MHZ, |
371 | .m1xclk = 144 * MHZ, | 373 | .m1xclk = 144 * MHZ, |
@@ -373,10 +375,12 @@ static struct sm501_initdata anubis_sm501_initdata = { | |||
373 | 375 | ||
374 | static struct sm501_platdata_gpio_i2c anubis_sm501_gpio_i2c[] = { | 376 | static struct sm501_platdata_gpio_i2c anubis_sm501_gpio_i2c[] = { |
375 | [0] = { | 377 | [0] = { |
378 | .bus_num = 1, | ||
376 | .pin_scl = 44, | 379 | .pin_scl = 44, |
377 | .pin_sda = 45, | 380 | .pin_sda = 45, |
378 | }, | 381 | }, |
379 | [1] = { | 382 | [1] = { |
383 | .bus_num = 2, | ||
380 | .pin_scl = 40, | 384 | .pin_scl = 40, |
381 | .pin_sda = 41, | 385 | .pin_sda = 41, |
382 | }, | 386 | }, |
@@ -384,6 +388,7 @@ static struct sm501_platdata_gpio_i2c anubis_sm501_gpio_i2c[] = { | |||
384 | 388 | ||
385 | static struct sm501_platdata anubis_sm501_platdata = { | 389 | static struct sm501_platdata anubis_sm501_platdata = { |
386 | .init = &anubis_sm501_initdata, | 390 | .init = &anubis_sm501_initdata, |
391 | .gpio_base = -1, | ||
387 | .gpio_i2c = anubis_sm501_gpio_i2c, | 392 | .gpio_i2c = anubis_sm501_gpio_i2c, |
388 | .gpio_i2c_nr = ARRAY_SIZE(anubis_sm501_gpio_i2c), | 393 | .gpio_i2c_nr = ARRAY_SIZE(anubis_sm501_gpio_i2c), |
389 | }; | 394 | }; |