From patchwork Fri Nov 23 12:32:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: p.paneri@samsung.com X-Patchwork-Id: 1795261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 596973FC64 for ; Fri, 23 Nov 2012 12:26:19 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbsI6-0004Ga-EE; Fri, 23 Nov 2012 12:23:30 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbsHz-0004Fe-SB for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 12:23:28 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDX00IMIX2KXA10@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 21:23:21 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6B.65.12699.9BA6FA05; Fri, 23 Nov 2012 21:23:21 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-27-50af6ab9f389 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4A.65.12699.9BA6FA05; Fri, 23 Nov 2012 21:23:21 +0900 (KST) Received: from matrix.sisodomain.com ([107.108.73.199]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDX00FDOWXRAT40@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2012 21:23:21 +0900 (KST) From: Praveen Paneri To: linux-samsung-soc@vger.kernel.org Subject: [PATCH v9 1/3] ARM: S3C64XX: Enabling samsung-usbphy driver Date: Fri, 23 Nov 2012 18:02:30 +0530 Message-id: <1353673952-13537-2-git-send-email-p.paneri@samsung.com> X-Mailer: git-send-email 1.7.1 In-reply-to: <1353673952-13537-1-git-send-email-p.paneri@samsung.com> References: <1353673952-13537-1-git-send-email-p.paneri@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkWndn1voAg/tPlS02Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGuYNH2Aquu1TMPn6ZvYHxuFUXIyeHhICJRN/SE8wQtpjEhXvr 2boYuTiEBJYySjQc/sAOU9T/aDkjRGI6o0Tn9OmsEM4GJonOvROBMhwcbALaEg0zjUAaRARU JT63LWAHqWEW+MUkce/DVLBJwgIuEssmzWUFsVmAir62v2MD6eUFip/fxwexTE5ix+onTCA2 p4CrxKvJsxlBbCGgkpmf3jJBtApIfJt8iAWkVUJAVmLTAWaQVRIC19kkjrW/ZIGYIylxcMUN lgmMwgsYGVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBIbg6X/PpHcwrmqwOMQowMGoxMNr WLYuQIg1say4MvcQowQHs5IIb7nf+gAh3pTEyqrUovz4otKc1OJDjD5Al0xklhJNzgfGR15J vKGxibmpsamlkZGZqSkOYSVx3maPlAAhgfTEktTs1NSC1CKYcUwcnFINjO5TuD/9/fIhq33n lvR2gU8pjr6bFP77fXutsPT1Xu0nc9kXdSdqrmZuXnommN/y2r22Epfj73veb5kZOGf6oy85 94UmHfn1MdRM0+Gxhdm8sBMfxM2fuBk9/Kn6TyR/YXNh1+vTdjmTdqUlZRbd/XtILEByz1ed 6LTpxn1a3ex2rczp2s0T+ZRYijMSDbWYi4oTAXcDBsRuAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xoO7OrPUBBrsahS02Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxrmDR9gKrrtUzD5+mb2B 8bhVFyMnh4SAiUT/o+WMELaYxIV769m6GLk4hASmM0p0Tp/OCuFsYJLo3DsRqIqDg01AW6Jh phFIg4iAqsTntgXsIDXMAr+YJO59mMoOkhAWcJFYNmkuK4jNAlT0tf0dG0gvL1D8/D4+iGVy EjtWP2ECsTkFXCVeTZ4NdoQQUMnMT2+ZJjDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yf u4kRHODPpHcwrmqwOMQowMGoxMNrWLYuQIg1say4MvcQowQHs5IIb7nf+gAh3pTEyqrUovz4 otKc1OJDjD5AR01klhJNzgdGX15JvKGxibmpsamliYWJmSUOYSVx3maPlAAhgfTEktTs1NSC 1CKYcUwcnFINjLMcjf3OqZ6bd2TOpH98xldvm5/sWWHr+T/wlnkc50OOpCShl22V0+67eKv9 1OX8qTV1R+8jfpf12u+OTNBzieD3TX8Zauk8pX0V3/0PtgrPFrIa7xEpPrxn5h31d34Buxkk tLKUDF9Pv7EwbuPOWY38vSesWWPmsN/qvLZ/70OtS1IGegfXnFFiKc5INNRiLipOBAB8H8Hi nQIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121123_072324_470391_ECCA4CDF X-CRM114-Status: GOOD ( 18.40 ) X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: l.majewski@samsung.com, kgene.kim@samsung.com, heiko@sntech.de, gregkh@linuxfoundation.org, devicetree-discuss@lists.ozlabs.org, broonie@opensource.wolfsonmicro.com, balbi@ti.com, grant.likely@secretlab.ca, kyungmin.park@samsung.com, thomas.abraham@linaro.org, gautam.vivek@samsung.com, ben-linux@fluff.org, t.figa@samsung.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Adding platform device for samsung-usbphy driver. Enabling it for s3c64xx based machines which are using s3c-hsotg. Signed-off-by: Praveen Paneri --- arch/arm/Kconfig | 1 + arch/arm/mach-s3c64xx/include/mach/map.h | 2 ++ arch/arm/mach-s3c64xx/mach-crag6410.c | 3 +++ arch/arm/mach-s3c64xx/mach-smartq.c | 3 +++ arch/arm/mach-s3c64xx/mach-smdk6410.c | 3 +++ arch/arm/mach-s3c64xx/setup-usb-phy.c | 15 +++++++++++++++ arch/arm/plat-samsung/Kconfig | 5 +++++ arch/arm/plat-samsung/devs.c | 24 ++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 1 + arch/arm/plat-samsung/include/plat/usb-phy.h | 2 ++ 10 files changed, 59 insertions(+), 0 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ade7e92..065f2a2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -773,6 +773,7 @@ config ARCH_S3C64XX select SAMSUNG_GPIOLIB_4BIT select SAMSUNG_IRQ_VIC_TIMER select USB_ARCH_HAS_OHCI + select SAMSUNG_DEV_USBPHY help Samsung S3C64XX series based systems diff --git a/arch/arm/mach-s3c64xx/include/mach/map.h b/arch/arm/mach-s3c64xx/include/mach/map.h index 8e2097b..dc482bb 100644 --- a/arch/arm/mach-s3c64xx/include/mach/map.h +++ b/arch/arm/mach-s3c64xx/include/mach/map.h @@ -65,6 +65,7 @@ #define S3C64XX_PA_NAND (0x70200000) #define S3C64XX_PA_FB (0x77100000) +#define S3C64XX_PA_USB_HSPHY (0x7C100000) #define S3C64XX_PA_USB_HSOTG (0x7C000000) #define S3C64XX_PA_WATCHDOG (0x7E004000) #define S3C64XX_PA_RTC (0x7E005000) @@ -113,6 +114,7 @@ #define S3C_PA_FB S3C64XX_PA_FB #define S3C_PA_USBHOST S3C64XX_PA_USBHOST #define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG +#define S3C_PA_USB_PHY S3C64XX_PA_USB_HSPHY #define S3C_PA_RTC S3C64XX_PA_RTC #define S3C_PA_WDT S3C64XX_PA_WATCHDOG #define S3C_PA_SPI0 S3C64XX_PA_SPI0 diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index 2abe95d..270529e 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c @@ -70,6 +70,7 @@ #include #include #include +#include #include "common.h" @@ -354,6 +355,7 @@ static struct platform_device wallvdd_device = { }; static struct platform_device *crag6410_devices[] __initdata = { + &samsung_device_usbphy, &s3c_device_hsmmc0, &s3c_device_hsmmc2, &s3c_device_i2c0, @@ -831,6 +833,7 @@ static void __init crag6410_machine_init(void) s3c_i2c0_set_platdata(&i2c0_pdata); s3c_i2c1_set_platdata(&i2c1_pdata); s3c_fb_set_platdata(&crag6410_lcd_pdata); + samsung_usbphy_set_pdata(&s3c_usbphy_pdata); s3c_hsotg_set_platdata(&crag6410_hsotg_pdata); i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0)); diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c index c6d7390..2f815f4 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq.c +++ b/arch/arm/mach-s3c64xx/mach-smartq.c @@ -37,6 +37,7 @@ #include #include #include +#include #include