diff mbox

[U-Boot] I want to a board(tiny4412) for exyno4412, but I can't get any output

Message ID BLU0-SMTP111765626C248CB155C787ADD60@phx.gbl
State Not Applicable
Headers show

Commit Message

randy Dec. 6, 2013, 12:13 p.m. UTC
I may mistake the sdcard, in my board, the sdcard is connect
sd2(GPK2[0:6]), using the GPK2[2] as CDn.
But it still can't work. It don't light any LED at all(in my board, it
is the low power level of gpio which the led is connected to that light
the led).
diff mbox

Patch

==========================================================
From d83b3e370c01fbbdc5e287225ac725fffe01f6de Mon Sep 17 00:00:00 2001
From: ayaka <ayaka@mail.sumomo.pri>
Date: Fri, 6 Dec 2013 19:29:41 +0800
Subject: [PATCH] board: Fix mmc pins and remove some no use gpio.

In my board, the sdcard is in mmc2, and using sd2_cdn to detect.
---
 board/samsung/tiny4412/tiny4412.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/board/samsung/tiny4412/tiny4412.c
b/board/samsung/tiny4412/tiny4412.c
index 4f5bfbd..f969866 100644
--- a/board/samsung/tiny4412/tiny4412.c
+++ b/board/samsung/tiny4412/tiny4412.c
@@ -41,6 +41,8 @@  static void check_hw_revision(void)
 		s5p_gpio_cfg_pin(&gpio2->m1, i, GPIO_INPUT);

 	/* GPM1[5:2]: HW_REV[3:0] */
+	/*In my board, those pins are used for camera*/
+	/* GMP0[0:7] and GPM1[0:3] */
 	for (i = 2; i < 6; i++) {
 		s5p_gpio_cfg_pin(&gpio2->m1, i, GPIO_INPUT);
 		s5p_gpio_set_pull(&gpio2->m1, i, GPIO_PULL_NONE);
@@ -87,9 +89,7 @@  static void board_external_gpio_init(void)
 	 * if that pin set as input then that floated
 	 */

-	s5p_gpio_set_pull(&gpio2->x1, 5, GPIO_PULL_NONE);	/* IF_PMIC_IRQ*/
 	s5p_gpio_set_pull(&gpio2->x3, 5, GPIO_PULL_NONE);	/* OK_KEY */
-	s5p_gpio_set_pull(&gpio2->x3, 7, GPIO_PULL_NONE);	/* HDMI_HPD */
 }

 #ifdef CONFIG_SYS_I2C_INIT_BOARD
@@ -114,6 +114,7 @@  static void board_init_i2c(void)

 int board_early_init_f(void)
 {
+	/*pull up led*/
 	gpio2 = (struct exynos4x12_gpio_part2 *)EXYNOS4X12_GPIO_PART2_BASE;
 	s5p_gpio_cfg_pin(&gpio2->m4, 1, GPIO_INPUT);
 	s5p_gpio_set_pull(&gpio2->m4, 1, GPIO_PULL_NONE);
@@ -206,9 +207,9 @@  int board_mmc_init(bd_t *bis)

 	/*
 	 * Check the T-flash  detect pin
-	 * GPX3[4] T-flash detect pin
+	 * GPK2[2] T-flash detect pin
 	 */
-	if (!s5p_gpio_get_value(&gpio2->x3, 4)) {
+	if (!s5p_gpio_get_value(&gpio2->k2, 2)) {
 		err2 = exynos_pinmux_config(PERIPH_ID_SDMMC2, PINMUX_FLAG_NONE);
 		if (err2)
 			debug("SDMMC2 not configured\n");