Release 4.11 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 | 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 | 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 | 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 |
Nico Pitre | 18 | 46.15% | 1 | 25.00% |
Eric Miao | 11 | 28.21% | 1 | 25.00% |
Philipp Zabel | 6 | 15.38% | 1 | 25.00% |
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 |
Russell King | 4 | 50.00% | 1 | 50.00% |
Nico Pitre | 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 | 20 | 30.30% | 1 | 11.11% |
Jonathan Cameron | 19 | 28.79% | 3 | 33.33% |
Eric Miao | 18 | 27.27% | 2 | 22.22% |
Mike Rapoport | 3 | 4.55% | 1 | 11.11% |
Jonathan McDowell | 3 | 4.55% | 1 | 11.11% |
Dmitry Baryshkov | 3 | 4.55% | 1 | 11.11% |
Total | 66 | 100.00% | 9 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Eric Miao | 136 | 59.39% | 2 | 15.38% |
Nico Pitre | 25 | 10.92% | 1 | 7.69% |
Marc Zyngier | 20 | 8.73% | 1 | 7.69% |
Jonathan Cameron | 19 | 8.30% | 3 | 23.08% |
Philipp Zabel | 11 | 4.80% | 1 | 7.69% |
Russell King | 9 | 3.93% | 2 | 15.38% |
Dmitry Baryshkov | 3 | 1.31% | 1 | 7.69% |
Jonathan McDowell | 3 | 1.31% | 1 | 7.69% |
Mike Rapoport | 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.