]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: add omapdss_version
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 28 Sep 2012 09:42:28 +0000 (12:42 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 16 Oct 2012 10:43:56 +0000 (13:43 +0300)
commitdacbed5a393696d95fbee68cf45ee87e503311a3
tree5f48050c869c8d36135c1685ddc869776cc6f751
parent0d577442d51c1c4ffe9f108f9f6058d85b2c42c9
OMAPDSS: add omapdss_version

Add new enum, omapdss_version, that is used to tell which DSS hardware
version the SoC has. This enum is initialized during platform init, and
passed in the platform data to omapdss driver.

Note that the versions are not "continuous", that is, you cannot check
if the version is less or greater than something, but you need to check
for exact version match. In other words, this is invalid:

/* test if DSS is 3630 or earlier */
if (ver <= OMAPDSS_VER_OMAP3630)
...

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
arch/arm/mach-omap2/display.c
include/video/omapdss.h