From patchwork Mon Dec 3 13:18:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 13334 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 9DC6623E0D for ; Mon, 3 Dec 2012 13:13:52 +0000 (UTC) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) by fiordland.canonical.com (Postfix) with ESMTP id 07E02A19DCF for ; Mon, 3 Dec 2012 13:13:51 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id c12so4842501ieb.23 for ; Mon, 03 Dec 2012 05:13:51 -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=8LN3e44kO3NBQ/WrFDIoXOdU6qAQqEDAEeURoVmjOsA=; b=ZFM34IOAkCZLhCMMma73YnY+RVQk6NoCM8qUMG7Go7e9q5SUEOvJyyFN7CWTZRLxqP XF4WnWbW9MuqjHdVZd1NqmzIotF+QDRAEdUKLQgbcNqJWt34Fsp6eS7MJ9yUrzGHvyz4 slRBAKe3d/7fQiHon48cSjdM0ba6K7KPxN4OsHV4mZH7SrAHDIE2MFI4y0AaqWzgUjoG 4YHWH+bmhdmFCzgBOk4JvUdOE2mIyB7bJK7X38Yd3hmwU3E6+ggR/lxHYPxJEYiqfGdl 0+EXOHeK+vUfLpzMrry2ZRUHrLlwvs+X+fZJ8QWJZzgQQlDL0JEqfbZmSa6Pbu/IoKkR IZXw== Received: by 10.50.40.137 with SMTP id x9mr6094767igk.1.1354540431439; Mon, 03 Dec 2012 05:13:51 -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 n20csp139050igt; Mon, 3 Dec 2012 05:13:50 -0800 (PST) Received: by 10.68.203.72 with SMTP id ko8mr29108799pbc.78.1354540430408; Mon, 03 Dec 2012 05:13:50 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id o10si18758575paw.325.2012.12.03.05.13.49; Mon, 03 Dec 2012 05:13:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MEG00MQOI2HWB20@mailout2.samsung.com>; Mon, 03 Dec 2012 22:13:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D4.20.01231.D85ACB05; Mon, 03 Dec 2012 22:13:49 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-31-50bca58d211b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E3.20.01231.C85ACB05; Mon, 03 Dec 2012 22:13:48 +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:13:48 +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 1/2] EXYNOS5: Add pinmux for VBus Date: Mon, 03 Dec 2012 18:48:16 +0530 Message-id: <1354540697-4007-2-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+NgFrrPLMWRmVeSWpSXmKPExsWyRsSkWrd36Z4Ag4m32C0err/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlLHx3n73gG0/Fh7MzmRsYv3J1MXJySAiYSLyZsoYN whaTuHBvPZgtJLCUUWLHajaYmns/b0DFpzNKdHdodDFyAdkTmSQa7t9mB0mwCRhJbD05jRHE FhGQkPjVfxXMZhbIljh9rQmsRljAUOLXlntgg1gEVCXWL97NAmLzCrhL3Nq4gxVimYLEsalf wWxOAQ+JA3eageZwAC1zl2jdxQrRKiDxbfIhFpCwhICsxKYDzCDnSAjcZpOYu/YeM8QYSYmD K26wTGAUXsDIsIpRNLUguaA4KT3XUK84Mbe4NC9dLzk/dxMjMBRP/3smtYNxZYPFIUYBDkYl Ht6HX3YHCLEmlhVX5h5ilOBgVhLhdWvZEyDEm5JYWZValB9fVJqTWnyI0QfokonMUqLJ+cA4 ySuJNzQ2MTc1NrU0MjIzNcUhrCTO2+yREiAkkJ5YkpqdmlqQWgQzjomDU6qBUbHkYeHyCq7H 32fpyV697zv9tswFJ6NsNj4mh9Xvfpi7LFzotWbXtXevH1x8HtpXqfnQ4cgG5rUZtjwt7Cba AXcb6zcL3D+nuP1EhZfCj8bNUhfL9EM3RKQvlt40LaOasenov2K9rhUdxSVyYtyvJeJOtP93 /jh9TbhO8L1lop6SR/Z89gz5osRSnJFoqMVcVJwIADAOYnxyAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e+xoG7P0j0BBtM7jCwerr/JYjHl8BcW ByaPO9f2sAUwRjUw2mSkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4 BOi6ZeYAzVZSKEvMKQUKBSQWFyvp22GaEBripmsB0xih6xsSBNdjZIAGEtYwZix8d5+94BtP xYezM5kbGL9ydTFyckgImEjc+3mDDcIWk7hwbz2YLSQwnVGiu0Oji5ELyJ7IJNFw/zY7SIJN wEhi68lpjCC2iICExK/+q2A2s0C2xOlrTWA1wgKGEr+23AMbxCKgKrF+8W4WEJtXwF3i1sYd rBDLFCSOTf0KZnMKeEgcuNMMNIcDaJm7ROsu1gmMvAsYGVYxiqYWJBcUJ6XnGuoVJ+YWl+al 6yXn525iBIf6M6kdjCsbLA4xCnAwKvHwPvyyO0CINbGsuDL3EKMEB7OSCK9by54AId6UxMqq 1KL8+KLSnNTiQ4w+QEdNZJYSTc4HxmFeSbyhsYm5qbGppYmFiZklDmElcd5mj5QAIYH0xJLU 7NTUgtQimHFMHJxSDYzn8z/E/1iYOndKZcqX4Le3Zj6oreVcZ/u32r0l7fnj+ERfhkdcir7J tjGcLIw+j5/v2fM19NzPrp/mqbMVHL2Pv1/6bWsj386L8tZRkV/YX2ituHZoZgzXjtXyWwIV Fy2Z9E1Ghb/qD4uq84b1L+20pn+Tm3yQ+cLcsytO3C87r114zenbigUblFiKMxINtZiLihMB HMFGDKICAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmgeJzYHISivPLB1uLwD+yfrqwpFjIcrJZcMuyN5TrbHJNUt8Xt+5bdPf17uE3MG8f71mWd This patch sets pinmux for VBus of USB. Signed-off-by: Vivek Gautam Signed-off-by: Rajeshwari Shinde --- arch/arm/cpu/armv7/exynos/pinmux.c | 10 ++++++++++ arch/arm/include/asm/arch-exynos/periph.h | 1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c index f9f6911..d65ffc7 100644 --- a/arch/arm/cpu/armv7/exynos/pinmux.c +++ b/arch/arm/cpu/armv7/exynos/pinmux.c @@ -285,6 +285,14 @@ void exynos5_spi_config(int peripheral) } } +void exynos5_usb20_config(void) +{ + struct exynos5_gpio_part1 *gpio1 = + (struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1(); + /* Enable VBUS power switch */ + s5p_gpio_direction_output(&gpio1->x2,6, 1); +} + static int exynos5_pinmux_config(int peripheral, int flags) { switch (peripheral) { @@ -322,6 +330,8 @@ static int exynos5_pinmux_config(int peripheral, int flags) case PERIPH_ID_SPI4: exynos5_spi_config(peripheral); break; + case PERIPH_ID_USB20: + exynos5_usb20_config(); default: debug("%s: invalid peripheral %d", __func__, peripheral); return -1; diff --git a/arch/arm/include/asm/arch-exynos/periph.h b/arch/arm/include/asm/arch-exynos/periph.h index 783b77c..84593f6 100644 --- a/arch/arm/include/asm/arch-exynos/periph.h +++ b/arch/arm/include/asm/arch-exynos/periph.h @@ -46,6 +46,7 @@ enum periph_id { PERIPH_ID_SPI0 = 68, PERIPH_ID_SPI1, PERIPH_ID_SPI2, + PERIPH_ID_USB20, PERIPH_ID_SDMMC0 = 75, PERIPH_ID_SDMMC1, PERIPH_ID_SDMMC2,