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 * Bus Interface Unit control register setup, must happen early during boot, 17 * before SMP is brought up, called by machine entry point. 18 */ 19 void brcmstb_biuctrl_init(void); 20 21 /* 22 * Helper functions for getting family or product id from the 23 * SoC driver. 24 */ 25 u32 brcmstb_get_family_id(void); 26 u32 brcmstb_get_product_id(void); 27 28 #endif /* __BRCMSTB_SOC_H */ 29