From patchwork Thu May 17 11:54:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8723 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 7866823EAB for ; Thu, 17 May 2012 12:04:32 +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 4634DA18B34 for ; Thu, 17 May 2012 12:04:32 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so2020953yen.11 for ; Thu, 17 May 2012 05:04:32 -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=vc7NbHEJ7fHCyNa2+XG77PqQq0y/v2hSdZbaD5+7ORc=; b=R0/CQXdu/867SYf/+AUMWdZGbZyu9qhgMqbLS5UROxOMVa01fIqi3av9BV+ff2/N2U L5Gff/fYr3kRkD8ZfA9EPDpb4GI2lpWWNjRDb/AxW/Uuk6jPIFezhg/+adUt9zg1Mz7r hckBH8TDuIkm8g1Fd9UtVuPazU/YALPYlt6zxRzIy7M3dwF628KcSl3/UWXNrE2rwsux alndj0+VWA2CjBUcUMvDeTBFXvdaJsegvz5rQwuY7N7M9E7wUUS27XT6rHIA6hDGsbOw 8yVeYCIbnH5JnFnRbjkQ+CPeTBF9HSSd2aT9vgAW7OEnNR/25UF/sO1f9LNhMANn6GMU PN3Q== Received: by 10.50.163.99 with SMTP id yh3mr4905982igb.53.1337256271891; Thu, 17 May 2012 05:04:31 -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 o8csp23156ibd; Thu, 17 May 2012 05:04:31 -0700 (PDT) Received: by 10.68.220.98 with SMTP id pv2mr27189575pbc.117.1337256271251; Thu, 17 May 2012 05:04:31 -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 o4si11148364pbi.55.2012.05.17.05.04.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 05:04:31 -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 mail-pb0-f50.google.com with SMTP id rr4so2961477pbb.37 for ; Thu, 17 May 2012 05:04:31 -0700 (PDT) Received: by 10.68.226.5 with SMTP id ro5mr27382293pbc.74.1337256271026; Thu, 17 May 2012 05:04:31 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id py6sm8933595pbc.13.2012.05.17.05.04.28 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 05:04:30 -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 3/3] ARM: S5PV210: Add HSOTG support to SMDKV210 Date: Thu, 17 May 2012 17:24:15 +0530 Message-Id: <1337255655-10633-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1337255655-10633-1-git-send-email-sachin.kamat@linaro.org> References: <1337255655-10633-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQnn2X6gZXYri59rnbDjyfr/glEB0vYJ4r1TKd7gJqjUSWC43Dp4qPhro9BlxbJV9uF8kfZE Adds S3C-HSOTG support to SMDKV210 board. Signed-off-by: Sachin Kamat --- arch/arm/mach-s5pv210/Kconfig | 2 ++ arch/arm/mach-s5pv210/mach-smdkv210.c | 8 ++++++++ 2 files changed, 10 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..0041045 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 @@ -210,6 +211,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 +227,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 +326,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)); }