drivers/video: fsl-diu-fb: only DIU modes 0 and 1 are supported
The Freescale DIU video controller supports five video "modes", but only the first two are used by the driver. The other three are special modes that don't make sense for a framebuffer driver. Therefore, there's no point in keeping a global variable that indicates which mode we're supposed to use. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:

committed by
Florian Tobias Schandinat

parent
7e47c21195
commit
c4e5a02327
@@ -153,12 +153,12 @@ struct diu {
|
||||
__be32 plut;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/* Modes of operation of DIU */
|
||||
/*
|
||||
* Modes of operation of DIU. The DIU supports five different modes, but
|
||||
* the driver only supports modes 0 and 1.
|
||||
*/
|
||||
#define MFB_MODE0 0 /* DIU off */
|
||||
#define MFB_MODE1 1 /* All three planes output to display */
|
||||
#define MFB_MODE2 2 /* Plane 1 to display, planes 2+3 written back*/
|
||||
#define MFB_MODE3 3 /* All three planes written back to memory */
|
||||
#define MFB_MODE4 4 /* Color bar generation */
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* __FSL_DIU_FB_H__ */
|
||||
|
Reference in New Issue
Block a user