]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/mips/include/asm/mach-bcm47xx/bcm47xx.h
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-jammy-kernel.git] / arch / mips / include / asm / mach-bcm47xx / bcm47xx.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
1c0c13eb
AJ
2/*
3 * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net>
1c0c13eb
AJ
4 */
5
6#ifndef __ASM_BCM47XX_H
7#define __ASM_BCM47XX_H
8
08ccf572 9#include <linux/ssb/ssb.h>
c1d1c5d4
HM
10#include <linux/bcma/bcma.h>
11#include <linux/bcma/bcma_soc.h>
138173d4 12#include <linux/bcm47xx_nvram.h>
08ccf572
HM
13
14enum bcm47xx_bus_type {
a656ffcb 15#ifdef CONFIG_BCM47XX_SSB
08ccf572 16 BCM47XX_BUS_TYPE_SSB,
a656ffcb 17#endif
c1d1c5d4
HM
18#ifdef CONFIG_BCM47XX_BCMA
19 BCM47XX_BUS_TYPE_BCMA,
20#endif
08ccf572
HM
21};
22
23union bcm47xx_bus {
a656ffcb 24#ifdef CONFIG_BCM47XX_SSB
08ccf572 25 struct ssb_bus ssb;
a656ffcb 26#endif
c1d1c5d4
HM
27#ifdef CONFIG_BCM47XX_BCMA
28 struct bcma_soc bcma;
29#endif
08ccf572
HM
30};
31
32extern union bcm47xx_bus bcm47xx_bus;
33extern enum bcm47xx_bus_type bcm47xx_bus_type;
1c0c13eb 34
b8ebbaff
HM
35void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix,
36 bool fallback);
019eee2e 37
dd573285
HM
38void bcm47xx_set_system_type(u16 chip_id);
39
1c0c13eb 40#endif /* __ASM_BCM47XX_H */