From patchwork Mon Feb 13 05:18:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 6761 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id F35AB23EB0 for ; Mon, 13 Feb 2012 05:24:40 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id BC37EA1808C for ; Mon, 13 Feb 2012 05:24:40 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id z7so4908215iab.11 for ; Sun, 12 Feb 2012 21:24:40 -0800 (PST) Received: by 10.50.184.168 with SMTP id ev8mr24031161igc.29.1329110680529; Sun, 12 Feb 2012 21:24:40 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.66.135 with SMTP id n7cs45927ibi; Sun, 12 Feb 2012 21:24:40 -0800 (PST) Received: by 10.68.141.232 with SMTP id rr8mr8746639pbb.29.1329110679788; Sun, 12 Feb 2012 21:24:39 -0800 (PST) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id j9si20538945pbh.88.2012.02.12.21.24.39 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Feb 2012 21:24:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by dadp19 with SMTP id p19so4749268dad.37 for ; Sun, 12 Feb 2012 21:24:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.220.106 with SMTP id pv10mr12983545pbc.92.1329110679282; Sun, 12 Feb 2012 21:24:39 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id i10sm37409742pbg.10.2012.02.12.21.24.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Feb 2012 21:24:38 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: sachin.kamat@linaro.org, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH-RESEND 2/4] ARM: S5PV210: Enable MFC on SMDKC110 Date: Mon, 13 Feb 2012 10:48:49 +0530 Message-Id: <1329110331-12746-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1329110331-12746-1-git-send-email-sachin.kamat@linaro.org> References: <1329110331-12746-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQldhcWB3JYAP9aWQN5DuGXo/YgYd8D8PBtEMToTPQOthvrsn4JPFWjlK98l+YngVuAPmOl2 Add MFC support on SMDKC110 board. Signed-off-by: Sachin Kamat --- arch/arm/mach-s5pv210/Kconfig | 1 + arch/arm/mach-s5pv210/mach-smdkc110.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 1e0131b..dd9bdab 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig @@ -118,6 +118,7 @@ config MACH_SMDKC110 select S3C_DEV_I2C2 select S3C_DEV_RTC select S3C_DEV_WDT + select S5P_DEV_MFC select SAMSUNG_DEV_IDE select S5PV210_SETUP_I2C1 select S5PV210_SETUP_I2C2 diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index b323983..7100f7e 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c @@ -31,6 +31,7 @@ #include #include #include +#include #include "common.h" @@ -94,6 +95,9 @@ static struct platform_device *smdkc110_devices[] __initdata = { &s3c_device_i2c2, &s3c_device_rtc, &s3c_device_wdt, + &s5p_device_mfc, + &s5p_device_mfc_l, + &s5p_device_mfc_r, }; static struct i2c_board_info smdkc110_i2c_devs0[] __initdata = { @@ -117,6 +121,11 @@ static void __init smdkc110_map_io(void) s5p_set_timer_source(S5P_PWM3, S5P_PWM4); } +static void __init smdkc110_reserve(void) +{ + s5p_mfc_reserve_mem(0x43000000, 8 << 20, 0x51000000, 8 << 20); +} + static void __init smdkc110_machine_init(void) { s3c_pm_init(); @@ -145,4 +154,5 @@ MACHINE_START(SMDKC110, "SMDKC110") .init_machine = smdkc110_machine_init, .timer = &s5p_timer, .restart = s5pv210_restart, + .reserve = &smdkc110_reserve, MACHINE_END