[U-Boot] [PATCH 13/25] video: Add an enum for active low/high

Simon Glass sjg at chromium.org
Fri Jan 15 01:00:02 CET 2016


This is used for video signals in some drivers so provide a standard way
of representing it in an enum.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/video.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/video.h b/include/video.h
index 5b147ba..41e3cbf 100644
--- a/include/video.h
+++ b/include/video.h
@@ -23,6 +23,11 @@ struct video_uc_platdata {
 	ulong base;
 };
 
+enum video_polarity {
+	VIDEO_ACTIVE_HIGH,	/* Pins are active high */
+	VIDEO_ACTIVE_LOW,	/* Pins are active low */
+};
+
 /*
  * Bits per pixel selector. Each value n is such that the bits-per-pixel is
  * 2 ^ n
-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list