extcon: Introduce EXTCON_PROP_DISP_HPD property
authorChris Zhong <zyw@rock-chips.com>
Sat, 10 Sep 2016 02:15:44 +0000 (19:15 -0700)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 13 Sep 2016 01:08:47 +0000 (10:08 +0900)
EXTCON_PROP_DISP_HPD is need by display port, if the system has no hpd
interrupt, this property can be used.
- HPD (Hot Plug Detect) send the signal whether display device is on or off
  to source device.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
[cw00.choi: Add the description of HPD and full name of HPD]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/linux/extcon.h

index b34d1ae9011f0232ae21f882feb3b4f02a4c2d2d..5c35f9d1822c96ef962c6b04e87e1ccbb94387d8 100644 (file)
 #define EXTCON_PROP_JACK_MAX           100
 #define EXTCON_PROP_JACK_CNT (EXTCON_PROP_JACK_MAX - EXTCON_PROP_JACK_MIN + 1)
 
+/*
+ * Properties of EXTCON_TYPE_DISP.
+ *
+ * - EXTCON_PROP_DISP_HPD (Hot Plug Detect)
+ * @type:       integer (intval)
+ * @value:      0 (no hpd) or 1 (hpd)
+ * @default:    0 (no hpd)
+ *
+ */
+#define EXTCON_PROP_DISP_HPD           150
+
 /* Properties of EXTCON_TYPE_DISP. */
 #define EXTCON_PROP_DISP_MIN           150
-#define EXTCON_PROP_DISP_MAX           150
+#define EXTCON_PROP_DISP_MAX           151
 #define EXTCON_PROP_DISP_CNT (EXTCON_PROP_DISP_MAX - EXTCON_PROP_DISP_MIN + 1)
 
 /*
This page took 0.024836 seconds and 5 git commands to generate.