From patchwork Thu Jun 21 04:21:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9529 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 A0AD023E4F for ; Thu, 21 Jun 2012 04:33:42 +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 638ADA18371 for ; Thu, 21 Jun 2012 04:33:42 +0000 (UTC) Received: by ggnf1 with SMTP id f1so156035ggn.11 for ; Wed, 20 Jun 2012 21:33:41 -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=GWyOQIo+V/Uqmsrcg0WiXaJ4SVn2Dmks4yxWlDHToPY=; b=Ce3MRGu0DoD5qYMGRDgdtJqBgcJmzqtzy2JMWKkxp/8CNLL2NvbIxYr5d6FUu7q2sm GFComhooW8q6h6ITMZ34Q/OxH2k4j+av+/1yVIl7QnZAt+ZgYvkSJ35xEPzLKjLVow34 3AgPakAmK0+OcQE8PUf9JU99PzLXDMUjqxugB/2TnpIlBOgyM5Vsl6WDQ/jXOX49LQIR VxNTYUkhZLvPn3pBACGmlMd81gneNLs4AvnXMhEwmKZB+sxansz2i7ElAwQWu6PDfqt/ FubcSOeD9023L222R6s+t+/RrnC3HN17M6Y23+KbZii61N+yOakvFGYniRnrw1u3zZQp 6mng== Received: by 10.42.210.193 with SMTP id gl1mr12075061icb.57.1340253221664; Wed, 20 Jun 2012 21:33:41 -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 v20csp2606ibb; Wed, 20 Jun 2012 21:33:41 -0700 (PDT) Received: by 10.68.190.40 with SMTP id gn8mr85091493pbc.118.1340253220771; Wed, 20 Jun 2012 21:33:40 -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 pv10si3228202pbb.154.2012.06.20.21.33.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 21:33:40 -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 rr4so1824005pbb.37 for ; Wed, 20 Jun 2012 21:33:39 -0700 (PDT) Received: by 10.68.222.38 with SMTP id qj6mr83987304pbc.6.1340253219812; Wed, 20 Jun 2012 21:33:39 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pg3sm34452538pbc.2.2012.06.20.21.33.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jun 2012 21:33:38 -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][Resend] ARM: EXYNOS: Add HSOTG support to SMDK4X12 Date: Thu, 21 Jun 2012 09:51:55 +0530 Message-Id: <1340252515-15999-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkzzkEqc3XewAPAFPC0YOKHprd8Ye38xwnYsrI067idSje9fUlL/c25ZCbLHWFZH225TtFJ S3C-HSOTG support is added to SMDK4212 and SMDK4412 boards. Signed-off-by: Sachin Kamat --- Rebased on Kukjin Kim's tree -next/board-samsung branch. --- 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 f5fb6ea..ee8fa10 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -362,6 +362,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 S5P_DEV_FIMC0 select S5P_DEV_FIMC1 @@ -378,6 +379,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 e134c95..61abbc4 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 @@ -236,6 +237,9 @@ static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = { .cols = 8, }; +/* USB OTG */ +static struct s3c_hsotg_plat smdk4x12_hsotg_pdata; + static struct platform_device *smdk4x12_devices[] __initdata = { &s3c_device_hsmmc2, &s3c_device_hsmmc3, @@ -244,6 +248,7 @@ static struct platform_device *smdk4x12_devices[] __initdata = { &s3c_device_i2c3, &s3c_device_i2c7, &s3c_device_rtc, + &s3c_device_usb_hsotg, &s3c_device_wdt, &s5p_device_fimc0, &s5p_device_fimc1, @@ -295,6 +300,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)); }