#ifdef CONFIG_I2C0_RK30
static struct rk30_i2c_platform_data default_i2c0_data = {
.bus_num = 0,
+#if defined(CONFIG_ARCH_RK3066B)
+ .is_div_from_arm = 0,
+#else
.is_div_from_arm = 1,
+#endif
.adap_type = I2C0_ADAP_TYPE,
.check_idle = &i2c_check_idle,
};
#ifdef CONFIG_I2C1_RK30
static struct rk30_i2c_platform_data default_i2c1_data = {
.bus_num = 1,
+#if defined(CONFIG_ARCH_RK3066B)
+ .is_div_from_arm = 0,
+#else
.is_div_from_arm = 1,
+#endif
.adap_type = I2C1_ADAP_TYPE,
.check_idle = &i2c_check_idle,
};
rk30_init_uart();
rk30_init_i2c();
rk30_init_spim();
-#ifdef CONFIG_MTD_NAND_RK29XX
- platform_device_register(&device_nand);
-#endif
-#ifdef CONFIG_KEYS_RK29
- platform_device_register(&device_keys);
-#endif
#ifdef CONFIG_RGA_RK30
platform_device_register(&device_rga);
#endif
#ifdef CONFIG_ADC_RK30
platform_device_register(&device_adc);
#endif
+#ifdef CONFIG_KEYS_RK29
+ platform_device_register(&device_keys);
+#endif
#if !defined(CONFIG_ARCH_RK3066B)
platform_device_register(&device_tsadc);
#endif
platform_device_register(&device_wdt);
#endif
platform_device_register(&device_arm_pmu);
+#ifdef CONFIG_MTD_NAND_RK29XX
+ platform_device_register(&device_nand);
+#endif
return 0;
}