46 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef LINUX_BCMA_DRIVER_MIPS_H_3#define LINUX_BCMA_DRIVER_MIPS_H_4 5#define BCMA_MIPS_IPSFLAG 0x0F086/* which sbflags get routed to mips interrupt 1 */7#define BCMA_MIPS_IPSFLAG_IRQ1 0x0000003F8#define BCMA_MIPS_IPSFLAG_IRQ1_SHIFT 09/* which sbflags get routed to mips interrupt 2 */10#define BCMA_MIPS_IPSFLAG_IRQ2 0x00003F0011#define BCMA_MIPS_IPSFLAG_IRQ2_SHIFT 812/* which sbflags get routed to mips interrupt 3 */13#define BCMA_MIPS_IPSFLAG_IRQ3 0x003F000014#define BCMA_MIPS_IPSFLAG_IRQ3_SHIFT 1615/* which sbflags get routed to mips interrupt 4 */16#define BCMA_MIPS_IPSFLAG_IRQ4 0x3F00000017#define BCMA_MIPS_IPSFLAG_IRQ4_SHIFT 2418 19/* MIPS 74K core registers */20#define BCMA_MIPS_MIPS74K_CORECTL 0x000021#define BCMA_MIPS_MIPS74K_EXCEPTBASE 0x000422#define BCMA_MIPS_MIPS74K_BIST 0x000C23#define BCMA_MIPS_MIPS74K_INTMASK_INT0 0x001424#define BCMA_MIPS_MIPS74K_INTMASK(int) \25 ((int) * 4 + BCMA_MIPS_MIPS74K_INTMASK_INT0)26#define BCMA_MIPS_MIPS74K_NMIMASK 0x002C27#define BCMA_MIPS_MIPS74K_GPIOSEL 0x004028#define BCMA_MIPS_MIPS74K_GPIOOUT 0x004429#define BCMA_MIPS_MIPS74K_GPIOEN 0x004830#define BCMA_MIPS_MIPS74K_CLKCTLST 0x01E031 32#define BCMA_MIPS_OOBSELINA74 0x00433#define BCMA_MIPS_OOBSELOUTA30 0x10034 35struct bcma_device;36 37struct bcma_drv_mips {38 struct bcma_device *core;39 u8 setup_done:1;40 u8 early_setup_done:1;41};42 43extern u32 bcma_cpu_clock(struct bcma_drv_mips *mcore);44 45#endif /* LINUX_BCMA_DRIVER_MIPS_H_ */46