/* * 16550 compatible uart based serial debug support for zboot */ #include <linux/types.h> #include <linux/serial_reg.h> #include <asm/addrspace.h> #if defined(CONFIG_MACH_LOONGSON64) || defined(CONFIG_MIPS_MALTA) #define UART_BASE 0x1fd003f8 #define PORT(offset) (CKSEG1ADDR(UART_BASE) + (offset)) #endif #ifdef CONFIG_AR7 #include <ar7.h> #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) #endif #if defined(CONFIG_MACH_JZ4740) || defined(CONFIG_MACH_JZ4780) #include <asm/mach-jz4740/base.h> #define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset)) #endif #ifdef CONFIG_CPU_XLR #define UART0_BASE 0x1EF14000 #define PORT(offset) (CKSEG1ADDR(UART0_BASE) + (4 * offset)) #define IOTYPE unsigned int #endif #ifdef CONFIG_CPU_XLP #define UART0_BASE 0x18030100 #define PORT(offset) (CKSEG1ADDR(UART0_BASE) + (4 * offset)) #define IOTYPE unsigned int #endif #ifndef IOTYPE #define IOTYPE char #endif #ifndef PORT #error please define the serial port address for your own machine #endif
static inline unsigned int serial_in(int offset) { return *((volatile IOTYPE *)PORT(offset)) & 0xFF; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 23 | 85.19% | 1 | 50.00% |
Jayachandran C | 4 | 14.81% | 1 | 50.00% |
Total | 27 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 26 | 86.67% | 1 | 50.00% |
Jayachandran C | 4 | 13.33% | 1 | 50.00% |
Total | 30 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 42 | 97.67% | 1 | 50.00% |
Jayachandran C | 1 | 2.33% | 1 | 50.00% |
Total | 43 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Wu Zhangjin | 147 | 64.19% | 1 | 14.29% |
Jayachandran C | 58 | 25.33% | 2 | 28.57% |
Aaro Koskinen | 10 | 4.37% | 1 | 14.29% |
Lluís Batlle i Rossell | 9 | 3.93% | 1 | 14.29% |
Antony Pavlov | 4 | 1.75% | 1 | 14.29% |
Huacai Chen | 1 | 0.44% | 1 | 14.29% |
Total | 229 | 100.00% | 7 | 100.00% |