From patchwork Mon Dec 3 13:18:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 13335 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 3A5C323E0D for ; Mon, 3 Dec 2012 13:14:28 +0000 (UTC) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by fiordland.canonical.com (Postfix) with ESMTP id A733EA18381 for ; Mon, 3 Dec 2012 13:14:27 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id 16so4162799iea.26 for ; Mon, 03 Dec 2012 05:14:27 -0800 (PST) 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:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :dlp-filter:x-mtr:x-brightmail-tracker:x-brightmail-tracker :x-cfilter-loop:x-gm-message-state; bh=/fDxAi0APYkf60vLfH5SwqZ0BWDGWZSH8gE6hWFCirc=; b=e3r6+UGukZAPbMUBMU2pWlyhhaOv0GfVWHa69u0xv70BvwEtCpyUNkEwJEQWyX01CG Xp4zATZqnMRLJ1XbUdx2mVmabybAIgpu6zhDM2rQpR6Wib3JfuWXrXhClx0ZXAGc3bVb /TI7Yf7cXkSBiGNEMB564pmDemivmf27H3DCnhuTcGR0NqY8NNG5aCzM8aXnpv34ly1J 7QiIcvhoA+ZEjgzJb1QUBHIGC4hQwtVsITfAM7g9J3fHxfcbNBA4L50NlmbRWVLhIvl5 Giw9kzkqcEDrIhS+8VbT2/ulQ7rOYekmErvTHg2r5fEO9dUk/raAGakW4Ec+z6deDv0j s0KQ== Received: by 10.50.213.69 with SMTP id nq5mr5901393igc.70.1354540467101; Mon, 03 Dec 2012 05:14:27 -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.50.67.148 with SMTP id n20csp139142igt; Mon, 3 Dec 2012 05:14:26 -0800 (PST) Received: by 10.68.247.134 with SMTP id ye6mr28958344pbc.69.1354540466148; Mon, 03 Dec 2012 05:14:26 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id xj3si19222053pbc.202.2012.12.03.05.14.25; Mon, 03 Dec 2012 05:14:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MEG008O4I40NG20@mailout4.samsung.com>; Mon, 03 Dec 2012 22:14:24 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 36.30.01231.0B5ACB05; Mon, 03 Dec 2012 22:14:24 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-80-50bca5b0a301 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E5.30.01231.0B5ACB05; Mon, 03 Dec 2012 22:14:24 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MEG00ETCI075P90@mmp2.samsung.com>; Mon, 03 Dec 2012 22:14:24 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, marex@denx.de Subject: [PATCH 2/2] SMDK5250: Enable VBus for USB Date: Mon, 03 Dec 2012 18:48:17 +0530 Message-id: <1354540697-4007-3-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1354540697-4007-1-git-send-email-rajeshwari.s@samsung.com> References: <1354540697-4007-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWyRsSkWnfD0j0BBn+eKVk8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DK+PDoO2vBVo6KdfMeszQwfmHrYuTgkBAwkfj4gaeL kRPIFJO4cG89G4gtJLCUUeL9b0OYkg0daV2MXEDh6YwSW+f0MUE4E5kkji2+wgzSwCZgJLH1 5DRGEFtEQELiV/9VMJtZIFvi9LUmdhBbGKjm+PbvYDaLgKpE25FuRpAFvALuEpN2iUDcoCBx bOpXVhCbU8BD4sCdZrASIaCS1l2sEJ0CEt8mH2KBOE1WYtMBZpBrJARus0ns3X6JCWKMpMTB FTdYJjAKL2BkWMUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kRGIan/z2T2sG4ssHiEKMAB6MS D+/DL7sDhFgTy4orcw8xSnAwK4nwurXsCRDiTUmsrEotyo8vKs1JLT7E6AN0yURmKdHkfGCM 5JXEGxqbmJsam1oaGZmZmuIQVhLnbfZICRASSE8sSc1OTS1ILYIZx8TBKdXAmLuivMv1z4rC 2ODjh56nRHCqSO+s37xuz/dKqX11CV7Cv9uYXFZszXcQcpv8X0uppOFsRZzQxPdfRVXEluiG Nck/59l40oHVakZen7THxwVukW5bikSmbOK4/+wFR7eDTshWi4mVy1y3ZZk5LCk8nMjmUn7C 5PMHw3e/Hh8TbDZu2twQXCSgxFKckWioxVxUnAgAjIs2RnACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42I5/e+xoO6GpXsCDLr/iFk8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzPjw6DtrwVaO inXzHrM0MH5h62Lk4JAQMJHY0JHWxcgJZIpJXLi3HijMxSEkMJ1RYuucPiYIZyKTxLHFV5hB qtgEjCS2npzGCGKLCEhI/Oq/CmYzC2RLnL7WxA5iCwPVHN/+HcxmEVCVaDvSzQiyjFfAXWLS LhGIZQoSx6Z+ZQWxOQU8JA7caQYrEQIqad3FOoGRdwEjwypG0dSC5ILipPRcQ73ixNzi0rx0 veT83E2M4EB/JrWDcWWDxSFGAQ5GJR7eh192BwixJpYVV+YeYpTgYFYS4XVr2RMgxJuSWFmV WpQfX1Sak1p8iNEH6KaJzFKiyfnAKMwriTc0NjE3NTa1NLEwMbPEIawkztvskRIgJJCeWJKa nZpakFoEM46Jg1OqgVHWxGtlyTGPsHehYb7OMn/Lfzibik6Pm5k1+86aBccmXfOQOmnr9WM7 8+xTBTc6py+88XZ52edHvkKaOWpfl4eFHphZGNB8qpNjr8a/+c8v6l9eEO+6yu32P+MZlc1S 5ZsMHF5WJTQcO3at/NNnRm637+fOL1Fo+ip56o7Zuq/MnrOX/W3fIrZEiaU4I9FQi7moOBEA NPp/QaECAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQnlMg1UntZ8qYKB+r9bPb0f+11DP7elzewVf6ExG0YNaaWIOtFhEy/f5wMtAINsvsVpYgqC This patch enables Vbus required for USB. Signed-off-by: Vivek Gautam Signed-off-by: Rajeshwari Shinde --- board/samsung/smdk5250/smdk5250.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 5ebc665..fb4c70e 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -63,6 +63,19 @@ void board_poll_devices(void) #endif } +int board_usb_vbus_init(void) +{ + int err; + err = exynos_pinmux_config(PERIPH_ID_USB20, PINMUX_FLAG_NONE); + if (err) { + debug("VBUS not configured\n"); + return err; + } + /* VBUS turn ON time */ + mdelay(3); + return 0; +} + int board_init(void) { gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); @@ -80,6 +93,10 @@ int board_init(void) #ifdef CONFIG_EXYNOS_SPI spi_init(); #endif + +#ifdef CONFIG_USB_EHCI_EXYNOS + board_usb_vbus_init(); +#endif return 0; }