From patchwork Mon Feb 13 05:18:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 6760 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 11A1823EB0 for ; Mon, 13 Feb 2012 05:24:37 +0000 (UTC) Received: from mail-tul01m020-f180.google.com (mail-tul01m020-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id C4A67A18042 for ; Mon, 13 Feb 2012 05:24:36 +0000 (UTC) Received: by obbuo19 with SMTP id uo19so8289101obb.11 for ; Sun, 12 Feb 2012 21:24:36 -0800 (PST) Received: by 10.50.203.6 with SMTP id km6mr24540390igc.25.1329110676041; Sun, 12 Feb 2012 21:24:36 -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 n7cs45926ibi; Sun, 12 Feb 2012 21:24:35 -0800 (PST) Received: by 10.68.75.135 with SMTP id c7mr43572871pbw.43.1329110674929; Sun, 12 Feb 2012 21:24:34 -0800 (PST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id p7si20516353pbk.152.2012.02.12.21.24.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Feb 2012 21:24:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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 mail-pw0-f50.google.com with SMTP id wy7so4159369pbc.37 for ; Sun, 12 Feb 2012 21:24:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.73.105 with SMTP id k9mr42852749pbv.121.1329110674490; Sun, 12 Feb 2012 21:24:34 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id i10sm37409742pbg.10.2012.02.12.21.24.30 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Feb 2012 21:24:33 -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 1/4] ARM: S5PV210: Enable MFC on SMDKV210 Date: Mon, 13 Feb 2012 10:48:48 +0530 Message-Id: <1329110331-12746-2-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: ALoCoQmAmLkZiuX1uWCk+xAKFTMIJYgC1b/Cx3IjxV3d7KIjwEUcTJMj/FIrFVNtkhYRznWDBl2g Add MFC support on SMDKV210 board. Signed-off-by: Sachin Kamat --- arch/arm/mach-s5pv210/Kconfig | 1 + arch/arm/mach-s5pv210/mach-smdkv210.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 2cdc42e..1e0131b 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig @@ -142,6 +142,7 @@ config MACH_SMDKV210 select S3C_DEV_I2C2 select S3C_DEV_RTC select S3C_DEV_WDT + select S5P_DEV_MFC select SAMSUNG_DEV_ADC select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_IDE diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index dff9ea7..0b0d65d 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c @@ -46,6 +46,7 @@ #include #include #include +#include #include "common.h" @@ -223,6 +224,9 @@ static struct platform_device *smdkv210_devices[] __initdata = { &s3c_device_rtc, &s3c_device_ts, &s3c_device_wdt, + &s5p_device_mfc, + &s5p_device_mfc_l, + &s5p_device_mfc_r, &s5pv210_device_ac97, &s5pv210_device_iis0, &s5pv210_device_spdif, @@ -282,6 +286,11 @@ static void __init smdkv210_map_io(void) s5p_set_timer_source(S5P_PWM2, S5P_PWM4); } +static void __init smdkv210_reserve(void) +{ + s5p_mfc_reserve_mem(0x43000000, 8 << 20, 0x51000000, 8 << 20); +} + static void __init smdkv210_machine_init(void) { s3c_pm_init(); @@ -319,4 +328,5 @@ MACHINE_START(SMDKV210, "SMDKV210") .init_machine = smdkv210_machine_init, .timer = &s5p_timer, .restart = s5pv210_restart, + .reserve = &smdkv210_reserve, MACHINE_END