#include <linux/regulator/machine.h>
#include <linux/rfkill-rk.h>
#include <linux/sensor-dev.h>
-#include <linux/mfd/tps65910.h>
-#include <linux/regulator/rk29-pwm-regulator.h>
#if defined(CONFIG_HDMI_RK30)
#include "../../../drivers/video/rockchip/hdmi/rk_hdmi.h"
#endif
#define RK30_FB0_MEM_SIZE 8*SZ_1M
#endif
-int PMIC_IS_WM831X = 0;
-int PMIC_IS_TPS6591x = 0;
-
#ifdef CONFIG_VIDEO_RK29
/*---------------- Camera Sensor Macro Define Begin ------------------------*/
/*---------------- Camera Sensor Configuration Macro Begin ------------------------*/
};
#endif
-#if CONFIG_RK30_PWM_REGULATOR
-const static int pwm_voltage_map[] = {
- 1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000, 1375000, 1400000
-};
-
-static struct regulator_consumer_supply pwm_dcdc1_consumers[] = {
- {
- .supply = "vdd_core",
- }
-};
-
-struct regulator_init_data pwm_regulator_init_dcdc[1] =
-{
- {
- .constraints = {
- .name = "PWM_DCDC1",
- .min_uV = 600000,
- .max_uV = 1800000, //0.6-1.8V
- .apply_uV = true,
- .valid_ops_mask = REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_VOLTAGE,
- },
- .num_consumer_supplies = ARRAY_SIZE(pwm_dcdc1_consumers),
- .consumer_supplies = pwm_dcdc1_consumers,
- },
-};
-
-static struct pwm_platform_data pwm_regulator_info[1] = {
- {
- .pwm_id = 3,
- .pwm_gpio = RK30_PIN0_PD7,
- .pwm_iomux_name = GPIO0D7_PWM3_NAME,
- .pwm_iomux_pwm = GPIO0D_PWM3,
- .pwm_iomux_gpio = GPIO0D_GPIO0D6,
- .pwm_voltage = 1100000,
- .min_uV = 1000000,
- .max_uV = 1400000,
- .coefficient = 455, //45.5%
- .pwm_voltage_map = pwm_voltage_map,
- .init_data = &pwm_regulator_init_dcdc[0],
- },
-};
-
-struct platform_device pwm_regulator_device[1] = {
- {
- .name = "pwm-voltage-regulator",
- .id = 0,
- .dev = {
- .platform_data = &pwm_regulator_info[0],
- }
- },
-};
-#endif
-
#ifdef CONFIG_RK29_VMAC
#define PHY_PWR_EN_GPIO RK30_PIN1_PD6
#include "board-rk30-sdk-vmac.c"
#endif
static struct platform_device *devices[] __initdata = {
-#ifdef CONFIG_RK30_PWM_REGULATOR
- &pwm_regulator_device[0],
-#endif
#ifdef CONFIG_BACKLIGHT_RK29_BL
&rk29_device_backlight,
#endif
#endif
#ifdef CONFIG_I2C1_RK30
-#ifdef CONFIG_MFD_WM831X_I2C
#include "board-rk30-sdk-wm8326.c"
-#endif
-#ifdef CONFIG_MFD_TPS65910
-#define TPS65910_HOST_IRQ RK30_PIN6_PA4
-#include "board-rk30-sdk-tps65910.c"
-#endif
static struct i2c_board_info __initdata i2c1_info[] = {
#if defined (CONFIG_MFD_WM831X_I2C)
.platform_data = &wm831x_platdata,
},
#endif
-#if defined (CONFIG_MFD_TPS65910)
- {
- .type = "tps65910",
- .addr = TPS65910_I2C_ID0,
- .flags = 0,
- .irq = TPS65910_HOST_IRQ,
- .platform_data = &tps65910_data,
- },
-#endif
-
};
#endif