mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
board: pw3/taimen/tetris/virt/blossom/camellia: guard uart code to optimize build size
This commit is contained in:
1 parent
34fe1d6689
commit
c509adb742
6 files changed
+12
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <drivers/framework.h>
|
||||
#include <lib/simplefb.h>
|
||||
|
||||
#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)
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user