2 ** MPC823 Video Controller
3 ** =======================
4 ** (C) 2000 by Paolo Scaffardi (arsenio@tin.it)
5 ** AIRVENT SAM s.p.a - RIMINI(ITALY)
16 int video_init(void *videobase);
17 void video_putc(struct stdio_dev *dev, const char c);
18 void video_puts(struct stdio_dev *dev, const char *s);
21 * Display a BMP format bitmap on the screen
23 * @param bmp_image Address of BMP image
24 * @param x X position to draw image
25 * @param y Y position to draw image
27 int video_display_bitmap(ulong bmp_image, int x, int y);
30 * Get the width of the screen in pixels
32 * @return width of screen in pixels
34 int video_get_pixel_width(void);
37 * Get the height of the screen in pixels
39 * @return height of screen in pixels
41 int video_get_pixel_height(void);
44 * Get the number of text lines/rows on the screen
46 * @return number of rows
48 int video_get_screen_rows(void);
51 * Get the number of text columns on the screen
53 * @return number of columns
55 int video_get_screen_columns(void);
58 * Set the position of the text cursor
60 * @param col Column to place cursor (0 = left side)
61 * @param row Row to place cursor (0 = top line)
63 void video_position_cursor(unsigned col, unsigned row);
65 /* Clear the display */
66 void video_clear(void);
68 #if defined(CONFIG_FORMIKE)
69 int kwh043st20_f01_spi_startup(unsigned int bus, unsigned int cs,
70 unsigned int max_hz, unsigned int spi_mode);
72 #if defined(CONFIG_LG4573)
73 int lg4573_spi_startup(unsigned int bus, unsigned int cs,
74 unsigned int max_hz, unsigned int spi_mode);