diff options
Diffstat (limited to 'arch/arm/mach-pxa/magician.c')
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index c899bbd94dc0..ca39669cffc5 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <mach/pxa27x.h> | 36 | #include <mach/pxa27x.h> |
37 | #include <mach/magician.h> | 37 | #include <mach/magician.h> |
38 | #include <mach/pxafb.h> | 38 | #include <mach/pxafb.h> |
39 | #include <mach/i2c.h> | 39 | #include <plat/i2c.h> |
40 | #include <mach/mmc.h> | 40 | #include <mach/mmc.h> |
41 | #include <mach/irda.h> | 41 | #include <mach/irda.h> |
42 | #include <mach/ohci.h> | 42 | #include <mach/ohci.h> |
@@ -745,6 +745,14 @@ static struct platform_device strataflash = { | |||
745 | }; | 745 | }; |
746 | 746 | ||
747 | /* | 747 | /* |
748 | * I2C | ||
749 | */ | ||
750 | |||
751 | static struct i2c_pxa_platform_data i2c_info = { | ||
752 | .fast_mode = 1, | ||
753 | }; | ||
754 | |||
755 | /* | ||
748 | * Platform devices | 756 | * Platform devices |
749 | */ | 757 | */ |
750 | 758 | ||
@@ -771,7 +779,7 @@ static void __init magician_init(void) | |||
771 | 779 | ||
772 | pxa2xx_mfp_config(ARRAY_AND_SIZE(magician_pin_config)); | 780 | pxa2xx_mfp_config(ARRAY_AND_SIZE(magician_pin_config)); |
773 | 781 | ||
774 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 782 | platform_add_devices(ARRAY_AND_SIZE(devices)); |
775 | 783 | ||
776 | err = gpio_request(GPIO83_MAGICIAN_nIR_EN, "nIR_EN"); | 784 | err = gpio_request(GPIO83_MAGICIAN_nIR_EN, "nIR_EN"); |
777 | if (!err) { | 785 | if (!err) { |
@@ -779,7 +787,7 @@ static void __init magician_init(void) | |||
779 | pxa_set_ficp_info(&magician_ficp_info); | 787 | pxa_set_ficp_info(&magician_ficp_info); |
780 | } | 788 | } |
781 | pxa27x_set_i2c_power_info(NULL); | 789 | pxa27x_set_i2c_power_info(NULL); |
782 | pxa_set_i2c_info(NULL); | 790 | pxa_set_i2c_info(&i2c_info); |
783 | pxa_set_mci_info(&magician_mci_info); | 791 | pxa_set_mci_info(&magician_mci_info); |
784 | pxa_set_ohci_info(&magician_ohci_info); | 792 | pxa_set_ohci_info(&magician_ohci_info); |
785 | 793 | ||