Merge branch 'next/board-samsung' into next/board-samsung-2
This commit is contained in:
@@ -207,6 +207,7 @@ config MACH_SMDKV310
|
|||||||
select S3C_DEV_HSMMC1
|
select S3C_DEV_HSMMC1
|
||||||
select S3C_DEV_HSMMC2
|
select S3C_DEV_HSMMC2
|
||||||
select S3C_DEV_HSMMC3
|
select S3C_DEV_HSMMC3
|
||||||
|
select S3C_DEV_USB_HSOTG
|
||||||
select SAMSUNG_DEV_BACKLIGHT
|
select SAMSUNG_DEV_BACKLIGHT
|
||||||
select EXYNOS_DEV_DRM
|
select EXYNOS_DEV_DRM
|
||||||
select EXYNOS_DEV_SYSMMU
|
select EXYNOS_DEV_SYSMMU
|
||||||
@@ -326,6 +327,7 @@ config MACH_ORIGEN
|
|||||||
select S3C_DEV_WDT
|
select S3C_DEV_WDT
|
||||||
select S3C_DEV_HSMMC
|
select S3C_DEV_HSMMC
|
||||||
select S3C_DEV_HSMMC2
|
select S3C_DEV_HSMMC2
|
||||||
|
select S3C_DEV_USB_HSOTG
|
||||||
select S5P_DEV_FIMC0
|
select S5P_DEV_FIMC0
|
||||||
select S5P_DEV_FIMC1
|
select S5P_DEV_FIMC1
|
||||||
select S5P_DEV_FIMC2
|
select S5P_DEV_FIMC2
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
#include <linux/mfd/max8997.h>
|
#include <linux/mfd/max8997.h>
|
||||||
#include <linux/lcd.h>
|
#include <linux/lcd.h>
|
||||||
#include <linux/rfkill-gpio.h>
|
#include <linux/rfkill-gpio.h>
|
||||||
|
#include <linux/platform_data/s3c-hsotg.h>
|
||||||
|
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/hardware/gic.h>
|
#include <asm/hardware/gic.h>
|
||||||
@@ -499,6 +500,9 @@ static void __init origen_ohci_init(void)
|
|||||||
exynos4_ohci_set_platdata(pdata);
|
exynos4_ohci_set_platdata(pdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* USB OTG */
|
||||||
|
static struct s3c_hsotg_plat origen_hsotg_pdata;
|
||||||
|
|
||||||
static struct gpio_keys_button origen_gpio_keys_table[] = {
|
static struct gpio_keys_button origen_gpio_keys_table[] = {
|
||||||
{
|
{
|
||||||
.code = KEY_MENU,
|
.code = KEY_MENU,
|
||||||
@@ -655,6 +659,7 @@ static struct platform_device *origen_devices[] __initdata = {
|
|||||||
&s3c_device_hsmmc0,
|
&s3c_device_hsmmc0,
|
||||||
&s3c_device_i2c0,
|
&s3c_device_i2c0,
|
||||||
&s3c_device_rtc,
|
&s3c_device_rtc,
|
||||||
|
&s3c_device_usb_hsotg,
|
||||||
&s3c_device_wdt,
|
&s3c_device_wdt,
|
||||||
&s5p_device_ehci,
|
&s5p_device_ehci,
|
||||||
&s5p_device_fimc0,
|
&s5p_device_fimc0,
|
||||||
@@ -744,6 +749,7 @@ static void __init origen_machine_init(void)
|
|||||||
|
|
||||||
origen_ehci_init();
|
origen_ehci_init();
|
||||||
origen_ohci_init();
|
origen_ohci_init();
|
||||||
|
s3c_hsotg_set_platdata(&origen_hsotg_pdata);
|
||||||
clk_xusbxti.rate = 24000000;
|
clk_xusbxti.rate = 24000000;
|
||||||
|
|
||||||
s5p_tv_setup();
|
s5p_tv_setup();
|
||||||
|
@@ -219,8 +219,10 @@ static struct platform_pwm_backlight_data smdk4x12_bl_data = {
|
|||||||
|
|
||||||
static uint32_t smdk4x12_keymap[] __initdata = {
|
static uint32_t smdk4x12_keymap[] __initdata = {
|
||||||
/* KEY(row, col, keycode) */
|
/* KEY(row, col, keycode) */
|
||||||
KEY(1, 0, KEY_D), KEY(1, 1, KEY_A), KEY(1, 2, KEY_B),
|
KEY(1, 3, KEY_1), KEY(1, 4, KEY_2), KEY(1, 5, KEY_3),
|
||||||
KEY(1, 3, KEY_E), KEY(1, 4, KEY_C)
|
KEY(1, 6, KEY_4), KEY(1, 7, KEY_5),
|
||||||
|
KEY(2, 5, KEY_D), KEY(2, 6, KEY_A), KEY(2, 7, KEY_B),
|
||||||
|
KEY(0, 7, KEY_E), KEY(0, 5, KEY_C)
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct matrix_keymap_data smdk4x12_keymap_data __initdata = {
|
static struct matrix_keymap_data smdk4x12_keymap_data __initdata = {
|
||||||
@@ -230,8 +232,8 @@ static struct matrix_keymap_data smdk4x12_keymap_data __initdata = {
|
|||||||
|
|
||||||
static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = {
|
static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = {
|
||||||
.keymap_data = &smdk4x12_keymap_data,
|
.keymap_data = &smdk4x12_keymap_data,
|
||||||
.rows = 2,
|
.rows = 3,
|
||||||
.cols = 5,
|
.cols = 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device *smdk4x12_devices[] __initdata = {
|
static struct platform_device *smdk4x12_devices[] __initdata = {
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include <linux/pwm_backlight.h>
|
#include <linux/pwm_backlight.h>
|
||||||
|
#include <linux/platform_data/s3c-hsotg.h>
|
||||||
|
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/hardware/gic.h>
|
#include <asm/hardware/gic.h>
|
||||||
@@ -271,6 +272,9 @@ static void __init smdkv310_ohci_init(void)
|
|||||||
exynos4_ohci_set_platdata(pdata);
|
exynos4_ohci_set_platdata(pdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* USB OTG */
|
||||||
|
static struct s3c_hsotg_plat smdkv310_hsotg_pdata;
|
||||||
|
|
||||||
static struct platform_device *smdkv310_devices[] __initdata = {
|
static struct platform_device *smdkv310_devices[] __initdata = {
|
||||||
&s3c_device_hsmmc0,
|
&s3c_device_hsmmc0,
|
||||||
&s3c_device_hsmmc1,
|
&s3c_device_hsmmc1,
|
||||||
@@ -279,6 +283,7 @@ static struct platform_device *smdkv310_devices[] __initdata = {
|
|||||||
&s3c_device_i2c1,
|
&s3c_device_i2c1,
|
||||||
&s5p_device_i2c_hdmiphy,
|
&s5p_device_i2c_hdmiphy,
|
||||||
&s3c_device_rtc,
|
&s3c_device_rtc,
|
||||||
|
&s3c_device_usb_hsotg,
|
||||||
&s3c_device_wdt,
|
&s3c_device_wdt,
|
||||||
&s5p_device_ehci,
|
&s5p_device_ehci,
|
||||||
&s5p_device_fimc0,
|
&s5p_device_fimc0,
|
||||||
@@ -390,6 +395,7 @@ static void __init smdkv310_machine_init(void)
|
|||||||
|
|
||||||
smdkv310_ehci_init();
|
smdkv310_ehci_init();
|
||||||
smdkv310_ohci_init();
|
smdkv310_ohci_init();
|
||||||
|
s3c_hsotg_set_platdata(&smdkv310_hsotg_pdata);
|
||||||
clk_xusbxti.rate = 24000000;
|
clk_xusbxti.rate = 24000000;
|
||||||
|
|
||||||
platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
|
platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
|
||||||
|
@@ -13,9 +13,7 @@
|
|||||||
|
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
|
|
||||||
#define BANFF_PMIC_IRQ_BASE IRQ_BOARD_START
|
#define GLENFARCLAS_PMIC_IRQ_BASE IRQ_BOARD_START
|
||||||
#define GLENFARCLAS_PMIC_IRQ_BASE (IRQ_BOARD_START + 64)
|
|
||||||
#define CODEC_IRQ_BASE (IRQ_BOARD_START + 128)
|
|
||||||
|
|
||||||
#define PCA935X_GPIO_BASE GPIO_BOARD_START
|
#define PCA935X_GPIO_BASE GPIO_BOARD_START
|
||||||
#define CODEC_GPIO_BASE (GPIO_BOARD_START + 8)
|
#define CODEC_GPIO_BASE (GPIO_BOARD_START + 8)
|
||||||
|
@@ -39,6 +39,7 @@ static struct spi_board_info wm1253_devs[] = {
|
|||||||
.bus_num = 0,
|
.bus_num = 0,
|
||||||
.chip_select = 0,
|
.chip_select = 0,
|
||||||
.mode = SPI_MODE_0,
|
.mode = SPI_MODE_0,
|
||||||
|
.irq = S3C_EINT(5),
|
||||||
.controller_data = &wm0010_spi_csinfo,
|
.controller_data = &wm0010_spi_csinfo,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -168,7 +169,6 @@ static struct wm8994_pdata wm8994_pdata = {
|
|||||||
.gpio_defaults = {
|
.gpio_defaults = {
|
||||||
0x3, /* IRQ out, active high, CMOS */
|
0x3, /* IRQ out, active high, CMOS */
|
||||||
},
|
},
|
||||||
.irq_base = CODEC_IRQ_BASE,
|
|
||||||
.ldo = {
|
.ldo = {
|
||||||
{ .init_data = &wm8994_ldo1, },
|
{ .init_data = &wm8994_ldo1, },
|
||||||
{ .init_data = &wm8994_ldo2, },
|
{ .init_data = &wm8994_ldo2, },
|
||||||
@@ -182,6 +182,11 @@ static const struct i2c_board_info wm1277_devs[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct i2c_board_info wm5102_devs[] = {
|
||||||
|
{ I2C_BOARD_INFO("wm5102", 0x1a),
|
||||||
|
.irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, },
|
||||||
|
};
|
||||||
|
|
||||||
static const struct i2c_board_info wm6230_i2c_devs[] = {
|
static const struct i2c_board_info wm6230_i2c_devs[] = {
|
||||||
{ I2C_BOARD_INFO("wm9081", 0x6c),
|
{ I2C_BOARD_INFO("wm9081", 0x6c),
|
||||||
.platform_data = &wm9081_pdata, },
|
.platform_data = &wm9081_pdata, },
|
||||||
@@ -209,6 +214,7 @@ static __devinitdata const struct {
|
|||||||
.spi_devs = wm1253_devs, .num_spi_devs = ARRAY_SIZE(wm1253_devs) },
|
.spi_devs = wm1253_devs, .num_spi_devs = ARRAY_SIZE(wm1253_devs) },
|
||||||
{ .id = 0x32, .name = "XXXX-EV1 Caol Illa" },
|
{ .id = 0x32, .name = "XXXX-EV1 Caol Illa" },
|
||||||
{ .id = 0x33, .name = "XXXX-EV1 Oban" },
|
{ .id = 0x33, .name = "XXXX-EV1 Oban" },
|
||||||
|
{ .id = 0x34, .name = "WM0010-6320-CS42 Balblair" },
|
||||||
{ .id = 0x39, .name = "1254-EV1 Dallas Dhu",
|
{ .id = 0x39, .name = "1254-EV1 Dallas Dhu",
|
||||||
.i2c_devs = wm1254_devs, .num_i2c_devs = ARRAY_SIZE(wm1254_devs) },
|
.i2c_devs = wm1254_devs, .num_i2c_devs = ARRAY_SIZE(wm1254_devs) },
|
||||||
{ .id = 0x3a, .name = "1259-EV1 Tobermory",
|
{ .id = 0x3a, .name = "1259-EV1 Tobermory",
|
||||||
@@ -218,6 +224,8 @@ static __devinitdata const struct {
|
|||||||
{ .id = 0x3c, .name = "1273-EV1 Longmorn" },
|
{ .id = 0x3c, .name = "1273-EV1 Longmorn" },
|
||||||
{ .id = 0x3d, .name = "1277-EV1 Littlemill",
|
{ .id = 0x3d, .name = "1277-EV1 Littlemill",
|
||||||
.i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) },
|
.i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) },
|
||||||
|
{ .id = 0x3e, .name = "WM5102-6271-EV1-CS127",
|
||||||
|
.i2c_devs = wm5102_devs, .num_i2c_devs = ARRAY_SIZE(wm5102_devs) },
|
||||||
};
|
};
|
||||||
|
|
||||||
static __devinit int wlf_gf_module_probe(struct i2c_client *i2c,
|
static __devinit int wlf_gf_module_probe(struct i2c_client *i2c,
|
||||||
|
@@ -525,7 +525,6 @@ static struct wm831x_touch_pdata touch_pdata __initdata = {
|
|||||||
|
|
||||||
static struct wm831x_pdata crag_pmic_pdata __initdata = {
|
static struct wm831x_pdata crag_pmic_pdata __initdata = {
|
||||||
.wm831x_num = 1,
|
.wm831x_num = 1,
|
||||||
.irq_base = BANFF_PMIC_IRQ_BASE,
|
|
||||||
.gpio_base = BANFF_PMIC_GPIO_BASE,
|
.gpio_base = BANFF_PMIC_GPIO_BASE,
|
||||||
.soft_shutdown = true,
|
.soft_shutdown = true,
|
||||||
|
|
||||||
|
@@ -152,6 +152,7 @@ config MACH_SMDKV210
|
|||||||
select S3C_DEV_I2C1
|
select S3C_DEV_I2C1
|
||||||
select S3C_DEV_I2C2
|
select S3C_DEV_I2C2
|
||||||
select S3C_DEV_RTC
|
select S3C_DEV_RTC
|
||||||
|
select S3C_DEV_USB_HSOTG
|
||||||
select S3C_DEV_WDT
|
select S3C_DEV_WDT
|
||||||
select S5P_DEV_FIMC0
|
select S5P_DEV_FIMC0
|
||||||
select S5P_DEV_FIMC1
|
select S5P_DEV_FIMC1
|
||||||
@@ -170,6 +171,7 @@ config MACH_SMDKV210
|
|||||||
select S5PV210_SETUP_IDE
|
select S5PV210_SETUP_IDE
|
||||||
select S5PV210_SETUP_KEYPAD
|
select S5PV210_SETUP_KEYPAD
|
||||||
select S5PV210_SETUP_SDHCI
|
select S5PV210_SETUP_SDHCI
|
||||||
|
select S5PV210_SETUP_USB_PHY
|
||||||
help
|
help
|
||||||
Machine support for Samsung SMDKV210
|
Machine support for Samsung SMDKV210
|
||||||
|
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/pwm_backlight.h>
|
#include <linux/pwm_backlight.h>
|
||||||
|
#include <linux/platform_data/s3c-hsotg.h>
|
||||||
|
|
||||||
#include <asm/hardware/vic.h>
|
#include <asm/hardware/vic.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
#include <plat/backlight.h>
|
#include <plat/backlight.h>
|
||||||
#include <plat/regs-fb-v4.h>
|
#include <plat/regs-fb-v4.h>
|
||||||
#include <plat/mfc.h>
|
#include <plat/mfc.h>
|
||||||
|
#include <plat/clock.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
@@ -203,6 +205,9 @@ static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = {
|
|||||||
.setup_gpio = s5pv210_fb_gpio_setup_24bpp,
|
.setup_gpio = s5pv210_fb_gpio_setup_24bpp,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* USB OTG */
|
||||||
|
static struct s3c_hsotg_plat smdkv210_hsotg_pdata;
|
||||||
|
|
||||||
static struct platform_device *smdkv210_devices[] __initdata = {
|
static struct platform_device *smdkv210_devices[] __initdata = {
|
||||||
&s3c_device_adc,
|
&s3c_device_adc,
|
||||||
&s3c_device_cfcon,
|
&s3c_device_cfcon,
|
||||||
@@ -216,6 +221,7 @@ static struct platform_device *smdkv210_devices[] __initdata = {
|
|||||||
&s3c_device_i2c2,
|
&s3c_device_i2c2,
|
||||||
&s3c_device_rtc,
|
&s3c_device_rtc,
|
||||||
&s3c_device_ts,
|
&s3c_device_ts,
|
||||||
|
&s3c_device_usb_hsotg,
|
||||||
&s3c_device_wdt,
|
&s3c_device_wdt,
|
||||||
&s5p_device_fimc0,
|
&s5p_device_fimc0,
|
||||||
&s5p_device_fimc1,
|
&s5p_device_fimc1,
|
||||||
@@ -314,6 +320,9 @@ static void __init smdkv210_machine_init(void)
|
|||||||
|
|
||||||
samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data);
|
samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data);
|
||||||
|
|
||||||
|
s3c_hsotg_set_platdata(&smdkv210_hsotg_pdata);
|
||||||
|
clk_xusbxti.rate = 24000000;
|
||||||
|
|
||||||
platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));
|
platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user