cregit-Linux how code gets into the kernel

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

PersonTokensPropCommitsCommitProp
Eric Miao29100.00%1100.00%
Total29100.00%1100.00%


static inline void uart_write(unsigned char val, int offset) { *(volatile unsigned char *)(uart_base + (offset << uart_shift)) = val; }

Contributors

PersonTokensPropCommitsCommitProp
Eric Miao33100.00%1100.00%
Total33100.00%1100.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

PersonTokensPropCommitsCommitProp
Eric Miao22100.00%1100.00%
Total22100.00%1100.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

PersonTokensPropCommitsCommitProp
Nico Pitre1846.15%125.00%
Eric Miao1128.21%125.00%
Philipp Zabel615.38%125.00%
Russell King410.26%125.00%
Total39100.00%4100.00%

/* * This does not append a newline */
static inline void flush(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Russell King450.00%150.00%
Nico Pitre450.00%150.00%
Total8100.00%2100.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

PersonTokensPropCommitsCommitProp
Marc Zyngier2030.30%111.11%
Jonathan Cameron1928.79%333.33%
Eric Miao1827.27%222.22%
Mike Rapoport34.55%111.11%
Jonathan McDowell34.55%111.11%
Dmitry Baryshkov34.55%111.11%
Total66100.00%9100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Eric Miao13659.39%215.38%
Nico Pitre2510.92%17.69%
Marc Zyngier208.73%17.69%
Jonathan Cameron198.30%323.08%
Philipp Zabel114.80%17.69%
Russell King93.93%215.38%
Dmitry Baryshkov31.31%17.69%
Jonathan McDowell31.31%17.69%
Mike Rapoport31.31%17.69%
Total229100.00%13100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.