From patchwork Wed Jun 20 04:35:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9462 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 1DEFF23DEB for ; Wed, 20 Jun 2012 04:47:03 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id D7CFCA185BA for ; Wed, 20 Jun 2012 04:47:02 +0000 (UTC) Received: by obbuo19 with SMTP id uo19so1671819obb.11 for ; Tue, 19 Jun 2012 21:47:02 -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=smfwYMpITAdc1SniXcpl8xWQbrcRRo/BwRvgv/VDw0g=; b=IeLJpL94m7mgEqm5QrwGEvR1GgOQ1BqM9gHLM89Yxoin44YFfYJ/r9uMY/ovYGHBY/ GOaJLVcw9P5hECbmbaM9fOW/b8yB3QdrLz0Fd27NGr/IjtA9KMxN/KM4AKrhAfFh4Vp7 B1pbfnH5SSEB8oLAFhRZrk8LQ+bpIZ4I7pcXt8eUwez4z6FZMSdx+bvoz3cQTUODkC8j 7B3cNGaLu2lT/LCaemapRmiQMJ9tY+8ooQ8w6RToM+XkhnAOeVrUbyVv9RNUpncY5hlx rup9xslcQAlyQA7gUG+zLjLKbygRi9fQwqJKWuZd1A+HN+Gx5AvfKmuJF1zTuFmfD9L/ mpoQ== Received: by 10.50.193.196 with SMTP id hq4mr3269679igc.57.1340167622060; Tue, 19 Jun 2012 21:47:02 -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.24.148 with SMTP id v20csp160933ibb; Tue, 19 Jun 2012 21:47:01 -0700 (PDT) Received: by 10.68.221.106 with SMTP id qd10mr73256835pbc.42.1340167621174; Tue, 19 Jun 2012 21:47:01 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id vh4si21248839pbc.353.2012.06.19.21.47.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 21:47:01 -0700 (PDT) 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 mail-pz0-f50.google.com with SMTP id h15so10656576dan.37 for ; Tue, 19 Jun 2012 21:47:01 -0700 (PDT) Received: by 10.68.211.41 with SMTP id mz9mr71288230pbc.12.1340167620940; Tue, 19 Jun 2012 21:47:00 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wk3sm30459022pbc.21.2012.06.19.21.46.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 21:47:00 -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][Resend] ARM: EXYNOS: Add HSOTG support to SMDK4X12 Date: Wed, 20 Jun 2012 10:05:17 +0530 Message-Id: <1340166917-25657-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1340166917-25657-1-git-send-email-sachin.kamat@linaro.org> References: <1340166917-25657-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmaUPVY7MZQQkOM3EEv6/HOf7o8lcZKL4FbEBUb4dCt//krXIywWuJBLGTpOsfimktfQAUR S3C-HSOTG support is added to SMDK4212 and SMDK4412 boards. Signed-off-by: Sachin Kamat --- Based on v3.5-for-usb-2 branch of Kukjin's tree --- arch/arm/mach-exynos/Kconfig | 2 ++ arch/arm/mach-exynos/mach-smdk4x12.c | 7 +++++++ 2 files changed, 9 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..91fbdea 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,8 @@ 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); + platform_add_devices(smdk4x12_devices, ARRAY_SIZE(smdk4x12_devices)); }