aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Benard2013-04-22 00:54:59 -0500
committerTom Rini2013-05-10 07:25:56 -0500
commit81ac7e51ccf2984e9c0964a883d6b7e8fe875aad (patch)
tree3b1ba5d0cea874ef4f798090b03d60b77d481f0d
parent0b800a6b267de24466ca5a463db6497d7362f128 (diff)
downloadu-boot-81ac7e51ccf2984e9c0964a883d6b7e8fe875aad.tar.gz
u-boot-81ac7e51ccf2984e9c0964a883d6b7e8fe875aad.tar.xz
u-boot-81ac7e51ccf2984e9c0964a883d6b7e8fe875aad.zip
da850: provide davinci_enable_uart0
this is needed to bring UART0 out of reset but this function currently only exists for dm644x/355/365/646x when da850 (at least am1808 also need it). Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
-rw-r--r--arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c8
-rw-r--r--arch/arm/include/asm/arch-davinci/hardware.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c b/arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
index ff2e2e33df..127beb86bc 100644
--- a/arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
+++ b/arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
@@ -32,6 +32,14 @@
32#include <asm/arch/emif_defs.h> 32#include <asm/arch/emif_defs.h>
33#include <asm/arch/pll_defs.h> 33#include <asm/arch/pll_defs.h>
34 34
35void davinci_enable_uart0(void)
36{
37 lpsc_on(DAVINCI_LPSC_UART0);
38
39 /* Bringup UART0 out of reset */
40 REG(UART0_PWREMU_MGMT) = 0x00006001;
41}
42
35#if defined(CONFIG_SYS_DA850_PLL_INIT) 43#if defined(CONFIG_SYS_DA850_PLL_INIT)
36void da850_waitloop(unsigned long loopcnt) 44void da850_waitloop(unsigned long loopcnt)
37{ 45{
diff --git a/arch/arm/include/asm/arch-davinci/hardware.h b/arch/arm/include/asm/arch-davinci/hardware.h
index 6eed6c95a7..a9017e4683 100644
--- a/arch/arm/include/asm/arch-davinci/hardware.h
+++ b/arch/arm/include/asm/arch-davinci/hardware.h
@@ -346,6 +346,8 @@ void davinci_errata_workarounds(void);
346#define PSC_PSC0_MODULE_ID_CNT 16 346#define PSC_PSC0_MODULE_ID_CNT 16
347#define PSC_PSC1_MODULE_ID_CNT 32 347#define PSC_PSC1_MODULE_ID_CNT 32
348 348
349#define UART0_PWREMU_MGMT (0x01c42030)
350
349struct davinci_psc_regs { 351struct davinci_psc_regs {
350 dv_reg revid; 352 dv_reg revid;
351 dv_reg rsvd0[71]; 353 dv_reg rsvd0[71];