From patchwork Wed Jun 20 05:28:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9463 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 2B78923E4F for ; Wed, 20 Jun 2012 05:40:35 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id EA416A18089 for ; Wed, 20 Jun 2012 05:40:34 +0000 (UTC) Received: by yhpp61 with SMTP id p61so5953738yhp.11 for ; Tue, 19 Jun 2012 22:40:34 -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=+UzjIu106kxPoy0HdTWqWpSVG/d2gu6ftKbtvucBrp4=; b=NNNnQ2Z85oWoy7onbU0FmNOQ15wpK+MvEP79o+n+ZDSTTx+CsPV2a4Ugcv1/gdettX Eqzz34VETgxDzVKKLLZrL0IX+Q1LwY3jynaOkEEXTiJDuzXFWiSe100ToA0wCasxUVnc Sgnm0q7BVieFasK5QYq+Zh/d+ysfaAQHXPKhGrR9eBlw9mSRLMvaeSSuXdkOuukD91Ar IZAGJQiH6LY/SgpuH0uujJWNDwYhlnWs6oa88OFSKH5ayeNbB94Dv6/jcpFiTRflZ1NO X7r9IW7DBWtLTRGG4yoWoAfeoKYeYC/aOUR4KXlyYsY8QPRxHBr+zZ3nDDZv14qps1aa mQlQ== Received: by 10.50.87.227 with SMTP id bb3mr3346277igb.57.1340170834018; Tue, 19 Jun 2012 22:40:34 -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 v20csp162593ibb; Tue, 19 Jun 2012 22:40:33 -0700 (PDT) Received: by 10.68.232.103 with SMTP id tn7mr71897607pbc.86.1340170833301; Tue, 19 Jun 2012 22:40:33 -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 rn8si27678545pbc.157.2012.06.19.22.40.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 22:40:33 -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 danh15 with SMTP id h15so10720502dan.37 for ; Tue, 19 Jun 2012 22:40:33 -0700 (PDT) Received: by 10.68.130.9 with SMTP id oa9mr71523463pbb.95.1340170833046; Tue, 19 Jun 2012 22:40:33 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id hf5sm22973776pbc.4.2012.06.19.22.40.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 22:40:32 -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: S5PV210: Add HSOTG support to SMDKV210 Date: Wed, 20 Jun 2012 10:58:52 +0530 Message-Id: <1340170132-30136-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkFuUASbuQNvMhzrSvtf1VgXuODKPFOp4dl6hGIv1QqEImzG2zkuFJVTD238BMOGAwnl91m Adds S3C-HSOTG support to SMDKV210 board. Signed-off-by: Sachin Kamat --- Based on Kukjin's tree - v3.5-for-usb-2 branch --- arch/arm/mach-s5pv210/Kconfig | 2 ++ arch/arm/mach-s5pv210/mach-smdkv210.c | 9 +++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 88e983b..77185c3 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig @@ -152,6 +152,7 @@ config MACH_SMDKV210 select S3C_DEV_I2C1 select S3C_DEV_I2C2 select S3C_DEV_RTC + select S3C_DEV_USB_HSOTG select S3C_DEV_WDT select S5P_DEV_FIMC0 select S5P_DEV_FIMC1 @@ -170,6 +171,7 @@ config MACH_SMDKV210 select S5PV210_SETUP_IDE select S5PV210_SETUP_KEYPAD select S5PV210_SETUP_SDHCI + select S5PV210_SETUP_USB_PHY help Machine support for Samsung SMDKV210 diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 91d4ad8..c7a6e49 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -47,6 +48,7 @@ #include #include #include +#include #include "common.h" @@ -210,6 +212,9 @@ static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = { .setup_gpio = s5pv210_fb_gpio_setup_24bpp, }; +/* USB OTG */ +static struct s3c_hsotg_plat smdkv210_hsotg_pdata; + static struct platform_device *smdkv210_devices[] __initdata = { &s3c_device_adc, &s3c_device_cfcon, @@ -223,6 +228,7 @@ static struct platform_device *smdkv210_devices[] __initdata = { &s3c_device_i2c2, &s3c_device_rtc, &s3c_device_ts, + &s3c_device_usb_hsotg, &s3c_device_wdt, &s5p_device_fimc0, &s5p_device_fimc1, @@ -321,6 +327,9 @@ static void __init smdkv210_machine_init(void) samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data); + s3c_hsotg_set_platdata(&smdkv210_hsotg_pdata); + clk_xusbxti.rate = 24000000; + platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); }