summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Ribeiro <mauro.ribeiro@hardkernel.com>2014-02-14 05:36:20 +0400
committerMauro Ribeiro <mauro.ribeiro@hardkernel.com>2014-02-14 05:36:20 +0400
commit77c4cdcbb08b95bec0019c66664a99d68285b7b5 (patch)
tree0bf4c5effd615c09e586668a385f82fd20adbbc3
parent0daacc62c9024fe0c908e03d84e95c2a55bef89b (diff)
parent89f2ab95e7304fe02e5267f1282fbc178550d528 (diff)
downloadu-boot-77c4cdcbb08b95bec0019c66664a99d68285b7b5.tar.xz
Merge branch 'odroid-v2010.12' of github.com:hardkernel/u-boot into odroid-v2010.12
-rw-r--r--drivers/usb/host/ehci-exynos.c9
-rw-r--r--include/env_default.h1
2 files changed, 8 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index 379c32a3f3..23f7beff86 100644
--- a/drivers/usb/host/ehci-exynos.c
+++ b/drivers/usb/host/ehci-exynos.c
@@ -217,17 +217,22 @@ u32 phypwr, phyclk, rstcon, a;
void usb_hub_init () {
u32 a, val, i2c_dat;
-
+ int clk_inv;
+
#define GPX3BASE ((void *) (0x11000C60))
/* Start */
gpio_direction_output(GPX3BASE, 5, 0);
gpio_set_value(GPX3BASE, 5, 0);
mdelay(10);
+
+ clk_inv = getenv_yesno("usb_invert_clken");
+ printf("usb: usb_refclk_enable is active low: %s\n", clk_inv ? "NO" : "YES");
+ printf("ProTIP: If usb doesn't work - try playing with 'usb_invert_clken' environment\n");
/* RefCLK 24MHz */
gpio_direction_output(GPX3BASE, 0, 0);
- gpio_set_value(GPX3BASE, 0, 0);
+ gpio_set_value(GPX3BASE, 0, clk_inv);
mdelay(10);
gpio_direction_output(GPX3BASE, 4, 0);
diff --git a/include/env_default.h b/include/env_default.h
index a81f66ceca..5936c85267 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -27,6 +27,7 @@ const unsigned char default_environment[] = {
"default_bootcmd=echo >>> Run Default Bootcmd <<<;movi read kernel 0 40008000;movi read rootfs 0 41000000 100000;bootm 40008000 41000000\0"
"loadbootscript_1=echo >>> Load Boot Script from mmc 0:1 <<<;fatload mmc 0:1 40008000 boot.scr\0"
"loadbootscript_2=echo >>> Load Boot Script from mmc 0:2 <<<;fatload mmc 0:2 40008000 boot.scr\0"
+ "usb_invert_clken=0\0"
#endif
#ifdef CONFIG_ENV_CALLBACK_LIST_DEFAULT