summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/shared/include/arm-pl111-fb.h
blob: 0503c6c17237f6e1f7beb2208a375560d4175587 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Dornierstr. 4
 *  82178 Puchheim
 *  Germany
 *  <info@embedded-brains.de>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.com/license/LICENSE.
 */

#ifndef LIBBSP_ARM_SHARED_ARM_PL111_FB_H
#define LIBBSP_ARM_SHARED_ARM_PL111_FB_H

#include <bsp/arm-pl111-regs.h>

typedef struct {
  volatile pl111 *regs;
  uint32_t timing0;
  uint32_t timing1;
  uint32_t timing2;
  uint32_t timing3;
  uint32_t control;
  uint32_t power_delay_in_us;
} pl111_fb_config;

const pl111_fb_config *arm_pl111_fb_get_config(void);

void arm_pl111_fb_pins_set_up(const pl111_fb_config *cfg);

void arm_pl111_fb_pins_tear_down(const pl111_fb_config *cfg);

#endif /* LIBBSP_ARM_SHARED_ARM_PL111_FB_H */