From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/9 V2] EXYNOS5 : Modify pinnumx settings as per Exynos5250 Rev 1.0
Date: Wed, 20 Jun 2012 20:58:37 +0900 [thread overview]
Message-ID: <4FE1BAED.3080102@samsung.com> (raw)
In-Reply-To: <1340190715-23648-3-git-send-email-rajeshwari.s@samsung.com>
Hi Rajeshwari,
On 06/20/2012 08:11 PM, Rajeshwari Shinde wrote:
> This patch modifies the pinmux settings of MMC and UART as per
> Exynos5250 Rev 1.0
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
> Chnages in V2:
> - None
> arch/arm/cpu/armv7/exynos/pinmux.c | 18 +++++++++---------
> 1 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c
> index d2b7d2c..7611c7a 100644
> --- a/arch/arm/cpu/armv7/exynos/pinmux.c
> +++ b/arch/arm/cpu/armv7/exynos/pinmux.c
> @@ -40,8 +40,8 @@ static void exynos5_uart_config(int peripheral)
> count = 4;
> break;
> case PERIPH_ID_UART1:
> - bank = &gpio1->a0;
> - start = 4;
> + bank = &gpio1->d0;
> + start = 0;
> count = 4;
> break;
> case PERIPH_ID_UART2:
> @@ -66,25 +66,25 @@ static int exynos5_mmc_config(int peripheral, int flags)
> struct exynos5_gpio_part1 *gpio1 =
> (struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1();
> struct s5p_gpio_bank *bank, *bank_ext;
> - int i;
> + int i, start;
>
> switch (peripheral) {
> case PERIPH_ID_SDMMC0:
> bank = &gpio1->c0;
> bank_ext = &gpio1->c1;
> + start = 0;
> break;
> case PERIPH_ID_SDMMC1:
> - bank = &gpio1->c1;
> + bank = &gpio1->c2;
> bank_ext = NULL;
> break;
> case PERIPH_ID_SDMMC2:
> - bank = &gpio1->c2;
> - bank_ext = &gpio1->c3;
> - break;
> - case PERIPH_ID_SDMMC3:
> bank = &gpio1->c3;
> bank_ext = NULL;
> break;
if SDMMC2 is supported 8BIT_MODE. Need gpio1->c4,
> + case PERIPH_ID_SDMMC3:
> + debug("SDMMC3 not supported yet");
> + return -1;
> }
> if ((flags & PINMUX_FLAG_8BIT_MODE) && !bank_ext) {
> debug("SDMMC device %d does not support 8bit mode",
> @@ -92,7 +92,7 @@ static int exynos5_mmc_config(int peripheral, int flags)
> return -1;
> }
> if (flags & PINMUX_FLAG_8BIT_MODE) {
> - for (i = 3; i <= 6; i++) {
> + for (i = start; i <= (start + 3); i++) {
> s5p_gpio_cfg_pin(bank_ext, i, GPIO_FUNC(0x3));
At EVT1, i known GPIO_FUNC(0x3) is wrong.
> s5p_gpio_set_pull(bank_ext, i, GPIO_PULL_UP);
> s5p_gpio_set_drv(bank_ext, i, GPIO_DRV_4X);
next prev parent reply other threads:[~2012-06-20 11:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 11:11 [U-Boot] [PATCH 6/9 V2] Exynos5: DDR3: Adding the DDR3 memory setup for Exynos5250 Rev 1.0 Rajeshwari Shinde
2012-06-20 11:11 ` [U-Boot] [PATCH 7/9 V2] EXYNOS5: CLOCK: Modify MPLL clock out " Rajeshwari Shinde
2012-06-26 7:02 ` Minkyu Kang
2012-06-20 11:11 ` [U-Boot] [PATCH 8/9 V2] EXYNOS5 : Modify pinnumx settings as per " Rajeshwari Shinde
2012-06-20 11:58 ` Jaehoon Chung [this message]
2012-06-20 12:12 ` Rajeshwari Birje
2012-06-20 11:11 ` [U-Boot] [PATCH 9/9 V2] SMDK5250: Enable UART and MMC for " Rajeshwari Shinde
2012-06-26 7:05 ` Minkyu Kang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE1BAED.3080102@samsung.com \
--to=jh80.chung@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.