Release 4.10 arch/arm/mach-pxa/include/mach/uncompress.h
/*
* arch/arm/mach-pxa/include/mach/uncompress.h
*
* Author: Nicolas Pitre
* Copyright: (C) 2001 MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/serial_reg.h>
#include <asm/mach-types.h>
#define FFUART_BASE (0x40100000)
#define BTUART_BASE (0x40200000)
#define STUART_BASE (0x40700000)
unsigned long uart_base;
unsigned int uart_shift;
unsigned int uart_is_pxa;
static inline unsigned char uart_read(int offset)
{
return *(volatile unsigned char *)(uart_base + (offset << uart_shift));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric miao | eric miao | 29 | 100.00% | 1 | 100.00% |
| Total | 29 | 100.00% | 1 | 100.00% |
static inline void uart_write(unsigned char val, int offset)
{
*(volatile unsigned char *)(uart_base + (offset << uart_shift)) = val;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric miao | eric miao | 33 | 100.00% | 1 | 100.00% |
| Total | 33 | 100.00% | 1 | 100.00% |
static inline int uart_is_enabled(void)
{
/* assume enabled by default for non-PXA uarts */
return uart_is_pxa ? uart_read(UART_IER) & UART_IER_UUE : 1;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric miao | eric miao | 22 | 100.00% | 1 | 100.00% |
| Total | 22 | 100.00% | 1 | 100.00% |
static inline void putc(char c)
{
if (!uart_is_enabled())
return;
while (!(uart_read(UART_LSR) & UART_LSR_THRE))
barrier();
uart_write(c, UART_TX);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
nicolas pitre | nicolas pitre | 18 | 46.15% | 1 | 25.00% |
eric miao | eric miao | 11 | 28.21% | 1 | 25.00% |
philipp zabel | philipp zabel | 6 | 15.38% | 1 | 25.00% |
russell king | russell king | 4 | 10.26% | 1 | 25.00% |
| Total | 39 | 100.00% | 4 | 100.00% |
/*
* This does not append a newline
*/
static inline void flush(void)
{
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
nicolas pitre | nicolas pitre | 4 | 50.00% | 1 | 50.00% |
russell king | russell king | 4 | 50.00% | 1 | 50.00% |
| Total | 8 | 100.00% | 2 | 100.00% |
static inline void arch_decomp_setup(void)
{
/* initialize to default */
uart_base = FFUART_BASE;
uart_shift = 2;
uart_is_pxa = 1;
if (machine_is_littleton() || machine_is_intelmote2()
|| machine_is_csb726() || machine_is_stargate2()
|| machine_is_cm_x300() || machine_is_balloon3())
uart_base = STUART_BASE;
if (machine_is_arcom_zeus()) {
uart_base = 0x10000000; /* nCS4 */
uart_shift = 1;
uart_is_pxa = 0;
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
marc zyngier | marc zyngier | 20 | 30.30% | 1 | 11.11% |
jonathan cameron | jonathan cameron | 19 | 28.79% | 3 | 33.33% |
eric miao | eric miao | 18 | 27.27% | 2 | 22.22% |
jonathan mcdowell | jonathan mcdowell | 3 | 4.55% | 1 | 11.11% |
dmitry eremin-baryshkov | dmitry eremin-baryshkov | 3 | 4.55% | 1 | 11.11% |
mike rapoport | mike rapoport | 3 | 4.55% | 1 | 11.11% |
| Total | 66 | 100.00% | 9 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
eric miao | eric miao | 136 | 59.39% | 2 | 15.38% |
nicolas pitre | nicolas pitre | 25 | 10.92% | 1 | 7.69% |
marc zyngier | marc zyngier | 20 | 8.73% | 1 | 7.69% |
jonathan cameron | jonathan cameron | 19 | 8.30% | 3 | 23.08% |
philipp zabel | philipp zabel | 11 | 4.80% | 1 | 7.69% |
russell king | russell king | 9 | 3.93% | 2 | 15.38% |
mike rapoport | mike rapoport | 3 | 1.31% | 1 | 7.69% |
dmitry eremin-baryshkov | dmitry eremin-baryshkov | 3 | 1.31% | 1 | 7.69% |
jonathan mcdowell | jonathan mcdowell | 3 | 1.31% | 1 | 7.69% |
| Total | 229 | 100.00% | 13 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.