Changeset 6b5df95 in rtems


Ignore:
Timestamp:
Aug 12, 2015, 10:06:49 PM (5 years ago)
Author:
YANG Qiao <yangqiao0505@…>
Branches:
5, master
Children:
a9cc6a84
Parents:
c12069e
git-author:
YANG Qiao <yangqiao0505@…> (08/12/15 22:06:49)
git-committer:
Pavel Pisa <ppisa@…> (05/31/16 08:33:44)
Message:

arm/raspberrypi: add fbcons support for rpi bsp

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

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/raspberrypi/Makefile.am

    rc12069e r6b5df95  
    5454include_bsp_HEADERS += include/vc.h
    5555include_bsp_HEADERS += include/rpi-fb.h
     56include_bsp_HEADERS += console/fbcons.h
    5657
    5758include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache_.h \
     
    114115libbsp_a_SOURCES += ../../shared/console_control.c
    115116libbsp_a_SOURCES += ../../shared/console_read.c
    116 libbsp_a_SOURCES += ../../shared/console_select.c
    117117libbsp_a_SOURCES += ../../shared/console_write.c
    118118libbsp_a_SOURCES += console/console-config.c
     119libbsp_a_SOURCES += console/console_select.c
    119120libbsp_a_SOURCES += console/usart.c
    120121libbsp_a_SOURCES += console/fb.c
     122libbsp_a_SOURCES += console/fbcons.c
    121123libbsp_a_SOURCES += console/outch.c
    122124
  • c/src/lib/libbsp/arm/raspberrypi/console/console-config.c

    rc12069e r6b5df95  
    88
    99/*
     10 * Copyright (c) 2015 Yang Qiao
     11 * based on work by:
    1012 * Copyright (c) 2013 Alan Cudmore
    1113 *
     
    2527#include <bsp/usart.h>
    2628#include <bsp/raspberrypi.h>
     29#include <bsp/fbcons.h>
    2730
    2831console_tbl Console_Configuration_Ports [] = {
     
    3740      .ulClock = USART0_DEFAULT_BAUD,
    3841      .ulIntVector = BCM2835_IRQ_ID_UART
    39     }
     42    },
     43    {
     44      .sDeviceName ="/dev/fbcons",
     45      .deviceType = SERIAL_CUSTOM,
     46      .pDeviceFns = &fbcons_fns,
     47      .deviceProbe = fbcons_probe,
     48      .pDeviceFlow = NULL,
     49    },
    4050};
    4151
  • c/src/lib/libbsp/arm/raspberrypi/include/bsp.h

    rc12069e r6b5df95  
    3939#define BSP_GPIO_PINS_PER_SELECT_BANK 10
    4040
     41#define BSP_CONSOLE_UART0   0
     42#define BSP_CONSOLE_FB      1
     43
    4144void rpi_init_cmdline(void);
    4245const char *rpi_cmdline_get_cached(void);
  • c/src/lib/libbsp/arm/raspberrypi/preinstall.am

    rc12069e r6b5df95  
    159159PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/rpi-fb.h
    160160
     161$(PROJECT_INCLUDE)/bsp/fbcons.h: console/fbcons.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     162        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/fbcons.h
     163PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/fbcons.h
     164
    161165$(PROJECT_INCLUDE)/libcpu/cache_.h: ../../../libcpu/arm/shared/include/cache_.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    162166        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache_.h
  • c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c

    rc12069e r6b5df95  
    2828#include <bsp/mm.h>
    2929#include <libcpu/arm-cp15.h>
     30#include <bsp.h>
     31
    3032
    3133void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
     
    7274  bsp_memory_management_initialize();
    7375  bsp_start_clear_bss();
     76
     77  rpi_video_init();
    7478}
Note: See TracChangeset for help on using the changeset viewer.