aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2440/mach-anubis.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-anubis.c')
-rw-r--r--arch/arm/mach-s3c2440/mach-anubis.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c
index e2beca470484..b05d56e230a1 100644
--- a/arch/arm/mach-s3c2440/mach-anubis.c
+++ b/arch/arm/mach-s3c2440/mach-anubis.c
@@ -39,7 +39,8 @@
39#include <mach/regs-gpio.h> 39#include <mach/regs-gpio.h>
40#include <mach/regs-mem.h> 40#include <mach/regs-mem.h>
41#include <mach/regs-lcd.h> 41#include <mach/regs-lcd.h>
42#include <asm/plat-s3c/nand.h> 42#include <plat/nand.h>
43#include <plat/iic.h>
43 44
44#include <linux/mtd/mtd.h> 45#include <linux/mtd/mtd.h>
45#include <linux/mtd/nand.h> 46#include <linux/mtd/nand.h>
@@ -366,6 +367,8 @@ static struct sm501_initdata anubis_sm501_initdata = {
366 .mask = 0, 367 .mask = 0,
367 }, 368 },
368 369
370 .devices = SM501_USE_GPIO,
371
369 /* set the SDRAM and bus clocks */ 372 /* set the SDRAM and bus clocks */
370 .mclk = 72 * MHZ, 373 .mclk = 72 * MHZ,
371 .m1xclk = 144 * MHZ, 374 .m1xclk = 144 * MHZ,
@@ -373,10 +376,12 @@ static struct sm501_initdata anubis_sm501_initdata = {
373 376
374static struct sm501_platdata_gpio_i2c anubis_sm501_gpio_i2c[] = { 377static struct sm501_platdata_gpio_i2c anubis_sm501_gpio_i2c[] = {
375 [0] = { 378 [0] = {
379 .bus_num = 1,
376 .pin_scl = 44, 380 .pin_scl = 44,
377 .pin_sda = 45, 381 .pin_sda = 45,
378 }, 382 },
379 [1] = { 383 [1] = {
384 .bus_num = 2,
380 .pin_scl = 40, 385 .pin_scl = 40,
381 .pin_sda = 41, 386 .pin_sda = 41,
382 }, 387 },
@@ -384,6 +389,7 @@ static struct sm501_platdata_gpio_i2c anubis_sm501_gpio_i2c[] = {
384 389
385static struct sm501_platdata anubis_sm501_platdata = { 390static struct sm501_platdata anubis_sm501_platdata = {
386 .init = &anubis_sm501_initdata, 391 .init = &anubis_sm501_initdata,
392 .gpio_base = -1,
387 .gpio_i2c = anubis_sm501_gpio_i2c, 393 .gpio_i2c = anubis_sm501_gpio_i2c,
388 .gpio_i2c_nr = ARRAY_SIZE(anubis_sm501_gpio_i2c), 394 .gpio_i2c_nr = ARRAY_SIZE(anubis_sm501_gpio_i2c),
389}; 395};
@@ -404,7 +410,7 @@ static struct platform_device *anubis_devices[] __initdata = {
404 &s3c_device_usb, 410 &s3c_device_usb,
405 &s3c_device_wdt, 411 &s3c_device_wdt,
406 &s3c_device_adc, 412 &s3c_device_adc,
407 &s3c_device_i2c, 413 &s3c_device_i2c0,
408 &s3c_device_rtc, 414 &s3c_device_rtc,
409 &s3c_device_nand, 415 &s3c_device_nand,
410 &anubis_device_ide0, 416 &anubis_device_ide0,
@@ -468,6 +474,7 @@ static void __init anubis_map_io(void)
468 474
469static void __init anubis_init(void) 475static void __init anubis_init(void)
470{ 476{
477 s3c_i2c0_set_platdata(NULL);
471 platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices)); 478 platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices));
472 479
473 i2c_register_board_info(0, anubis_i2c_devs, 480 i2c_register_board_info(0, anubis_i2c_devs,