source: rtems/bsps/arm/realview-pbx-a9/console/console-config.c @ 2faea99

5
Last change on this file since 2faea99 was 2faea99, checked in by Sebastian Huber <sebastian.huber@…>, on 11/07/18 at 10:08:50

bsp/realview-pbx-a9: Fix printk() support

Avoid dependencies on the Termios support in case only printk() is used
by the application.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 * Copyright (c) 2013-2014 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.org/license/LICENSE.
13 */
14
15#include <rtems/serial_mouse.h>
16#include <rtems/bspIo.h>
17
18#include <bsp.h>
19#include <bsp/arm-pl050.h>
20#include <bsp/console.h>
21#include <bsp/console-termios.h>
22#include <bsp/irq.h>
23
24static arm_pl050_context pl050_context = {
25  .base = RTEMS_TERMIOS_DEVICE_CONTEXT_INITIALIZER("PL050"),
26  .regs = (volatile pl050 *) 0x10007000,
27  .irq = RVPBXA9_IRQ_KMI1,
28  .initial_baud = 115200
29};
30
31const console_device console_device_table[] = {
32  {
33    .device_file = "/dev/ttyS0",
34    .probe = rvpbx_pl011_probe,
35    .handler = &arm_pl011_fns,
36    .context = &rvpbx_pl011_context.base
37  }, {
38    .device_file = SERIAL_MOUSE_DEVICE_PS2,
39    .probe = console_device_probe_default,
40    .handler = &arm_pl050_fns,
41    .context = &pl050_context.base
42  }
43};
44
45const size_t console_device_count = RTEMS_ARRAY_SIZE(console_device_table);
Note: See TracBrowser for help on using the repository browser.