cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/mach-ep93xx/include/mach/uncompress.h

/*
 * arch/arm/mach-ep93xx/include/mach/uncompress.h
 *
 * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 */

#include <mach/ep93xx-regs.h>
#include <asm/mach-types.h>


static unsigned char __raw_readb(unsigned int ptr) { return *((volatile unsigned char *)ptr); }

Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek23100.00%1100.00%
Total23100.00%1100.00%


static unsigned int __raw_readl(unsigned int ptr) { return *((volatile unsigned int *)ptr); }

Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek23100.00%1100.00%
Total23100.00%1100.00%


static void __raw_writeb(unsigned char value, unsigned int ptr) { *((volatile unsigned char *)ptr) = value; }

Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek27100.00%1100.00%
Total27100.00%1100.00%


static void __raw_writel(unsigned int value, unsigned int ptr) { *((volatile unsigned int *)ptr) = value; }

Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek27100.00%1100.00%
Total27100.00%1100.00%

#define PHYS_UART_DATA (CONFIG_DEBUG_UART_PHYS + 0x00) #define PHYS_UART_FLAG (CONFIG_DEBUG_UART_PHYS + 0x18) #define UART_FLAG_TXFF 0x20
static inline void putc(int c) { int i; for (i = 0; i < 10000; i++) { /* Transmit fifo not full? */ if (!(__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF)) break; } __raw_writeb(c, PHYS_UART_DATA); }

Contributors

PersonTokensPropCommitsCommitProp
H Hartley Sweeten2755.10%250.00%
Lennert Buytenhek2040.82%125.00%
Russell King24.08%125.00%
Total49100.00%4100.00%


static inline void flush(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Russell King450.00%150.00%
Lennert Buytenhek450.00%150.00%
Total8100.00%2100.00%

/* * Some bootloaders don't turn off DMA from the ethernet MAC before * jumping to linux, which means that we might end up with bits of RX * status and packet data scribbled over the uncompressed kernel image. * Work around this by resetting the ethernet MAC before we uncompress. */ #define PHYS_ETH_SELF_CTL 0x80010020 #define ETH_SELF_CTL_RESET 0x00000001
static void ethernet_reset(void) { unsigned int v; /* Reset the ethernet MAC. */ v = __raw_readl(PHYS_ETH_SELF_CTL); __raw_writel(v | ETH_SELF_CTL_RESET, PHYS_ETH_SELF_CTL); /* Wait for reset to finish. */ while (__raw_readl(PHYS_ETH_SELF_CTL) & ETH_SELF_CTL_RESET) ; }

Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek40100.00%1100.00%
Total40100.00%1100.00%

#define TS72XX_WDT_CONTROL_PHYS_BASE 0x23800000 #define TS72XX_WDT_FEED_PHYS_BASE 0x23c00000 #define TS72XX_WDT_FEED_VAL 0x05
static void __maybe_unused ts72xx_watchdog_disable(void) { __raw_writeb(TS72XX_WDT_FEED_VAL, TS72XX_WDT_FEED_PHYS_BASE); __raw_writeb(0, TS72XX_WDT_CONTROL_PHYS_BASE); }

Contributors

PersonTokensPropCommitsCommitProp
Florian Fainelli23100.00%1100.00%
Total23100.00%1100.00%


static void arch_decomp_setup(void) { if (machine_is_ts72xx()) ts72xx_watchdog_disable(); ethernet_reset(); }

Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek1157.89%150.00%
Florian Fainelli842.11%150.00%
Total19100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Lennert Buytenhek19369.18%225.00%
Florian Fainelli4616.49%112.50%
H Hartley Sweeten3211.47%337.50%
Russell King82.87%225.00%
Total279100.00%8100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.