OSDN Git Service

bus: ti-sysc: Implement display subsystem reset quirk
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:36 +0000 (10:03 -0800)
commit7324a7a0d5e232551eedad69fea3e4b91973d7c6
treef0dabfdc2c953dd014bde63f1110ab68cf67287e
parent77dfece2e6d8bedb6ecd4d61379ae3dc52f389bd
bus: ti-sysc: Implement display subsystem reset quirk

The display subsystem (DSS) needs the child outputs disabled for reset.
In order to prepare to probe DSS without legacy platform data, let's
implement sysc_pre_reset_quirk_dss() similar to what we have for the
platform data with omap_dss_reset().

Note that we cannot directly use the old omap_dss_reset() without
platform data callbacks and updating omap_dss_reset() to understand
struct device. And we will be dropping omap_dss_reset() anyways when
all the SoCs are probing with device tree, so let's not mess with the
legacy code at all.

Cc: Jyri Sarha <jsarha@ti.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c
include/linux/platform_data/ti-sysc.h