From patchwork Tue May 22 09:05:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8856 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 9962B23F0A for ; Tue, 22 May 2012 09:16:00 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 692F5A186B8 for ; Tue, 22 May 2012 09:16:00 +0000 (UTC) Received: by ggnf1 with SMTP id f1so6370678ggn.11 for ; Tue, 22 May 2012 02:16:00 -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:in-reply-to:references :x-gm-message-state; bh=hcGgrdcG8d22kZy9GvgKUgNFpeZD/4Ma+Jr/bnYxEcg=; b=MerMT2bUkr/q4LNajVOQ7Y8kmlEACtHVlZh6sZihWDjacs6u9PKgUPOJYTbSdFAyeU BSpNswOUEwBL1C24Ye+faqaEVmnUcv5cVsqAj2gm+EIypaPRM8lGlme67h8Uq6KU+Mxd yQilw2EpQc94H0a3vE49Vm0ZZ0OuU0wsWBODhFOg0K0PMjkRrlxzubB5bKHAW5P3N1L2 q7CYQsvIooi4Keg5LOgmD68qjTgb+YSaMDWDwWFtt72UhFagosTaXG4gPmB21eWbhwQ9 vJxp7GOcC3f+6SIdtqKd/v4BPWd3WVqwT4WIu9mFGy0JDMkdzibaMNPN//oIir0Y/sZP f+PA== Received: by 10.50.46.232 with SMTP id y8mr8424459igm.57.1337678159758; Tue, 22 May 2012 02:15:59 -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.35.72 with SMTP id o8csp350932ibd; Tue, 22 May 2012 02:15:59 -0700 (PDT) Received: by 10.68.233.193 with SMTP id ty1mr15588255pbc.47.1337678159001; Tue, 22 May 2012 02:15:59 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id qb6si22584432pbb.77.2012.05.22.02.15.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 02:15:58 -0700 (PDT) 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 pbbrr4 with SMTP id rr4so9682203pbb.37 for ; Tue, 22 May 2012 02:15:58 -0700 (PDT) Received: by 10.68.225.6 with SMTP id rg6mr41452350pbc.100.1337678158738; Tue, 22 May 2012 02:15:58 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id py5sm26107566pbb.1.2012.05.22.02.15.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 02:15:58 -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 2/2] ARM: EXYNOS: Add HSOTG support to SMDK4X12 Date: Tue, 22 May 2012 14:35:29 +0530 Message-Id: <1337677529-7325-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1337677529-7325-1-git-send-email-sachin.kamat@linaro.org> References: <1337677529-7325-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQl9jHu4HKZtQ/jaHjOMgipHXJIL750fovZKUtLt1S75wiCJodBRc9ktjcTXJka54xOGlvPA S3C-HSOTG support is added to SMDK4212 and SMDK4412 boards. Signed-off-by: Sachin Kamat --- Based on Kukjin Kim's v3.5-for-usb-2 branch. --- arch/arm/mach-exynos/Kconfig | 2 ++ arch/arm/mach-exynos/mach-smdk4x12.c | 8 ++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 6682f35..95e3ee3 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -349,6 +349,7 @@ config MACH_SMDK4212 select S3C_DEV_I2C3 select S3C_DEV_I2C7 select S3C_DEV_RTC + select S3C_DEV_USB_HSOTG select S3C_DEV_WDT select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_KEYPAD @@ -359,6 +360,7 @@ config MACH_SMDK4212 select EXYNOS4_SETUP_I2C7 select EXYNOS4_SETUP_KEYPAD select EXYNOS4_SETUP_SDHCI + select EXYNOS4_SETUP_USB_PHY help Machine support for Samsung SMDK4212 diff --git a/arch/arm/mach-exynos/mach-smdk4x12.c b/arch/arm/mach-exynos/mach-smdk4x12.c index d00e4f0..6d8f325 100644 --- a/arch/arm/mach-exynos/mach-smdk4x12.c +++ b/arch/arm/mach-exynos/mach-smdk4x12.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -235,6 +236,9 @@ static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = { .cols = 5, }; +/* USB OTG */ +static struct s3c_hsotg_plat smdk4x12_hsotg_pdata; + static struct platform_device *smdk4x12_devices[] __initdata = { &s3c_device_hsmmc2, &s3c_device_hsmmc3, @@ -243,6 +247,7 @@ static struct platform_device *smdk4x12_devices[] __initdata = { &s3c_device_i2c3, &s3c_device_i2c7, &s3c_device_rtc, + &s3c_device_usb_hsotg, &s3c_device_wdt, &samsung_device_keypad, }; @@ -281,6 +286,9 @@ static void __init smdk4x12_machine_init(void) s3c_sdhci2_set_platdata(&smdk4x12_hsmmc2_pdata); s3c_sdhci3_set_platdata(&smdk4x12_hsmmc3_pdata); + s3c_hsotg_set_platdata(&smdk4x12_hsotg_pdata); + clk_xusbxti.rate = 24000000; + platform_add_devices(smdk4x12_devices, ARRAY_SIZE(smdk4x12_devices)); }