diff --git a/board/amazon/board-pw3.c b/board/amazon/board-pw3.c index 7280034..7bfe270 100644 --- a/board/amazon/board-pw3.c +++ b/board/amazon/board-pw3.c @@ -13,6 +13,7 @@ #define IMX_UTS_OFFSET 0xB4 #define UTS_TXFULL (1 << 4) +#ifdef CONFIG_UART_DEBUG void uart_putc(char ch) { volatile uint32_t *uts_reg = (volatile @@ -34,6 +35,7 @@ void uart_puts(const char *s) s++; } } +#endif struct board_data board_ops = { .name = "amazon-paperwhite3", diff --git a/board/google/board-taimen.c b/board/google/board-taimen.c index 868ec70..fea673d 100644 --- a/board/google/board-taimen.c +++ b/board/google/board-taimen.c @@ -29,6 +29,7 @@ #define UARTDM_RXFS_BUF_SHIFT 7 #define UARTDM_RXFS_BUF_MASK 0x7 +#ifdef CONFIG_UART_DEBUG void uart_putc(char ch) { /* wait until TX is ready */ @@ -48,6 +49,7 @@ void uart_puts(const char *s) s++; } } +#endif struct board_data board_ops = { .name = "google-taimen", diff --git a/board/nothing/board-tetris.c b/board/nothing/board-tetris.c index 7446d22..37fae0a 100644 --- a/board/nothing/board-tetris.c +++ b/board/nothing/board-tetris.c @@ -17,6 +17,7 @@ #define WDT_MODE_KEY 0x22000000 #define WDT_MODE_EN (1 << 0) +#ifdef CONFIG_UART_DEBUG void uart_putc(char ch) { /* wait until TX is ready */ @@ -33,6 +34,7 @@ void uart_puts(const char *s) s++; } } +#endif void tetris_disable_wdt(void) { diff --git a/board/qemu/board-virt.c b/board/qemu/board-virt.c index be91cef..76c1033 100644 --- a/board/qemu/board-virt.c +++ b/board/qemu/board-virt.c @@ -6,6 +6,7 @@ #include #include +#ifdef CONFIG_UART_DEBUG volatile unsigned int* uart = (unsigned int*)0x9000000; void uart_putc(char ch) @@ -21,6 +22,7 @@ void uart_puts(const char *s) s++; } } +#endif void enable_fpu(void) { diff --git a/board/xiaomi/board-blossom.c b/board/xiaomi/board-blossom.c index 30412a3..82b2ee6 100644 --- a/board/xiaomi/board-blossom.c +++ b/board/xiaomi/board-blossom.c @@ -17,6 +17,7 @@ #define UART_LSR_DR 0x01 /* Data ready */ #define UART_LSR_THRE 0x20 /* TX holding register empty */ +#ifdef CONFIG_UART_DEBUG void uart_putc(char ch) { while (!(readl((void *)(UART_BASE + UART_LSR_BASE)) & UART_LSR_THRE)) @@ -32,6 +33,7 @@ void uart_puts(const char *s) s++; } } +#endif static struct video_info blossom_fb = { .format = FB_FORMAT_ARGB8888, diff --git a/board/xiaomi/board-camellia.c b/board/xiaomi/board-camellia.c index 96e395f..599da74 100644 --- a/board/xiaomi/board-camellia.c +++ b/board/xiaomi/board-camellia.c @@ -17,6 +17,7 @@ #define UART_LSR_DR 0x01 /* Data ready */ #define UART_LSR_THRE 0x20 /* TX holding register empty */ +#ifdef CONFIG_UART_DEBUG void uart_putc(char ch) { while (!(readl((void *)(UART_BASE + UART_LSR_BASE)) & UART_LSR_THRE)) @@ -32,6 +33,7 @@ void uart_puts(const char *s) s++; } } +#endif static struct video_info camellia_fb = { .format = FB_FORMAT_ARGB8888,