11 #include <soc/ipq_uart.h>
14 #define FIFO_DATA_SIZE 4
25 .mnd_value = { 24, 625, 313 },
29 #if CONFIG(IPQ_QFN_PART)
41 #if CONFIG(IPQ_QFN_PART)
88 static unsigned int word = 0;
268 serial.uart_pci_addr = CONFIG_UART_PCI_ADDR;
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
unsigned int get_uart_baudrate(void)
#define LB_TAG_CONSOLE_SERIAL8250MEM
#define LB_SERIAL_TYPE_MEMORY_MAPPED
void lb_add_console(uint16_t consoletype, void *data)
void lb_add_serial(struct lb_serial *serial, void *data)
#define NO_OF_DBG_UART_GPIOS
#define MSM_BOOT_UART_DM_TF(base, x)
#define MSM_BOOT_UART_DM_DMRX(base)
#define MSM_BOOT_UART_DM_IMR(base)
#define MSM_BOOT_UART_DM_MR1(base)
#define MSM_BOOT_UART_DM_CSR(base)
#define MSM_BOOT_UART_DM_GCMD_ENA_STALE_EVT
#define MSM_BOOT_UART_DM_HCR(base)
#define MSM_BOOT_UART_DM_SR_TXEMT
#define MSM_BOOT_UART_DM_CMD_RES_TX_ERR
#define MSM_BOOT_UART_DM_TFWR(base)
#define MSM_BOOT_UART_DM_MR2(base)
#define MSM_BOOT_UART_DM_SR(base)
#define MSM_BOOT_UART_DM_IMR_ENABLED
#define MSM_BOOT_UART_DM_TFW_VALUE
#define MSM_BOOT_UART_DM_IPR(base)
#define MSM_BOOT_UART_DM_DMEN(base)
#define MSM_BOOT_UART_DM_STALE_TIMEOUT_LSB
#define MSM_BOOT_UART_DM_CR_TX_ENABLE
#define MSM_BOOT_UART_DM_RFWR(base)
#define MSM_BOOT_UART_DM_DMRX_DEF_VALUE
#define MSM_BOOT_UART_DM_NO_CHARS_FOR_TX(base)
#define MSM_BOOT_UART_DM_CMD_RESET_TX
#define MSM_BOOT_UART_DM_IRDA(base)
#define MSM_BOOT_UART_DM_CR(base)
#define MSM_BOOT_UART_DM_8_N_1_MODE
#define MSM_BOOT_UART_DM_CMD_RES_STALE_INT
#define MSM_BOOT_UART_DM_E_SUCCESS
#define MSM_BOOT_UART_DM_CMD_RESET_RX
#define MSM_BOOT_UART_DM_RFW_VALUE
#define MSM_BOOT_UART_DM_CMD_RESET_ERR_STAT
#define MSM_BOOT_UART_DM_CR_RX_ENABLE
void uart_init(unsigned int idx)
void uart_tx_flush(unsigned int idx)
unsigned char uart_rx_byte(unsigned int idx)
void uart_fill_lb(void *data)
void uart_tx_byte(unsigned int idx, unsigned char data)
unsigned int uart_platform_refclk(void)
void uart_clock_config(unsigned int blsp_uart, unsigned int m, unsigned int n, unsigned int d)
uart_clock_config - configures UART clocks
#define UART_DM_CLK_RX_TX_BIT_RATE
static unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
msm_boot_uart_dm_init - initilaizes UART controller
static unsigned int msm_boot_uart_dm_reset(void *base)
msm_boot_uart_dm_reset - resets UART controller
void ipq40xx_uart_init(void)
static const uart_params_t uart_board_param
static unsigned int msm_boot_uart_dm_init_rx_transfer(void *uart_dm_base)
msm_boot_uart_dm_init_rx_transfer - Init Rx transfer
void ipq_configure_gpio(const gpio_func_data_t *gpio, unsigned int count)
gpio_func_data_t dbg_uart_gpio[NO_OF_DBG_UART_GPIOS]