From patchwork Thu May 24 08:55:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8941 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 020C423F04 for ; Thu, 24 May 2012 09:05:59 +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 C6648A18493 for ; Thu, 24 May 2012 09:05:58 +0000 (UTC) Received: by yhpp61 with SMTP id p61so9139509yhp.11 for ; Thu, 24 May 2012 02:05:58 -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=blVuMYnhlqB5YjMEqwuLAJ4VY2+C1IoKS9JStW/oivY=; b=EDH3bs++J65NSTSwBKdHX8mAgWdNKYEhn8J/iVXjGz/jGT6c/O3ETrMXOF0R/+ZtOp j6nRe1pQ0c4k5W8D918DeCfNBT8tNsc4pHOomOePIRUWOVFkgpRMtoARRRBB3umqJTJS LoBzs31eT6tXQJQtXn4+F85wf/46STZjAqu1Mcn2qall/CxiTR8ONnYZy5qaUNaAA+AR 7JPZp8zTPs1peethQ4wSvVnucwp0Z+33q3WImO3+XgqviLLuCe5Mm4bzQy/HQ5xGq1Lb CB6NFLDsqB/9xMUPPiri/no6yevVrkSmxlwrDKK9hv092F4qRJTeB8maAcq54pofvG4O 9lkw== Received: by 10.50.154.169 with SMTP id vp9mr15438031igb.53.1337850357988; Thu, 24 May 2012 02:05:57 -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 o8csp24087ibd; Thu, 24 May 2012 02:05:57 -0700 (PDT) Received: by 10.68.204.165 with SMTP id kz5mr12101280pbc.80.1337850356991; Thu, 24 May 2012 02:05:56 -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 op2si442416pbc.106.2012.05.24.02.05.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 02:05:56 -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 rr4so13172920pbb.37 for ; Thu, 24 May 2012 02:05:56 -0700 (PDT) Received: by 10.68.217.138 with SMTP id oy10mr19482273pbc.30.1337850356726; Thu, 24 May 2012 02:05:56 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id u5sm4813662pbu.76.2012.05.24.02.05.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 02:05:56 -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 2/2] ARM: EXYNOS: Add HSOTG support to SMDK4X12 Date: Thu, 24 May 2012 14:25:26 +0530 Message-Id: <1337849726-17744-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1337849726-17744-1-git-send-email-sachin.kamat@linaro.org> References: <1337849726-17744-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmzHJukTWRuuzDzpBmb2ltWuQbBGpypTgwm6WICvh7Cg4sp+asyGUL1DRsOSw9Ek7apjyD2 S3C-HSOTG support is added to SMDK4212 and SMDK4412 boards. Signed-off-by: Sachin Kamat --- 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)); }