Skip to content
Snippets Groups Projects
Commit 81ac7e51 authored by Eric Benard's avatar Eric Benard Committed by Tom Rini
Browse files

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: default avatarEric Bénard <eric@eukrea.com>
parent 0b800a6b
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,14 @@ ...@@ -32,6 +32,14 @@
#include <asm/arch/emif_defs.h> #include <asm/arch/emif_defs.h>
#include <asm/arch/pll_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) #if defined(CONFIG_SYS_DA850_PLL_INIT)
void da850_waitloop(unsigned long loopcnt) void da850_waitloop(unsigned long loopcnt)
{ {
......
...@@ -346,6 +346,8 @@ void davinci_errata_workarounds(void); ...@@ -346,6 +346,8 @@ void davinci_errata_workarounds(void);
#define PSC_PSC0_MODULE_ID_CNT 16 #define PSC_PSC0_MODULE_ID_CNT 16
#define PSC_PSC1_MODULE_ID_CNT 32 #define PSC_PSC1_MODULE_ID_CNT 32
#define UART0_PWREMU_MGMT (0x01c42030)
struct davinci_psc_regs { struct davinci_psc_regs {
dv_reg revid; dv_reg revid;
dv_reg rsvd0[71]; dv_reg rsvd0[71];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment