]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-arm
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 8 Feb 2010 03:13:35 +0000 (12:13 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 8 Feb 2010 03:13:35 +0000 (12:13 +0900)
board/edb93xx/early_udelay.h
board/edb93xx/edb93xx.c
include/asm-arm/arch-ep93xx/ep93xx.h

index 3b26b3f16cd7c60358c5cbfc0fc825e33ecb500a..185283d98dca4e3cfa0114036adde2cc8785ec0c 100644 (file)
@@ -26,7 +26,7 @@
 static inline void early_udelay(uint32_t usecs)
 {
        /* loop takes 4 cycles at 5.0ns (fastest case, running at 200MHz) */
-       register uint32_t loops = (usecs * 1000) / 20;
+       register uint32_t loops = usecs * (1000 / 20);
 
        __asm__ volatile ("1:\n"
                        "subs %0, %1, #1\n"
index 4df2246bd70f822a4b28406b19a51278fe6a2e62..dde30ffdc23d84edcd1c3aa2be084a065e716a2c 100644 (file)
@@ -64,6 +64,12 @@ int board_init(void)
        value |= SYSCON_PWRCNT_UART_BAUD;
        writel(value, &syscon->pwrcnt);
 
+       /* Enable the uart in devicecfg */
+       value = readl(&syscon->devicecfg);
+       value |= 1<<18 /* U1EN */;
+       writel(0xAA, &syscon->sysswlock);
+       writel(value, &syscon->devicecfg);
+
        /* Machine number, as defined in linux/arch/arm/tools/mach-types */
        gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
 
index 6cafe54fbe46a338a1b4ef4f706b1aaae1af7c9e..806557a50ea27190890ed7a455453c741bb18fb4 100644 (file)
@@ -558,8 +558,9 @@ struct syscon_regs {
        uint32_t i2sclkdiv;
        uint32_t keytchclkdiv;
        uint32_t chipid;
+       uint32_t reserved4;
        uint32_t syscfg;
-       uint32_t reserved4[8];
+       uint32_t reserved5[8];
        uint32_t sysswlock;
 };
 #else