]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
da850: provide davinci_enable_uart0
authorEric Benard <eric@eukrea.com>
Mon, 22 Apr 2013 05:54:59 +0000 (05:54 +0000)
committerTom Rini <trini@ti.com>
Fri, 10 May 2013 12:25:56 +0000 (08:25 -0400)
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>
arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
arch/arm/include/asm/arch-davinci/hardware.h

index ff2e2e33dff71f9857dc12d71945f8cb4926b0fa..127beb86bc24e65ee438f87c7e5677ee18a93995 100644 (file)
 #include <asm/arch/emif_defs.h>
 #include <asm/arch/pll_defs.h>
 
+void davinci_enable_uart0(void)
+{
+       lpsc_on(DAVINCI_LPSC_UART0);
+
+       /* Bringup UART0 out of reset */
+       REG(UART0_PWREMU_MGMT) = 0x00006001;
+}
+
 #if defined(CONFIG_SYS_DA850_PLL_INIT)
 void da850_waitloop(unsigned long loopcnt)
 {
index 6eed6c95a704b53fdb5f8d75aef9e63b55ef6aa2..a9017e4683e2c07e658965e5a8b636110467c692 100644 (file)
@@ -346,6 +346,8 @@ void davinci_errata_workarounds(void);
 #define PSC_PSC0_MODULE_ID_CNT         16
 #define PSC_PSC1_MODULE_ID_CNT         32
 
+#define UART0_PWREMU_MGMT              (0x01c42030)
+
 struct davinci_psc_regs {
        dv_reg  revid;
        dv_reg  rsvd0[71];