This patch adds optional flag for lcd-wb of gsc. If the flag is set,
then the gsc hw is controlled by drm driver.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
- reg: should contain G-Scaler physical address location and length.
- interrupts: should contain G-Scaler interrupt number
+Optional properties:
+- samsung,lcd-wb: this property must be present if the IP block has the LCD
+ writeback input.
+
Example:
gsc_0: gsc@0x13e00000 {
if (!gsc)
return -ENOMEM;
- if (dev->of_node)
+ if (dev->of_node) {
gsc->id = of_alias_get_id(pdev->dev.of_node, "gsc");
- else
+ if (of_property_read_bool(dev->of_node, "samsung,lcd-wb"))
+ return -ENODEV;
+ } else
gsc->id = pdev->id;
if (gsc->id >= drv_data->num_entities) {