CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_ARCH_RK30=y
+CONFIG_DDR_INIT_CHANGE_FREQ=y
+CONFIG_DDR_SDRAM_FREQ=300
+# CONFIG_DDR_FREQ is not set
# CONFIG_DDR_TEST is not set
CONFIG_RK_CLOCK_PROC=y
-CONFIG_WIFI_COMBO_MODULE_CONTROL_FUNC=y
-CONFIG_SOC_RK3168M=y
+CONFIG_CLK_SWITCH_TO_32K=y
+CONFIG_RK30_I2C_INSRAM=y
+CONFIG_SOC_RK2928B=y
CONFIG_FIQ_DEBUGGER=y
CONFIG_FIQ_DEBUGGER_NO_SLEEP=y
CONFIG_FIQ_DEBUGGER_CONSOLE=y
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=y
CONFIG_BT_HIDP=y
-CONFIG_CFG80211=y
CONFIG_NL80211_TESTMODE=y
-CONFIG_MAC80211=y
CONFIG_RFKILL=y
CONFIG_RFKILL_INPUT=y
CONFIG_DEVTMPFS=y
# CONFIG_NETDEV_1000 is not set
# CONFIG_NETDEV_10000 is not set
CONFIG_WLAN_80211=y
-CONFIG_MT6620=y
+CONFIG_RKWIFI=y
CONFIG_USB_USBNET=y
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_SERIAL_RK29=y
CONFIG_UART0_RK29=y
CONFIG_UART0_DMA_RK29=2
-CONFIG_UART3_RK29=y
-CONFIG_UART3_CTS_RTS_RK29=y
# CONFIG_HW_RANDOM is not set
CONFIG_I2C=y
# CONFIG_I2C_COMPAT is not set
CONFIG_POWER_SUPPLY=y
CONFIG_TEST_POWER=y
# CONFIG_HWMON is not set
+CONFIG_WATCHDOG=y
+CONFIG_RK29_WATCHDOG=y
+CONFIG_RK29_FEED_DOG_BY_INTE=y
+CONFIG_RK29_WATCHDOG_ATBOOT=y
+CONFIG_RK29_WATCHDOG_DEFAULT_TIME=5
CONFIG_MFD_TPS65910=y
CONFIG_MFD_WM831X_I2C=y
CONFIG_MFD_TPS65090=y
CONFIG_REGULATOR_TPS65910=y
CONFIG_REGULATOR_WM831X=y
CONFIG_REGULATOR_ACT8846=y
-CONFIG_RK30_PWM_REGULATOR=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_DEV=y
CONFIG_SOC_CAMERA=y
CONFIG_FB_ROCKCHIP=y
CONFIG_ONE_LCDC_DUAL_OUTPUT_INF=y
CONFIG_LCDC_RK3066B=y
-# CONFIG_LCDC0_RK3066B is not set
-CONFIG_LCDC1_RK3066B=y
CONFIG_RK_HDMI=y
CONFIG_HDMI_RK610=y
CONFIG_HDMI_SOURCE_LCDC1=y
CONFIG_SND_I2S_DMA_EVENT_STATIC=y
CONFIG_SND_RK29_SOC_RK610=y
CONFIG_SND_RK29_CODEC_SOC_SLAVE=y
+CONFIG_UHID=y
CONFIG_HID_A4TECH=y
CONFIG_HID_ACRUX=y
CONFIG_HID_ACRUX_FF=y
#include "../mach-rk30/board-rk3168-tb-camera.c"
#if defined(CONFIG_TOUCHSCREEN_GT8XX)
-#define TOUCH_RESET_PIN RK30_PIN0_PB6
+#define TOUCH_RESET_PIN RK30_PIN0_PC1//RK30_PIN0_PB6
#define TOUCH_PWR_PIN INVALID_GPIO//RK30_PIN0_PC5 // need to fly line by hardware engineer
static int goodix_init_platform_hw(void)
{
struct goodix_platform_data goodix_info = {
.model = 8105,
- .irq_pin = RK30_PIN1_PB7,
+ .irq_pin = RK30_PIN0_PB4,
.rest_pin = TOUCH_RESET_PIN,
.init_platform_hw = goodix_init_platform_hw,
};
* rk30 backlight
************************************************************/
#ifdef CONFIG_BACKLIGHT_RK29_BL
-#define PWM_ID 3
-#define PWM_MODE PWM3
+#define PWM_ID 0// 3
+#define PWM_MODE PWM0// PWM3
#define PWM_EFFECT_VALUE 1
#define LCD_DISP_ON_PIN
#ifdef LCD_DISP_ON_PIN
-#define BL_EN_PIN RK30_PIN0_PA2
+#define BL_EN_PIN RK30_PIN0_PC0
#define BL_EN_VALUE GPIO_HIGH
#endif
static int rk29_backlight_io_init(void)
#define LCD_CS_PIN INVALID_GPIO
#define LCD_CS_VALUE GPIO_HIGH
-#define LCD_EN_PIN RK30_PIN0_PB0
+#define LCD_EN_PIN RK30_PIN0_PB6
#define LCD_EN_VALUE GPIO_HIGH
static int rk_fb_io_init(struct rk29_fb_setting_info *fb_setting)
}
static struct rk610_codec_platform_data rk610_codec_pdata = {
- .spk_ctl_io = RK30_PIN2_PD7,
+ .spk_ctl_io = RK30_PIN3_PC7,//RK30_PIN2_PD7,
.io_init = rk610_codec_io_init,
};
#endif
#endif
#ifdef CONFIG_RK30_PWM_REGULATOR
static int pwm_voltage_map[] = {
- 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000
+ /*
+ 800000,825000,850000, 875000,900000, 925000 ,950000, 975000,1000000, 1025000, 1050000, 1075000, 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, 1300000, 1325000, 1350000,1375000*/
+ 950000,975000,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_cpu",
+ .supply = "vdd_core",
}
};
static struct pwm_platform_data pwm_regulator_info[1] = {
{
+ #if defined (CONFIG_MACH_RK2928B_TB)
+ .pwm_id = 2,
+ .pwm_gpio = RK30_PIN3_PD5,
+ .pwm_iomux_pwm = PWM2,
+ .pwm_iomux_gpio = GPIO3_D5,
+ #else
.pwm_id = 1,
.pwm_gpio = RK30_PIN3_PD4,
.pwm_iomux_pwm = PWM1,
.pwm_iomux_gpio = GPIO3_D4,
+
+ #endif
.pwm_voltage = 1100000,
.suspend_voltage = 1000000,
- .min_uV = 800000,
- .max_uV = 1375000,
- .coefficient = 575, //57.5%
+ .min_uV = 950000,
+ .max_uV = 1400000,
+ .coefficient = 504, //57.5%
.pwm_voltage_map = pwm_voltage_map,
.init_data = &pwm_regulator_init_dcdc[0],
},
#endif
#ifdef CONFIG_MFD_TPS65910
-#define TPS65910_HOST_IRQ RK30_PIN0_PB3
+#define TPS65910_HOST_IRQ RK30_PIN0_PB5//RK30_PIN0_PB3
-#define PMU_POWER_SLEEP RK30_PIN0_PA1
+#define PMU_POWER_SLEEP RK30_PIN1_PB5
static struct pmu_info tps65910_dcdc_info[] = {
{
- .name = "vdd_core", //logic
- .min_uv = 1100000,
- .max_uv = 1100000,
+ .name = "vdd_cpu", //arm
+ .min_uv = 1200000,
+ .max_uv = 1200000,
},
{
.name = "vdd2", //ddr
},
{
.name = "vio", //vcc_io
- .min_uv = 2500000,
- .max_uv = 2500000,
+ .min_uv = 3300000,
+ .max_uv = 3300000,
},
};
static struct pmu_info tps65910_ldo_info[] = {
{
.name = "vpll", //vdd10
- .min_uv = 1000000,
- .max_uv = 1000000,
+ .min_uv = 2500000,
+ .max_uv = 2500000,
},
{
.name = "vdig1", //vcc18_cif
},
{
.name = "vdig2", //vdd_jetta
- .min_uv = 1200000,
- .max_uv = 1200000,
+ .min_uv = 1100000,
+ .max_uv = 1100000,
},
{
.name = "vaux1", //vcc28_cif
{
.desc = "vol-",
.code = KEY_VOLUMEDOWN,
- .adc_value = 747,
- .gpio = INVALID_GPIO,
+ .gpio = RK30_PIN0_PD6,
.active_low = PRESS_LEV_LOW,
},
{
.desc = "play",
.code = KEY_POWER,
- .gpio = RK30_PIN0_PA4,
+ .gpio = RK30_PIN1_PB4,
.active_low = PRESS_LEV_LOW,
.wakeup = 1,
},
{
.desc = "vol+",
.code = KEY_VOLUMEUP,
- .adc_value = 559,//133
+ .adc_value = 1,//133
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},
{
.desc = "menu",
.code = EV_MENU,
- .adc_value = 1,
+ .adc_value = 135,
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},
{
.desc = "home",
.code = KEY_HOME,
- .adc_value = 355,//550
+ .adc_value = 550,//550
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},
{
.desc = "esc",
.code = KEY_BACK,
- .adc_value = 171,//333
+ .adc_value = 334,//333
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},
{
.desc = "camera",
.code = KEY_CAMERA,
- .adc_value = 742,
+ .adc_value = 700,
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},