Skip to content

Commit 026abc3

Browse files
kirylairlied
authored andcommitted
gma500: initial medfield merge
We need to merge this ahead of some of the cleanup because a lot of needed cleanup spans both new and old chips. If we try and clean up and the merge we end up fighting ourselves. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> [With a load of the cleanup stuff folded in, register stuff reworked sanely] Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent c6265ff commit 026abc3

22 files changed

Lines changed: 6345 additions & 0 deletions

‎arch/x86/platform/mrst/mrst.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include <linux/module.h>
2929
#include <linux/notifier.h>
3030
#include <linux/mfd/intel_msic.h>
31+
#include <linux/gpio.h>
32+
#include <linux/i2c/tc35876x.h>
3133

3234
#include <asm/setup.h>
3335
#include <asm/mpspec_def.h>
@@ -686,6 +688,19 @@ static void *msic_ocd_platform_data(void *info)
686688
return msic_generic_platform_data(info, INTEL_MSIC_BLOCK_OCD);
687689
}
688690

691+
/* tc35876x DSI-LVDS bridge chip and panel platform data */
692+
static void *tc35876x_platform_data(void *data)
693+
{
694+
static struct tc35876x_platform_data pdata;
695+
696+
/* gpio pins set to -1 will not be used by the driver */
697+
pdata.gpio_bridge_reset = get_gpio_by_name("LCMB_RXEN");
698+
pdata.gpio_panel_bl_en = get_gpio_by_name("6S6P_BL_EN");
699+
pdata.gpio_panel_vadd = get_gpio_by_name("EN_VREG_LCD_V3P3");
700+
701+
return &pdata;
702+
}
703+
689704
static const struct devs_id __initconst device_ids[] = {
690705
{"bma023", SFI_DEV_TYPE_I2C, 1, &no_platform_data},
691706
{"pmic_gpio", SFI_DEV_TYPE_SPI, 1, &pmic_gpio_platform_data},
@@ -698,6 +713,7 @@ static const struct devs_id __initconst device_ids[] = {
698713
{"i2c_accel", SFI_DEV_TYPE_I2C, 0, &lis331dl_platform_data},
699714
{"pmic_audio", SFI_DEV_TYPE_IPC, 1, &no_platform_data},
700715
{"mpu3050", SFI_DEV_TYPE_I2C, 1, &mpu3050_platform_data},
716+
{"i2c_disp_brig", SFI_DEV_TYPE_I2C, 0, &tc35876x_platform_data},
701717

702718
/* MSIC subdevices */
703719
{"msic_battery", SFI_DEV_TYPE_IPC, 1, &msic_battery_platform_data},

‎drivers/gpu/drm/gma500/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ config DRM_GMA3600
2424
help
2525
Say yes to include basic support for Intel GMA3600/3650 (Intel
2626
Cedar Trail) platforms.
27+
28+
config DRM_MEDFIELD
29+
bool "Intel Medfield support (Experimental)"
30+
depends on DRM_GMA500 && X86_INTEL_MID
31+
help
32+
Say yes to include support for the Intel Medfield platform.
33+

‎drivers/gpu/drm/gma500/Makefile‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,14 @@ gma500_gfx-$(CONFIG_DRM_GMA600) += oaktrail_device.o \
3737
oaktrail_hdmi.o \
3838
oaktrail_hdmi_i2c.o
3939

40+
gma500_gfx-$(CONFIG_DRM_MEDFIELD) += mdfld_device.o \
41+
mdfld_output.o \
42+
mdfld_intel_display.o \
43+
mdfld_dsi_output.o \
44+
mdfld_dsi_dpi.o \
45+
mdfld_dsi_pkg_sender.o \
46+
mdfld_tpo_vid.o \
47+
mdfld_tmd_vid.o \
48+
tc35876x-dsi-lvds.o
49+
4050
obj-$(CONFIG_DRM_GMA500) += gma500_gfx.o

0 commit comments

Comments
 (0)