Datasheet

AVR32416
13
32105-AVR32-07/08
.monitor = "LTV350QV",
.modedb = ltv350qv_modes,
.modedb_len = ARRAY_SIZE(ltv350qv_modes),
.hfmin = 14820,
.hfmax = 22230,
.vfmin = 60,
.vfmax = 90,
.dclkmax = 30000000,
};
The maximum and minimum parameters specified here will make sure that the LCD
controller can not be configured with values that do not fit into that range. A
configuration value below or above the specification will be set to the lower or the
upper limit. This prevents from a faulty configuration of the LCD controller that could
damage an attached LCD. Table 3-6 lists the structure members, which at least
should be set, with a description.
Table 3-6. Monitor specification structure members
Parameter Description
manufacturer Display manufacturer name (max. 4 characters)
monitor Name of the display (max. 14 characters)
modedb Pointer to the video modes array (fb_videomode structure)
modedb_len
Length of the video modes array. The macro ARRAY_SIZE()
can be used to get the length.
hfmin Lower limit of the horizontal display frequency in Hz
hfmax Upper limit of the horizontal display frequency in HZ
vfmin Lower limit of the vertical display frequency in Hz
vfmax Upper limit of the vertical display frequency in Hz
dclkmax Upper limit of the pixel clock
The last structure that is needed is atmel_lcdfb_info. It will be used as the platform
device data and therefore be available for the LCD controller driver to do the default
configuration. The definition of the structure is in include/video/atmel_lcdc.h and
contains some more members as in the example below.
struct atmel_lcdfb_info __initdata atstk1000_lcdc_data = {
.default_bpp = 24,
.default_dmacon = ATMEL_LCDC_DMAEN | ATMEL_LCDC_DMA2DEN,
.default_lcdcon2 = (ATMEL_LCDC_DISTYPE_TFT
| ATMEL_LCDC_INVCLK
| ATMEL_LCDC_CLKMOD_ALWAYSACTIVE
| ATMEL_LCDC_MEMOR_BIG),
.default_monspecs = &atstk1000_default_monspecs,
.guard_time = 2,
};
Table 3-7. LCD controller specific configuration data
Parameter Description