| 409a81dd | 07-Feb-2017 |
Alexandru Gagniuc <alex.g@adaptrum.com> |
am33xx: board: Refactor USB initialization into separate function
The declaration of otg*_plat and otg*_board_data is guarded by CONFIG_USB_MUSB_*, but their use in arch_misc_init is not. The ifdef
am33xx: board: Refactor USB initialization into separate function
The declaration of otg*_plat and otg*_board_data is guarded by CONFIG_USB_MUSB_*, but their use in arch_misc_init is not. The ifdef flow goes something like:
if (CONFIG_USB_MUSB_* && other_conditions) declare usb_data if (other_conditions) use usb_data
Thus when CONFIG_USB_MUSB_* is not declared, we try to use the data structures, but these structures aren't defined.
To fix this, move the USB initialization code into the same #ifdef which guards the declaration of the data structures. Since the DM_USB vs legacy cases are completely different, use two versions of arch_misc_init(), for readability.
Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 878d8856 | 05-May-2017 |
Lokesh Vutla <lokeshvutla@ti.com> |
arm: amx3xx: Add support for early debug
For early debug, the following configs needs to be enabled:
CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_OMAP=y CONFIG_DEBUG_UART_BASE=0x44e09000 CONFIG_DEBUG_UART
arm: amx3xx: Add support for early debug
For early debug, the following configs needs to be enabled:
CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_OMAP=y CONFIG_DEBUG_UART_BASE=0x44e09000 CONFIG_DEBUG_UART_CLOCK=48000000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_DEBUG_UART_ANNOUNCE=y
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|