Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #ifndef LINUX_BCMA_PRIVATE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #define LINUX_BCMA_PRIVATE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) #ifndef pr_fmt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) #define pr_fmt(fmt)		KBUILD_MODNAME ": " fmt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #include <linux/bcma/bcma.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <linux/delay.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #define bcma_err(bus, fmt, ...) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 	dev_err((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #define bcma_warn(bus, fmt, ...) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 	dev_warn((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #define bcma_info(bus, fmt, ...) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 	dev_info((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #define bcma_debug(bus, fmt, ...) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 	dev_dbg((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) struct bcma_bus;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) /* main.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) bool bcma_wait_value(struct bcma_device *core, u16 reg, u32 mask, u32 value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 		     int timeout);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) void bcma_prepare_core(struct bcma_bus *bus, struct bcma_device *core);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) void bcma_init_bus(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) void bcma_unregister_cores(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) int bcma_bus_register(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) void bcma_bus_unregister(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) int __init bcma_bus_early_register(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #ifdef CONFIG_PM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) int bcma_bus_suspend(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) int bcma_bus_resume(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) /* scan.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) void bcma_detect_chip(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) int bcma_bus_scan(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) /* sprom.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) int bcma_sprom_get(struct bcma_bus *bus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) /* driver_chipcommon.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) void bcma_core_chipcommon_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) #ifdef CONFIG_BCMA_DRIVER_MIPS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) void bcma_chipco_serial_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) #endif /* CONFIG_BCMA_DRIVER_MIPS */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) /* driver_chipcommon_b.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) /* driver_chipcommon_pmu.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) void bcma_pmu_early_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) void bcma_pmu_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) /**************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63)  * driver_chipcommon_sflash.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64)  **************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) #ifdef CONFIG_BCMA_PFLASH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) extern struct platform_device bcma_pflash_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) int bcma_pflash_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) static inline int bcma_pflash_init(struct bcma_drv_cc *cc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	bcma_err(cc->core->bus, "Parallel flash not supported\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) #endif /* CONFIG_BCMA_PFLASH */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) #ifdef CONFIG_BCMA_SFLASH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) /* driver_chipcommon_sflash.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) int bcma_sflash_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) extern struct platform_device bcma_sflash_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) static inline int bcma_sflash_init(struct bcma_drv_cc *cc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	bcma_err(cc->core->bus, "Serial flash not supported\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #endif /* CONFIG_BCMA_SFLASH */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) #ifdef CONFIG_BCMA_NFLASH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) /* driver_chipcommon_nflash.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) int bcma_nflash_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) extern struct platform_device bcma_nflash_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) static inline int bcma_nflash_init(struct bcma_drv_cc *cc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	bcma_err(cc->core->bus, "NAND flash not supported\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) #endif /* CONFIG_BCMA_NFLASH */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #ifdef CONFIG_BCMA_HOST_PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) /* host_pci.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) extern int __init bcma_host_pci_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) extern void __exit bcma_host_pci_exit(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #endif /* CONFIG_BCMA_HOST_PCI */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) /* host_soc.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #if defined(CONFIG_BCMA_HOST_SOC) && defined(CONFIG_OF)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) extern int __init bcma_host_soc_register_driver(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) extern void __exit bcma_host_soc_unregister_driver(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) static inline int __init bcma_host_soc_register_driver(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) static inline void __exit bcma_host_soc_unregister_driver(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #endif /* CONFIG_BCMA_HOST_SOC && CONFIG_OF */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) /* driver_pci.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #ifdef CONFIG_BCMA_DRIVER_PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) void bcma_core_pci_early_init(struct bcma_drv_pci *pc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) void bcma_core_pci_init(struct bcma_drv_pci *pc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) void bcma_core_pci_up(struct bcma_drv_pci *pc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) void bcma_core_pci_down(struct bcma_drv_pci *pc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) static inline void bcma_core_pci_early_init(struct bcma_drv_pci *pc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) static inline void bcma_core_pci_init(struct bcma_drv_pci *pc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	/* Initialization is required for PCI hosted bus */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) /* driver_pcie2.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) #ifdef CONFIG_BCMA_DRIVER_PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) static inline void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	/* Initialization is required for PCI hosted bus */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	WARN_ON(pcie2->core->bus->hosttype == BCMA_HOSTTYPE_PCI);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) static inline bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	return false;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) static inline void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) /**************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)  * driver_mips.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169)  **************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) #ifdef CONFIG_BCMA_DRIVER_MIPS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) unsigned int bcma_core_mips_irq(struct bcma_device *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) void bcma_core_mips_early_init(struct bcma_drv_mips *mcore);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) void bcma_core_mips_init(struct bcma_drv_mips *mcore);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) static inline unsigned int bcma_core_mips_irq(struct bcma_device *dev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) /**************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)  * driver_gmac_cmn.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190)  **************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) #ifdef CONFIG_BCMA_DRIVER_GMAC_CMN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) #ifdef CONFIG_BCMA_DRIVER_GPIO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) /* driver_gpio.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) int bcma_gpio_init(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) int bcma_gpio_unregister(struct bcma_drv_cc *cc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) static inline int bcma_gpio_init(struct bcma_drv_cc *cc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	return -ENOTSUPP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) static inline int bcma_gpio_unregister(struct bcma_drv_cc *cc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #endif /* CONFIG_BCMA_DRIVER_GPIO */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) #endif