|
@@ -10,11 +10,13 @@
|
|
#include <asm/arch/mmc.h>
|
|
#include <asm/arch/mmc.h>
|
|
#include <asm/arch/irda.h>
|
|
#include <asm/arch/irda.h>
|
|
#include <asm/arch/i2c.h>
|
|
#include <asm/arch/i2c.h>
|
|
|
|
+#include <asm/arch/mfp-pxa27x.h>
|
|
#include <asm/arch/ohci.h>
|
|
#include <asm/arch/ohci.h>
|
|
#include <asm/arch/pxa27x_keypad.h>
|
|
#include <asm/arch/pxa27x_keypad.h>
|
|
#include <asm/arch/camera.h>
|
|
#include <asm/arch/camera.h>
|
|
|
|
|
|
#include "devices.h"
|
|
#include "devices.h"
|
|
|
|
+#include "generic.h"
|
|
|
|
|
|
void __init pxa_register_device(struct platform_device *dev, void *data)
|
|
void __init pxa_register_device(struct platform_device *dev, void *data)
|
|
{
|
|
{
|
|
@@ -233,8 +235,15 @@ struct platform_device pxa_device_i2c = {
|
|
.num_resources = ARRAY_SIZE(pxai2c_resources),
|
|
.num_resources = ARRAY_SIZE(pxai2c_resources),
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static unsigned long pxa27x_i2c_mfp_cfg[] = {
|
|
|
|
+ GPIO117_I2C_SCL,
|
|
|
|
+ GPIO118_I2C_SDA,
|
|
|
|
+};
|
|
|
|
+
|
|
void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info)
|
|
void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info)
|
|
{
|
|
{
|
|
|
|
+ if (cpu_is_pxa27x())
|
|
|
|
+ pxa2xx_mfp_config(ARRAY_AND_SIZE(pxa27x_i2c_mfp_cfg));
|
|
pxa_register_device(&pxa_device_i2c, info);
|
|
pxa_register_device(&pxa_device_i2c, info);
|
|
}
|
|
}
|
|
|
|
|