common.h (1bffb4a8729838f5ee27364803406416459c3252) common.h (07f645df9ff2550749b806af626576d5ad418215)
1#ifndef __ARCH_ORION5X_COMMON_H
2#define __ARCH_ORION5X_COMMON_H
3
4struct dsa_platform_data;
5struct mv643xx_eth_platform_data;
6struct mv_sata_platform_data;
7
8/*

--- 42 unchanged lines hidden (view full) ---

51
52void orion5x_pcie_id(u32 *dev, u32 *rev);
53void orion5x_pci_disable(void);
54void orion5x_pci_set_cardbus_mode(void);
55int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys);
56struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
57int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);
58
1#ifndef __ARCH_ORION5X_COMMON_H
2#define __ARCH_ORION5X_COMMON_H
3
4struct dsa_platform_data;
5struct mv643xx_eth_platform_data;
6struct mv_sata_platform_data;
7
8/*

--- 42 unchanged lines hidden (view full) ---

51
52void orion5x_pcie_id(u32 *dev, u32 *rev);
53void orion5x_pci_disable(void);
54void orion5x_pci_set_cardbus_mode(void);
55int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys);
56struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys);
57int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);
58
59/* board init functions for boards not fully converted to fdt */
60#ifdef CONFIG_MACH_EDMINI_V2_DT
61void edmini_v2_init(void);
62#else
63static inline void edmini_v2_init(void) {};
64#endif
65
59struct meminfo;
60struct tag;
61extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *);
62
63/*****************************************************************************
64 * Helpers to access Orion registers
65 ****************************************************************************/
66/*
67 * These are not preempt-safe. Locks, if needed, must be taken
68 * care of by the caller.
69 */
70#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
71#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
72
73#endif
66struct meminfo;
67struct tag;
68extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *);
69
70/*****************************************************************************
71 * Helpers to access Orion registers
72 ****************************************************************************/
73/*
74 * These are not preempt-safe. Locks, if needed, must be taken
75 * care of by the caller.
76 */
77#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
78#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
79
80#endif