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

4.115
Last change on this file since 5b85cca was 5b85cca, checked in by Sebastian Huber <sebastian.huber@…>, on 01/01/14 at 18:40:31

bsps/arm: Use handlers for PL111 set up/tear down

  • Property mode set to 100644
File size: 1.3 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
[5b85cca]18static void fb_set_up(const pl111_fb_config *cfg)
19{
20  /* TODO */
21}
22
23static void fb_pins_set_up(const pl111_fb_config *cfg)
24{
25  /* TODO */
26}
27
28static void fb_pins_tear_down(const pl111_fb_config *cfg)
29{
30  /* TODO */
31}
32
33static void fb_tear_down(const pl111_fb_config *cfg)
34{
35  /* TODO */
36}
37
[c8312b3]38static const pl111_fb_config fb_config = {
39  .regs = (volatile pl111 *) 0x10020000,
40
41  /*
42   * Values obtained from "RealView Platform Baseboard Explore for Cortex-A9
43   * User Guide" section 4.6.1 "Display resolutions and display memory
44   * organization".
45   */
46  .timing0 = 0x3f1f3f9c,
47  .timing1 = 0x090b61df,
48  .timing2 = 0x067f1800,
49
50  .timing3 = 0x0,
51  .control = PL111_LCD_CONTROL_LCD_TFT
52    | PL111_LCD_CONTROL_LCD_BPP(PL111_LCD_CONTROL_LCD_BPP_16),
[5b85cca]53  .power_delay_in_us = 100000,
54  .set_up = fb_set_up,
55  .pins_set_up = fb_pins_set_up,
56  .pins_tear_down = fb_pins_tear_down,
57  .tear_down = fb_tear_down
[c8312b3]58};
59
60const pl111_fb_config *arm_pl111_fb_get_config(void)
61{
62  return &fb_config;
63}
Note: See TracBrowser for help on using the repository browser.