We need to know SoC type and features for cases where the same SoC may be installed in various versions on the same board and would need a separate dts file otherwise for the different variants. For example, am3703 is pin compatible with omap3630, but has sgx and iva accelerators disabled. We must not try to access the sgx or iva module registers on am3703, and need to set the unavailable devices disabled early. Let's also detect omap3430 as that is needed for display subsystem (DSS) reset later on, and GP vs EMU or HS devices. Further SoC specific disabled device detection can be added as needed, such as dra71x vs dra76x rtc and usb4.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -141,6 +141,7 @@ struct clk; · 140 unmodified lines | ||
| 141 | 141 | |
| 142 | 142 | struct ti_sysc_platform_data { |
| 143 | 143 | struct of_dev_auxdata *auxdata; |
| 144 | + bool (*soc_type_gp)(void); | |
| 144 | 145 | int (*init_clockdomain)(struct device *dev, struct clk *fck, |
| 145 | 146 | struct clk *ick, struct ti_sysc_cookie *cookie); |
| 146 | 147 | void (*clkdm_deny_idle)(struct device *dev, |