Linux Kernel
3.7.1
|
#include <linux/serial_reg.h>
#include <linux/serial_mfd.h>
#include <linux/kmsg_dump.h>
#include <linux/console.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/io.h>
#include <asm/fixmap.h>
#include <asm/pgtable.h>
#include <asm/mrst.h>
Go to the source code of this file.
Data Structures | |
struct | dw_spi_reg |
Macros | |
#define | MRST_SPI_TIMEOUT 0x200000 |
#define | MRST_REGBASE_SPI0 0xff128000 |
#define | MRST_REGBASE_SPI1 0xff128400 |
#define | MRST_CLK_SPI0_REG 0xff11d86c |
#define | SPI_DFS_OFFSET 0 |
#define | SPI_FRF_OFFSET 4 |
#define | SPI_FRF_SPI 0x0 |
#define | SPI_FRF_SSP 0x1 |
#define | SPI_FRF_MICROWIRE 0x2 |
#define | SPI_FRF_RESV 0x3 |
#define | SPI_MODE_OFFSET 6 |
#define | SPI_SCPH_OFFSET 6 |
#define | SPI_SCOL_OFFSET 7 |
#define | SPI_TMOD_OFFSET 8 |
#define | SPI_TMOD_TR 0x0 /* xmit & recv */ |
#define | SPI_TMOD_TO 0x1 /* xmit only */ |
#define | SPI_TMOD_RO 0x2 /* recv only */ |
#define | SPI_TMOD_EPROMREAD 0x3 /* eeprom read mode */ |
#define | SPI_SLVOE_OFFSET 10 |
#define | SPI_SRL_OFFSET 11 |
#define | SPI_CFS_OFFSET 12 |
#define | SR_MASK 0x7f /* cover 7 bits */ |
#define | SR_BUSY (1 << 0) |
#define | SR_TF_NOT_FULL (1 << 1) |
#define | SR_TF_EMPT (1 << 2) |
#define | SR_RF_NOT_EMPT (1 << 3) |
#define | SR_RF_FULL (1 << 4) |
#define | SR_TX_ERR (1 << 5) |
#define | SR_DCOL (1 << 6) |
#define | dw_readl(dw, name) __raw_readl(&(dw)->name) |
#define | dw_writel(dw, name, val) __raw_writel((val), &(dw)->name) |
#define | HSU_PORT_BASE 0xffa28080 |
#define | BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) |
Functions | |
void | mrst_early_console_init (void) |
void | hsu_early_console_init (const char *s) |
Variables | |
struct dw_spi_reg | __packed |
struct console | early_mrst_console |
struct console | early_hsu_console |
#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) |
Definition at line 288 of file early_printk_mrst.c.
#define dw_readl | ( | dw, | |
name | |||
) | __raw_readl(&(dw)->name) |
Definition at line 99 of file early_printk_mrst.c.
#define dw_writel | ( | dw, | |
name, | |||
val | |||
) | __raw_writel((val), &(dw)->name) |
Definition at line 100 of file early_printk_mrst.c.
#define HSU_PORT_BASE 0xffa28080 |
Definition at line 245 of file early_printk_mrst.c.
#define MRST_CLK_SPI0_REG 0xff11d86c |
Definition at line 35 of file early_printk_mrst.c.
#define MRST_REGBASE_SPI0 0xff128000 |
Definition at line 33 of file early_printk_mrst.c.
#define MRST_REGBASE_SPI1 0xff128400 |
Definition at line 34 of file early_printk_mrst.c.
#define MRST_SPI_TIMEOUT 0x200000 |
Definition at line 32 of file early_printk_mrst.c.
#define SPI_CFS_OFFSET 12 |
Definition at line 57 of file early_printk_mrst.c.
#define SPI_DFS_OFFSET 0 |
Definition at line 38 of file early_printk_mrst.c.
#define SPI_FRF_MICROWIRE 0x2 |
Definition at line 43 of file early_printk_mrst.c.
#define SPI_FRF_OFFSET 4 |
Definition at line 40 of file early_printk_mrst.c.
#define SPI_FRF_RESV 0x3 |
Definition at line 44 of file early_printk_mrst.c.
#define SPI_FRF_SPI 0x0 |
Definition at line 41 of file early_printk_mrst.c.
#define SPI_FRF_SSP 0x1 |
Definition at line 42 of file early_printk_mrst.c.
#define SPI_MODE_OFFSET 6 |
Definition at line 46 of file early_printk_mrst.c.
#define SPI_SCOL_OFFSET 7 |
Definition at line 48 of file early_printk_mrst.c.
#define SPI_SCPH_OFFSET 6 |
Definition at line 47 of file early_printk_mrst.c.
#define SPI_SLVOE_OFFSET 10 |
Definition at line 55 of file early_printk_mrst.c.
#define SPI_SRL_OFFSET 11 |
Definition at line 56 of file early_printk_mrst.c.
#define SPI_TMOD_EPROMREAD 0x3 /* eeprom read mode */ |
Definition at line 53 of file early_printk_mrst.c.
#define SPI_TMOD_OFFSET 8 |
Definition at line 49 of file early_printk_mrst.c.
#define SPI_TMOD_RO 0x2 /* recv only */ |
Definition at line 52 of file early_printk_mrst.c.
#define SPI_TMOD_TO 0x1 /* xmit only */ |
Definition at line 51 of file early_printk_mrst.c.
#define SPI_TMOD_TR 0x0 /* xmit & recv */ |
Definition at line 50 of file early_printk_mrst.c.
#define SR_BUSY (1 << 0) |
Definition at line 61 of file early_printk_mrst.c.
#define SR_DCOL (1 << 6) |
Definition at line 67 of file early_printk_mrst.c.
#define SR_MASK 0x7f /* cover 7 bits */ |
Definition at line 60 of file early_printk_mrst.c.
#define SR_RF_FULL (1 << 4) |
Definition at line 65 of file early_printk_mrst.c.
#define SR_RF_NOT_EMPT (1 << 3) |
Definition at line 64 of file early_printk_mrst.c.
#define SR_TF_EMPT (1 << 2) |
Definition at line 63 of file early_printk_mrst.c.
#define SR_TF_NOT_FULL (1 << 1) |
Definition at line 62 of file early_printk_mrst.c.
#define SR_TX_ERR (1 << 5) |
Definition at line 66 of file early_printk_mrst.c.
Definition at line 249 of file early_printk_mrst.c.
Definition at line 143 of file early_printk_mrst.c.
Definition at line 319 of file early_printk_mrst.c.
Definition at line 234 of file early_printk_mrst.c.