From patchwork Mon Dec 26 10:00:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 5969 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 ED20E23F72 for ; Mon, 26 Dec 2011 10:03:38 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id E4E4CA180FE for ; Mon, 26 Dec 2011 10:03:38 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id c11so8899900eaa.11 for ; Mon, 26 Dec 2011 02:03:38 -0800 (PST) Received: by 10.205.132.148 with SMTP id hu20mr3746822bkc.96.1324893818710; Mon, 26 Dec 2011 02:03:38 -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.205.82.144 with SMTP id ac16cs144108bkc; Mon, 26 Dec 2011 02:03:38 -0800 (PST) Received: by 10.50.182.199 with SMTP id eg7mr25441599igc.22.1324893816747; Mon, 26 Dec 2011 02:03:36 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id x9si12216560ica.97.2011.12.26.02.03.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Dec 2011 02:03:36 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 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-iy0-f178.google.com with SMTP id f6so22226462iag.37 for ; Mon, 26 Dec 2011 02:03:36 -0800 (PST) Received: by 10.50.193.229 with SMTP id hr5mr25409792igc.15.1324893816045; Mon, 26 Dec 2011 02:03:36 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id cv10sm54134033igc.0.2011.12.26.02.03.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Dec 2011 02:03:35 -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 1/4] ARM: S5PV210: Enable MFC on SMDKV210 Date: Mon, 26 Dec 2011 15:30:10 +0530 Message-Id: <1324893613-5469-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1324893613-5469-1-git-send-email-sachin.kamat@linaro.org> References: <1324893613-5469-1-git-send-email-sachin.kamat@linaro.org> This patch adds 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 646057a..251491d 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig @@ -137,6 +137,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 8662ef6..d50cacd 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 /* Following are default values for UCON, ULCON and UFCON UART registers */ #define SMDKV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ @@ -225,6 +226,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, @@ -284,6 +288,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") .map_io = smdkv210_map_io, .init_machine = smdkv210_machine_init, .timer = &s5p_timer, + .reserve = &smdkv210_reserve, MACHINE_END