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

randy lxr1234 at hotmail.com
Fri Dec 6 18:02:05 CET 2013


sorry, I sent attach git format-patch directly, it cause the mistake
mail, the patch is below.
The SPL(bl2) is still the old one from manufacturer, as I don't know how
to build a new one.
I don't know much debug method, the how to use JTAG of it. Could anyone
teach me some of it?
Thanks.
[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");
-- 1.8.4.rc3


More information about the U-Boot mailing list