common.h (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) common.h (f8ef1233939495c405a9faa4bd1ae7d3f581bae4)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ARCH_ORION5X_COMMON_H
3#define __ARCH_ORION5X_COMMON_H
4
5#include <linux/reboot.h>
6
7struct mv643xx_eth_platform_data;
8struct mv_sata_platform_data;

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

68extern void __init tag_fixup_mem32(struct tag *, char **);
69
70#ifdef CONFIG_MACH_MSS2_DT
71extern void mss2_init(void);
72#else
73static inline void mss2_init(void) {}
74#endif
75
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ARCH_ORION5X_COMMON_H
3#define __ARCH_ORION5X_COMMON_H
4
5#include <linux/reboot.h>
6
7struct mv643xx_eth_platform_data;
8struct mv_sata_platform_data;

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

68extern void __init tag_fixup_mem32(struct tag *, char **);
69
70#ifdef CONFIG_MACH_MSS2_DT
71extern void mss2_init(void);
72#else
73static inline void mss2_init(void) {}
74#endif
75
76#ifdef CONFIG_MACH_D2NET_DT
77void d2net_init(void);
78#else
79static inline void d2net_init(void) {}
80#endif
81
76/*****************************************************************************
77 * Helpers to access Orion registers
78 ****************************************************************************/
79/*
80 * These are not preempt-safe. Locks, if needed, must be taken
81 * care of by the caller.
82 */
83#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
84#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
85
86#endif
82/*****************************************************************************
83 * Helpers to access Orion registers
84 ****************************************************************************/
85/*
86 * These are not preempt-safe. Locks, if needed, must be taken
87 * care of by the caller.
88 */
89#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
90#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
91
92#endif