|
@@ -162,3 +162,53 @@ static struct platform_device smartq_backlight_device = {
|
|
|
};
|
|
|
|
|
|
static struct s3c2410_ts_mach_info smartq_touchscreen_pdata __initdata = {
|
|
|
+ .delay = 65535,
|
|
|
+ .presc = 99,
|
|
|
+ .oversampling_shift = 4,
|
|
|
+};
|
|
|
+
|
|
|
+static struct s3c_sdhci_platdata smartq_internal_hsmmc_pdata = {
|
|
|
+ .max_width = 4,
|
|
|
+ .cd_type = S3C_SDHCI_CD_PERMANENT,
|
|
|
+};
|
|
|
+
|
|
|
+static struct s3c_hwmon_pdata smartq_hwmon_pdata __initdata = {
|
|
|
+ /* Battery voltage (?-4.2V) */
|
|
|
+ .in[0] = &(struct s3c_hwmon_chcfg) {
|
|
|
+ .name = "smartq:battery-voltage",
|
|
|
+ .mult = 3300,
|
|
|
+ .div = 2048,
|
|
|
+ },
|
|
|
+ /* Reference voltage (1.2V) */
|
|
|
+ .in[1] = &(struct s3c_hwmon_chcfg) {
|
|
|
+ .name = "smartq:reference-voltage",
|
|
|
+ .mult = 3300,
|
|
|
+ .div = 4096,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct s3c_hsotg_plat smartq_hsotg_pdata;
|
|
|
+
|
|
|
+static int __init smartq_lcd_setup_gpio(void)
|
|
|
+{
|
|
|
+ int ret;
|
|
|
+
|
|
|
+ ret = gpio_request(S3C64XX_GPM(3), "LCD power");
|
|
|
+ if (ret < 0)
|
|
|
+ return ret;
|
|
|
+
|
|
|
+ /* turn power off */
|
|
|
+ gpio_direction_output(S3C64XX_GPM(3), 0);
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+/* GPM0 -> CS */
|
|
|
+static struct spi_gpio_platform_data smartq_lcd_control = {
|
|
|
+ .sck = S3C64XX_GPM(1),
|
|
|
+ .mosi = S3C64XX_GPM(2),
|
|
|
+ .miso = S3C64XX_GPM(2),
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device smartq_lcd_control_device = {
|
|
|
+ .name = "spi-gpio",
|