mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-11 21:56:21 +09:00
davinci: fix dm644x buglets
Fix two buglets in the dm644x support: don't set two must-be-zero bits in the UART management register; and only include the I2C hooks if the I2C driver is being included. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
f79043681f
commit
bd36fdc146
|
@ -41,7 +41,7 @@ void davinci_enable_uart0(void)
|
||||||
lpsc_on(DAVINCI_LPSC_UART0);
|
lpsc_on(DAVINCI_LPSC_UART0);
|
||||||
|
|
||||||
/* Bringup UART0 out of reset */
|
/* Bringup UART0 out of reset */
|
||||||
REG(UART0_PWREMU_MGMT) = 0x0000e003;
|
REG(UART0_PWREMU_MGMT) = 0x00006001;
|
||||||
|
|
||||||
/* Enable UART0 MUX lines */
|
/* Enable UART0 MUX lines */
|
||||||
REG(PINMUX1) |= PINMUX1_UART0;
|
REG(PINMUX1) |= PINMUX1_UART0;
|
||||||
|
@ -62,6 +62,7 @@ void davinci_enable_emac(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DRIVER_DAVINCI_I2C
|
||||||
void davinci_enable_i2c(void)
|
void davinci_enable_i2c(void)
|
||||||
{
|
{
|
||||||
lpsc_on(DAVINCI_LPSC_I2C);
|
lpsc_on(DAVINCI_LPSC_I2C);
|
||||||
|
@ -69,6 +70,7 @@ void davinci_enable_i2c(void)
|
||||||
/* Enable I2C pin Mux */
|
/* Enable I2C pin Mux */
|
||||||
REG(PINMUX1) |= PINMUX1_I2C;
|
REG(PINMUX1) |= PINMUX1_I2C;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void davinci_errata_workarounds(void)
|
void davinci_errata_workarounds(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user