OSDN Git Service

bus: ti-sysc: Implement SoC revision handling
authorTony Lindgren <tony@atomide.com>
Mon, 24 Feb 2020 20:58:03 +0000 (12:58 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 26 Feb 2020 18:03:35 +0000 (10:03 -0800)
commitfeaa8baee82ababa46af95b03cfc28680ad647a6
tree4e52dcc537f27570ef381549700e169dd607d6fe
parent7320fd322fe9b1485372e6da294590c5bcabbe1c
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.

Cc: Adam Ford <aford173@gmail.com>
Cc: André Hentschel <nerv@dawncrow.de>
Cc: H. Nikolaus Schaller <hns@goldelico.com>
Cc: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pdata-quirks.c
drivers/bus/ti-sysc.c
include/linux/platform_data/ti-sysc.h