Ignore:
Timestamp:
Jun 28, 2013, 7:26:59 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
1b47871d
Parents:
c8312b3
git-author:
Sebastian Huber <sebastian.huber@…> (06/28/13 19:26:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/29/13 13:15:50)
Message:

bsps/arm: Add PL050 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/realview-pbx-a9/console/console-config.c

    rc8312b3 r3b645c1  
    1313 */
    1414
     15#include <rtems/serial_mouse.h>
     16
    1517#include <libchip/serial.h>
    1618
     
    1820#include <bsp/irq.h>
    1921#include <bsp/arm-pl011.h>
     22#include <bsp/arm-pl050.h>
     23
     24static const char psaux[] = "/dev/psaux";
    2025
    2126console_tbl Console_Configuration_Ports[] = {
     
    3843    .ulClock = 0,
    3944    .ulIntVector = RVPBXA9_IRQ_UART_0
     45  }, {
     46    .sDeviceName = &psaux[0],
     47    .deviceType = SERIAL_CUSTOM,
     48    .pDeviceFns = &arm_pl050_fns,
     49    .deviceProbe = NULL,
     50    .pDeviceFlow = NULL,
     51    .ulMargin = 10,
     52    .ulHysteresis = 0,
     53    .pDeviceParams = (void *) 115200,
     54    .ulCtrlPort1 = 0x10007000,
     55    .ulCtrlPort2 = 0,
     56    .ulDataPort = 0,
     57    .getRegister = NULL,
     58    .setRegister = NULL,
     59    .getData = NULL,
     60    .setData = NULL,
     61    .ulClock = 0,
     62    .ulIntVector = RVPBXA9_IRQ_KMI1
    4063  }
    4164};
     
    7497
    7598BSP_polling_getchar_function_type BSP_poll_char = NULL;
     99
     100bool bsp_get_serial_mouse_device(
     101  const char **name,
     102  const char **type
     103)
     104{
     105  *name = &psaux[0];
     106  *type = "ps2";
     107
     108  return true;
     109}
Note: See TracChangeset for help on using the changeset viewer.