From patchwork Thu May 3 10:12:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8376 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 B3CAC23E1D for ; Thu, 3 May 2012 10:22:27 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 82F21A18815 for ; Thu, 3 May 2012 10:22:27 +0000 (UTC) Received: by yenl4 with SMTP id l4so1937320yen.11 for ; Thu, 03 May 2012 03:22:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=UFGfU6x63ElckUaSUambtzN8ora4wVZq4Sf5NWScC0I=; b=gM9LICBpPgrRxUum1TFY7xEzfhcWfGPbZYTIcgcdZJzhKWToAajnsWHFiZ8YAtg90x 0iKZDQ0drGhLbJ6iwx44Mww2iSb9lKZ7z4/ePVp61aIjM6keB2mXfGbYrlf3nsY6g2yQ xUlw8VF+AnOgpGY1fAXSHmCFRWu0gQqAtrWrQNvhDF6+7GoO2izLRq0mtd+4ybKFILOH f0Z1SRxuLaNLSX0eEjdQnhP+PLC0/tCqOpQMh/hfyKGgu4qNUIal01x/CYk2Bt4BARyx xAf5jR1ZCFwRv7IRRfUvyvzz4NQK1T7RruPgnV96PPa3Kukc8gMJEFalIFsBUxnimck3 AECw== Received: by 10.50.47.131 with SMTP id d3mr357087ign.33.1336040546894; Thu, 03 May 2012 03:22:26 -0700 (PDT) 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.137.198 with SMTP id x6csp8962ibt; Thu, 3 May 2012 03:22:22 -0700 (PDT) Received: by 10.68.234.163 with SMTP id uf3mr6136407pbc.63.1336040522466; Thu, 03 May 2012 03:22:02 -0700 (PDT) Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mx.google.com with ESMTPS id oo6si4638076pbc.307.2012.05.03.03.22.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 May 2012 03:22:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.46; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by dady13 with SMTP id y13so1463353dad.5 for ; Thu, 03 May 2012 03:22:02 -0700 (PDT) Received: by 10.68.216.164 with SMTP id or4mr6214880pbc.11.1336040522081; Thu, 03 May 2012 03:22:02 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id qo5sm4894278pbc.2.2012.05.03.03.22.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 May 2012 03:22:01 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/2] ARM: EXYNOS: Add MFC device to SMDK4X12 Date: Thu, 3 May 2012 15:42:35 +0530 Message-Id: <1336039956-19263-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQk8lQPOTMzYq5AK9m9jZ3EJspXU8Z37DAAMTr+BL8f5tGxP4t+5k/SlEqy4V2RzZS5RWsp6 MFC (multi-format codec) device is added to SMDK4212 and SMDK4412 boards. Signed-off-by: Sachin Kamat --- arch/arm/mach-exynos/Kconfig | 1 + arch/arm/mach-exynos/mach-smdk4x12.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 2c35fd4..ac72490 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -343,6 +343,7 @@ config MACH_SMDK4212 select S3C_DEV_I2C7 select S3C_DEV_RTC select S3C_DEV_WDT + select S5P_DEV_MFC select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_KEYPAD select SAMSUNG_DEV_PWM diff --git a/arch/arm/mach-exynos/mach-smdk4x12.c b/arch/arm/mach-exynos/mach-smdk4x12.c index 4be083a..1c259f2 100644 --- a/arch/arm/mach-exynos/mach-smdk4x12.c +++ b/arch/arm/mach-exynos/mach-smdk4x12.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -242,6 +243,9 @@ static struct platform_device *smdk4x12_devices[] __initdata = { &s3c_device_i2c7, &s3c_device_rtc, &s3c_device_wdt, + &s5p_device_mfc, + &s5p_device_mfc_l, + &s5p_device_mfc_r, &samsung_device_keypad, }; @@ -254,6 +258,11 @@ static void __init smdk4x12_map_io(void) s3c24xx_init_uarts(smdk4x12_uartcfgs, ARRAY_SIZE(smdk4x12_uartcfgs)); } +static void __init smdk4x12_reserve(void) +{ + s5p_mfc_reserve_mem(0x43000000, 8 << 20, 0x51000000, 8 << 20); +} + static void __init smdk4x12_machine_init(void) { s3c_i2c0_set_platdata(NULL); @@ -291,6 +300,7 @@ MACHINE_START(SMDK4212, "SMDK4212") .init_machine = smdk4x12_machine_init, .timer = &exynos4_timer, .restart = exynos4_restart, + .reserve = &smdk4x12_reserve, MACHINE_END MACHINE_START(SMDK4412, "SMDK4412") @@ -303,4 +313,5 @@ MACHINE_START(SMDK4412, "SMDK4412") .init_machine = smdk4x12_machine_init, .timer = &exynos4_timer, .restart = exynos4_restart, + .reserve = &smdk4x12_reserve, MACHINE_END