From patchwork Wed Dec 21 08:55:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 5923 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 C6604242F7 for ; Wed, 21 Dec 2011 08:59:00 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id B8CF7A188F7 for ; Wed, 21 Dec 2011 08:59:00 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id c11so4312093eaa.11 for ; Wed, 21 Dec 2011 00:59:00 -0800 (PST) Received: by 10.205.141.78 with SMTP id jd14mr1803188bkc.107.1324457940524; Wed, 21 Dec 2011 00:59:00 -0800 (PST) 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.205.82.144 with SMTP id ac16cs33645bkc; Wed, 21 Dec 2011 00:59:00 -0800 (PST) Received: by 10.42.29.137 with SMTP id r9mr5728602icc.20.1324457936876; Wed, 21 Dec 2011 00:58:56 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id o10si2426347icv.72.2011.12.21.00.58.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Dec 2011 00:58:56 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by iagf6 with SMTP id f6so13980813iag.37 for ; Wed, 21 Dec 2011 00:58:56 -0800 (PST) Received: by 10.42.244.137 with SMTP id lq9mr5751430icb.28.1324457936262; Wed, 21 Dec 2011 00:58:56 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wp7sm6739043igc.6.2011.12.21.00.58.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Dec 2011 00:58:55 -0800 (PST) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, jg1.han@samsung.com, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH] ARM: EXYNOS: Add USB OHCI support to ORIGEN board Date: Wed, 21 Dec 2011 14:25:52 +0530 Message-Id: <1324457752-26056-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 Signed-off-by: Tushar Behera Signed-off-by: Angus Ainslie Acked-by: Jingoo Han --- This patch are based Kukjin's for-next branch and OHCI related patches from Jingoo Han. [PATCH v2 0/3] Support Samsung Exynos OHCI device and driver arch/arm/mach-exynos/Kconfig | 1 + arch/arm/mach-exynos/mach-origen.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index bd1bb9f1..0da2ced 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -304,6 +304,7 @@ config MACH_ORIGEN select SAMSUNG_DEV_PWM select EXYNOS4_DEV_DMA select EXYNOS4_DEV_PD + select EXYNOS4_DEV_USB_OHCI select EXYNOS4_SETUP_FIMD0 select EXYNOS4_SETUP_SDHCI select EXYNOS4_SETUP_USB_PHY diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index f56d027..a0116036 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -42,6 +42,7 @@ #include #include +#include #include /* Following are default values for UCON, ULCON and UFCON UART registers */ @@ -487,6 +488,16 @@ static void __init origen_ehci_init(void) s5p_ehci_set_platdata(pdata); } +/* USB OHCI */ +static struct exynos4_ohci_platdata origen_ohci_pdata; + +static void __init origen_ohci_init(void) +{ + struct exynos4_ohci_platdata *pdata = &origen_ohci_pdata; + + exynos4_ohci_set_platdata(pdata); +} + static struct gpio_keys_button origen_gpio_keys_table[] = { { .code = KEY_MENU, @@ -627,6 +638,7 @@ static struct platform_device *origen_devices[] __initdata = { &s5p_device_mfc_l, &s5p_device_mfc_r, &s5p_device_mixer, + &exynos4_device_ohci, &exynos4_device_pd[PD_LCD0], &exynos4_device_pd[PD_TV], &exynos4_device_pd[PD_G3D], @@ -702,6 +714,7 @@ static void __init origen_machine_init(void) s3c_sdhci0_set_platdata(&origen_hsmmc0_pdata); origen_ehci_init(); + origen_ohci_init(); clk_xusbxti.rate = 24000000; s5p_tv_setup();