diff mbox

[RFC/PATCH,v7,4/5] s5pv310: Enable MFC on universal_c210 board

Message ID 1299237982-31687-5-git-send-email-k.debski@samsung.com (mailing list archive)
State RFC
Headers show

Commit Message

Kamil Debski March 4, 2011, 11:26 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-s5pv310/Kconfig
index c850086..6f83817 100644
--- a/arch/arm/mach-s5pv310/Kconfig
+++ b/arch/arm/mach-s5pv310/Kconfig
@@ -107,6 +107,7 @@  config MACH_UNIVERSAL_C210
 	select S5PV310_SETUP_SDHCI
 	select S3C_DEV_I2C1
 	select S3C_DEV_I2C5
+	select S5P_DEV_MFC
 	select S5PV310_DEV_PD
 	select S5PV310_DEV_SYSMMU
 	select S5PV310_SETUP_I2C1
diff --git a/arch/arm/mach-s5pv310/mach-universal_c210.c b/arch/arm/mach-s5pv310/mach-universal_c210.c
index f153895..ce88262 100644
--- a/arch/arm/mach-s5pv310/mach-universal_c210.c
+++ b/arch/arm/mach-s5pv310/mach-universal_c210.c
@@ -827,6 +827,10 @@  static struct platform_device *universal_devices[] __initdata = {
 	&s5pv310_device_sysmmu[S5P_SYSMMU_FIMC1],
 	&s5pv310_device_sysmmu[S5P_SYSMMU_FIMC2],
 	&s5pv310_device_sysmmu[S5P_SYSMMU_FIMC3],
+	&s5p_device_mfc,
+	&s5pv310_device_pd[PD_MFC],
+	&s5pv310_device_sysmmu[S5P_SYSMMU_MFC_L],
+	&s5pv310_device_sysmmu[S5P_SYSMMU_MFC_R],
 
 	/* Universal Devices */
 	&universal_gpio_keys,
@@ -862,6 +866,10 @@  static void __init universal_machine_init(void)
 	s5pv310_device_sysmmu[S5P_SYSMMU_FIMC1].dev.parent = &s5pv310_device_pd[PD_CAM].dev;
 	s5pv310_device_sysmmu[S5P_SYSMMU_FIMC2].dev.parent = &s5pv310_device_pd[PD_CAM].dev;
 	s5pv310_device_sysmmu[S5P_SYSMMU_FIMC3].dev.parent = &s5pv310_device_pd[PD_CAM].dev;
+	
+	s5p_device_mfc.dev.parent = &s5pv310_device_pd[PD_MFC].dev;
+	s5pv310_device_sysmmu[S5P_SYSMMU_MFC_L].dev.parent = &s5pv310_device_pd[PD_MFC].dev;
+	s5pv310_device_sysmmu[S5P_SYSMMU_MFC_R].dev.parent = &s5pv310_device_pd[PD_MFC].dev;
 }
 
 MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210")