Blame view

arch/arm/mach-orion5x/common.h 1.85 KB
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
1
2
  #ifndef __ARCH_ORION5X_COMMON_H
  #define __ARCH_ORION5X_COMMON_H
dcf1cece1   Lennert Buytenhek   [ARM] Orion: inst...
3
  struct dsa_platform_data;
044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
4
5
  struct mv643xx_eth_platform_data;
  struct mv_sata_platform_data;
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
6
7
8
  /*
   * Basic Orion init functions used early by machine-setup.
   */
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
9
  void orion5x_map_io(void);
4ee1f6b57   Lennert Buytenhek   ARM: Remove depen...
10
  void orion5x_init_early(void);
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
11
12
  void orion5x_init_irq(void);
  void orion5x_init(void);
ebe35aff8   Lennert Buytenhek   [ARM] Orion: prep...
13
  extern int orion5x_tclk;
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
14
15
16
17
18
19
20
  extern struct sys_timer orion5x_timer;
  
  /*
   * Enumerations and functions for Orion windows mapping. Used by Orion core
   * functions to map its interfaces and by the machine-setup to map its on-
   * board devices. Details in /mach-orion/addr-map.c
   */
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
21
22
23
24
25
26
  void orion5x_setup_cpu_mbus_bridge(void);
  void orion5x_setup_dev_boot_win(u32 base, u32 size);
  void orion5x_setup_dev0_win(u32 base, u32 size);
  void orion5x_setup_dev1_win(u32 base, u32 size);
  void orion5x_setup_dev2_win(u32 base, u32 size);
  void orion5x_setup_pcie_wa_win(u32 base, u32 size);
b6d1c33a3   Andrew Lunn   ARM: Orion: Conso...
27
  void orion5x_setup_sram_win(void);
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
28

044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
29
30
31
  void orion5x_ehci0_init(void);
  void orion5x_ehci1_init(void);
  void orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data);
dcf1cece1   Lennert Buytenhek   [ARM] Orion: inst...
32
  void orion5x_eth_switch_init(struct dsa_platform_data *d, int irq);
044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
33
34
  void orion5x_i2c_init(void);
  void orion5x_sata_init(struct mv_sata_platform_data *sata_data);
d323ade13   Lennert Buytenhek   [ARM] Orion: add ...
35
  void orion5x_spi_init(void);
044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
36
37
  void orion5x_uart0_init(void);
  void orion5x_uart1_init(void);
1d5a1a6e9   Saeed Bishara   [ARM] Orion: Inst...
38
  void orion5x_xor_init(void);
764cbcc2e   Russell King   ARM: restart: ori...
39
  void orion5x_restart(char, const char *);
044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
40

9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
41
  /*
044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
42
   * PCIe/PCI functions.
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
43
   */
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
44
  struct pci_bus;
044f6c7c4   Lennert Buytenhek   [ARM] Orion: move...
45
  struct pci_sys_data;
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
46
47
  
  void orion5x_pcie_id(u32 *dev, u32 *rev);
7a6bb2622   Per Andersson   [ARM] Orion: Fix ...
48
  void orion5x_pci_disable(void);
da01bba3c   Lennert Buytenhek   [ARM] Orion: make...
49
  void orion5x_pci_set_cardbus_mode(void);
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
50
51
  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);
d5341942d   Ralf Baechle   PCI: Make the str...
52
  int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
53

9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
54
55
  struct meminfo;
  struct tag;
0744a3ee3   Russell King   ARM: platform fix...
56
  extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *);
9dd0b194b   Lennert Buytenhek   Orion: orion -> o...
57
58
59
  
  
  #endif