History

bus: ti-sysc: Implement SoC revision handling

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.

Tony Lindgren committed 6 years ago

Commit feaa8ba1 parent 7320fd33 files · +200 −1Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/ti-sysc.h+1−0
@@ -141,6 +141,7 @@ struct clk; · 140 unmodified lines
141141
142142 struct ti_sysc_platform_data {
143143 struct of_dev_auxdata *auxdata;
144+ bool (*soc_type_gp)(void);
144145 int (*init_clockdomain)(struct device *dev, struct clk *fck,
145146 struct clk *ick, struct ti_sysc_cookie *cookie);
146147 void (*clkdm_deny_idle)(struct device *dev,