Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __BRCMSTB_SOC_H
3#define __BRCMSTB_SOC_H
4
5static inline u32 BRCM_ID(u32 reg)
6{
7 return reg >> 28 ? reg >> 16 : reg >> 8;
8}
9
10static inline u32 BRCM_REV(u32 reg)
11{
12 return reg & 0xff;
13}
14
15/*
16 * Helper functions for getting family or product id from the
17 * SoC driver.
18 */
19u32 brcmstb_get_family_id(void);
20u32 brcmstb_get_product_id(void);
21
22#endif /* __BRCMSTB_SOC_H */