mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-08 19:47:12 -04:00
OMAP3: mcx: updated to new hardware revision
Some GPIOs differ in the new revision board. Previous revision are considered obsolete and they will not anymore supported. Signed-off-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
e47c9e8608
commit
8c735b9909
@ -37,12 +37,12 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#define HOT_WATER_BUTTON 38
|
#define HOT_WATER_BUTTON 42
|
||||||
|
|
||||||
#ifdef CONFIG_USB_EHCI
|
#ifdef CONFIG_USB_EHCI
|
||||||
static struct omap_usbhs_board_data usbhs_bdata = {
|
static struct omap_usbhs_board_data usbhs_bdata = {
|
||||||
.port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
|
.port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
|
||||||
.port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
|
.port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED,
|
||||||
.port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
|
.port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -87,6 +87,7 @@ int board_late_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
setenv("bootcmd", "run swupdate");
|
setenv("bootcmd", "run swupdate");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -108,17 +109,3 @@ int board_mmc_init(bd_t *bis)
|
|||||||
return omap_mmc_init(0, 0, 0);
|
return omap_mmc_init(0, 0, 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_USB_EHCI_OMAP
|
|
||||||
#define USB_HOST_PWR_EN 132
|
|
||||||
int board_usb_init(void)
|
|
||||||
{
|
|
||||||
if (gpio_request(USB_HOST_PWR_EN, "USB_HOST_PWR_EN") < 0) {
|
|
||||||
puts("Failed to get USB_HOST_PWR_EN pin\n");
|
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
gpio_direction_output(USB_HOST_PWR_EN, 1);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -96,7 +96,7 @@ const omap3_sysinfo sysinfo = {
|
|||||||
MUX_VAL(CP(GPMC_A7), (IEN | PTU | EN | M4)) \
|
MUX_VAL(CP(GPMC_A7), (IEN | PTU | EN | M4)) \
|
||||||
MUX_VAL(CP(GPMC_A8), (IEN | PTU | EN | M4)) \
|
MUX_VAL(CP(GPMC_A8), (IEN | PTU | EN | M4)) \
|
||||||
MUX_VAL(CP(GPMC_A9), (IEN | PTU | EN | M4)) \
|
MUX_VAL(CP(GPMC_A9), (IEN | PTU | EN | M4)) \
|
||||||
MUX_VAL(CP(GPMC_A10), (IDIS | PTU | DIS | M4)) \
|
MUX_VAL(CP(GPMC_A10), (IEN | PTU | EN | M4)) \
|
||||||
/* GPIO_43 LCD buffer enable */ \
|
/* GPIO_43 LCD buffer enable */ \
|
||||||
MUX_VAL(CP(GPMC_D0), (IEN | PTU | EN | M0)) \
|
MUX_VAL(CP(GPMC_D0), (IEN | PTU | EN | M0)) \
|
||||||
MUX_VAL(CP(GPMC_D1), (IEN | PTU | EN | M0)) \
|
MUX_VAL(CP(GPMC_D1), (IEN | PTU | EN | M0)) \
|
||||||
|
@ -115,8 +115,7 @@
|
|||||||
#define CONFIG_USB_ULPI
|
#define CONFIG_USB_ULPI
|
||||||
#define CONFIG_USB_ULPI_VIEWPORT_OMAP
|
#define CONFIG_USB_ULPI_VIEWPORT_OMAP
|
||||||
/*#define CONFIG_EHCI_DCACHE*/ /* leave it disabled for now */
|
/*#define CONFIG_EHCI_DCACHE*/ /* leave it disabled for now */
|
||||||
#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 154
|
#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 57
|
||||||
#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 152
|
|
||||||
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
|
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
|
||||||
|
|
||||||
/* commands to include */
|
/* commands to include */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user