1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __BRCMSTB_SOC_H
3 #define __BRCMSTB_SOC_H
4 
5 static inline u32 BRCM_ID(u32 reg)
6 {
7 	return reg >> 28 ? reg >> 16 : reg >> 8;
8 }
9 
10 static 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  */
19 u32 brcmstb_get_family_id(void);
20 u32 brcmstb_get_product_id(void);
21 
22 #endif /* __BRCMSTB_SOC_H */
23