cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/mach-orion5x/common.h

#ifndef __ARCH_ORION5X_COMMON_H

#define __ARCH_ORION5X_COMMON_H

#include <linux/reboot.h>

struct dsa_chip_data;
struct mv643xx_eth_platform_data;
struct mv_sata_platform_data;


#define ORION_MBUS_PCIE_MEM_TARGET    0x04

#define ORION_MBUS_PCIE_MEM_ATTR      0x59

#define ORION_MBUS_PCIE_IO_TARGET     0x04

#define ORION_MBUS_PCIE_IO_ATTR       0x51

#define ORION_MBUS_PCIE_WA_TARGET     0x04

#define ORION_MBUS_PCIE_WA_ATTR       0x79

#define ORION_MBUS_PCI_MEM_TARGET     0x03

#define ORION_MBUS_PCI_MEM_ATTR       0x59

#define ORION_MBUS_PCI_IO_TARGET      0x03

#define ORION_MBUS_PCI_IO_ATTR        0x51

#define ORION_MBUS_DEVBUS_BOOT_TARGET 0x01

#define ORION_MBUS_DEVBUS_BOOT_ATTR   0x0f

#define ORION_MBUS_DEVBUS_TARGET(cs)  0x01

#define ORION_MBUS_DEVBUS_ATTR(cs)    (~(1 << cs))

#define ORION_MBUS_SRAM_TARGET        0x09

#define ORION_MBUS_SRAM_ATTR          0x00

/*
 * Basic Orion init functions used early by machine-setup.
 */
void orion5x_map_io(void);
void orion5x_init_early(void);
void orion5x_init_irq(void);
void orion5x_init(void);
void orion5x_id(u32 *dev, u32 *rev, char **dev_name);
void clk_init(void);
extern int orion5x_tclk;
extern void orion5x_timer_init(void);

void orion5x_setup_wins(void);

void orion5x_ehci0_init(void);
void orion5x_ehci1_init(void);
void orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data);
void orion5x_eth_switch_init(struct dsa_chip_data *d);
void orion5x_i2c_init(void);
void orion5x_sata_init(struct mv_sata_platform_data *sata_data);
void orion5x_spi_init(void);
void orion5x_uart0_init(void);
void orion5x_uart1_init(void);
void orion5x_xor_init(void);
void orion5x_restart(enum reboot_mode, const char *);

/*
 * PCIe/PCI functions.
 */
struct pci_bus;
struct pci_sys_data;
struct pci_dev;

void orion5x_pcie_id(u32 *dev, u32 *rev);
void orion5x_pci_disable(void);
void orion5x_pci_set_cardbus_mode(void);
int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys);
struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);

struct tag;
extern void __init tag_fixup_mem32(struct tag *, char **);

#ifdef CONFIG_MACH_MSS2_DT
extern void mss2_init(void);
#else

static inline void mss2_init(void) {}

Contributors

PersonTokensPropCommitsCommitProp
Thomas Petazzoni8100.00%1100.00%
Total8100.00%1100.00%

#endif /***************************************************************************** * Helpers to access Orion registers ****************************************************************************/ /* * These are not preempt-safe. Locks, if needed, must be taken * care of by the caller. */ #define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r)) #define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r)) #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Thomas Petazzoni11631.35%516.13%
Lennert Buytenhek11430.81%1032.26%
Tzachi Perelstein6016.22%412.90%
Rob Herring205.41%13.23%
Guennadi Liakhovetski174.59%13.23%
Russell King92.43%13.23%
Per Andersson61.62%13.23%
Saeed Bishara61.62%13.23%
Stephen Warren61.62%13.23%
Robin Holt51.35%13.23%
Sebastian Andrzej Siewior41.08%13.23%
Andrew Lunn41.08%26.45%
Florian Fainelli20.54%13.23%
Ralf Bächle10.27%13.23%
Total370100.00%31100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.