Changeset 3b645c1 in rtems


Ignore:
Timestamp:
Jun 28, 2013, 7:26:59 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 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

Location:
c/src/lib/libbsp/arm
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am

    rc8312b3 r3b645c1  
    4444include_bsp_HEADERS += ../shared/include/arm-pl011.h
    4545include_bsp_HEADERS += ../shared/include/arm-pl011-regs.h
     46include_bsp_HEADERS += ../shared/include/arm-pl050.h
     47include_bsp_HEADERS += ../shared/include/arm-pl050-regs.h
    4648include_bsp_HEADERS += ../shared/include/arm-pl111-fb.h
    4749include_bsp_HEADERS += ../shared/include/arm-pl111-regs.h
     
    113115libbsp_a_SOURCES += ../../shared/console_write.c
    114116libbsp_a_SOURCES += ../shared/arm-pl011.c
     117libbsp_a_SOURCES += ../shared/arm-pl050.c
    115118libbsp_a_SOURCES += console/console-config.c
    116119
  • 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}
  • c/src/lib/libbsp/arm/realview-pbx-a9/preinstall.am

    rc8312b3 r3b645c1  
    127127PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/arm-pl011-regs.h
    128128
     129$(PROJECT_INCLUDE)/bsp/arm-pl050.h: ../shared/include/arm-pl050.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     130        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/arm-pl050.h
     131PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/arm-pl050.h
     132
     133$(PROJECT_INCLUDE)/bsp/arm-pl050-regs.h: ../shared/include/arm-pl050-regs.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     134        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/arm-pl050-regs.h
     135PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/arm-pl050-regs.h
     136
    129137$(PROJECT_INCLUDE)/bsp/arm-pl111-fb.h: ../shared/include/arm-pl111-fb.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    130138        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/arm-pl111-fb.h
Note: See TracChangeset for help on using the changeset viewer.