console: Add console for GDB
Connection of UARTs to GDB stub got lost in the console transition process, bring it back. In theory, GDB stub should work also over usbdebug, but that solution is not really tested at all yet. Change-Id: I90e05e8132889e788b92e055ee191f35add43bbc Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5343 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
@ -69,6 +69,14 @@ static inline void __uart_tx_byte(u8 data) {}
|
||||
static inline void __uart_tx_flush(void) {}
|
||||
#endif
|
||||
|
||||
#if CONFIG_GDB_STUB && (ENV_ROMSTAGE || ENV_RAMSTAGE)
|
||||
#define CONFIG_UART_FOR_GDB CONFIG_UART_FOR_CONSOLE
|
||||
static inline void __gdb_hw_init(void) { uart_init(CONFIG_UART_FOR_GDB); }
|
||||
static inline void __gdb_tx_byte(u8 data) { uart_tx_byte(CONFIG_UART_FOR_GDB, data); }
|
||||
static inline void __gdb_tx_flush(void) { uart_tx_flush(CONFIG_UART_FOR_GDB); }
|
||||
static inline u8 __gdb_rx_byte(void) { return uart_rx_byte(CONFIG_UART_FOR_GDB); }
|
||||
#endif
|
||||
|
||||
#endif /* __ROMCC__ */
|
||||
|
||||
#endif /* CONSOLE_UART_H */
|
||||
|
Reference in New Issue
Block a user