source: rtems/c/src/lib/libbsp/arm/realview-pbx-a9/startup/fb-config.c @ c8312b3

4.115
Last change on this file since c8312b3 was c8312b3, checked in by Sebastian Huber <sebastian.huber@…>, on 06/23/13 at 12:39:47

bsps/arm: Add PL111 support

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[c8312b3]1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#include <bsp/arm-pl111-fb.h>
16#include <bsp.h>
17
18static const pl111_fb_config fb_config = {
19  .regs = (volatile pl111 *) 0x10020000,
20
21  /*
22   * Values obtained from "RealView Platform Baseboard Explore for Cortex-A9
23   * User Guide" section 4.6.1 "Display resolutions and display memory
24   * organization".
25   */
26  .timing0 = 0x3f1f3f9c,
27  .timing1 = 0x090b61df,
28  .timing2 = 0x067f1800,
29
30  .timing3 = 0x0,
31  .control = PL111_LCD_CONTROL_LCD_TFT
32    | PL111_LCD_CONTROL_LCD_BPP(PL111_LCD_CONTROL_LCD_BPP_16),
33  .power_delay_in_us = 100000
34};
35
36const pl111_fb_config *arm_pl111_fb_get_config(void)
37{
38  return &fb_config;
39}
40
41void arm_pl111_fb_pins_set_up(const pl111_fb_config *cfg)
42{
43  /* TODO */
44}
45
46void arm_pl111_fb_pins_tear_down(const pl111_fb_config *cfg)
47{
48  /* TODO */
49}
Note: See TracBrowser for help on using the repository browser.