Changeset 33e39d31 in rtems


Ignore:
Timestamp:
Aug 12, 2015, 10:04:33 PM (5 years ago)
Author:
YANG Qiao <yangqiao0505@…>
Branches:
master
Children:
54c197a
Parents:
1258229
git-author:
YANG Qiao <yangqiao0505@…> (08/12/15 22:04:33)
git-committer:
Pavel Pisa <ppisa@…> (05/19/16 11:21:40)
Message:

arm/raspberrypi: add VideoCore? mailbox support read and write

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

Legend:

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

    r1258229 r33e39d31  
    4949include_bsp_HEADERS += include/i2c.h
    5050include_bsp_HEADERS += include/spi.h
     51include_bsp_HEADERS += include/mailbox.h
    5152
    5253include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache_.h \
     
    113114libbsp_a_SOURCES += console/usart.c
    114115
     116# Mailbox
     117libbsp_a_SOURCES += misc/mailbox.c
     118
    115119# clock
    116120libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
  • c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h

    r1258229 r33e39d31  
    1010 *  Copyright (c) 2014-2015 Andre Marques <andre.lousa.marques at gmail.com>
    1111 *  Copyright (c) 2013 Alan Cudmore.
     12 *  Copyright (c) 2015 Yang Qiao
    1213 *
    1314 *  The license and distribution terms for this file may be
     
    288289/** @} */
    289290
     291/**
     292* @name Mailbox Registers
     293*
     294* @{
     295*/
     296
     297#define BCM2835_MBOX_BASE   (RPI_PERIPHERAL_BASE+0xB880)
     298
     299#define BCM2835_MBOX_PEEK   (BCM2835_MBOX_BASE+0x10)
     300#define BCM2835_MBOX_READ   (BCM2835_MBOX_BASE+0x00)
     301#define BCM2835_MBOX_WRITE  (BCM2835_MBOX_BASE+0x20)
     302#define BCM2835_MBOX_STATUS (BCM2835_MBOX_BASE+0x18)
     303#define BCM2835_MBOX_SENDER (BCM2835_MBOX_BASE+0x14)
     304#define BCM2835_MBOX_CONFIG (BCM2835_MBOX_BASE+0x1C)
     305
     306#define BCM2835_MBOX_FULL   0x80000000
     307#define BCM2835_MBOX_EMPTY  0x40000000
     308
     309/** @} */
     310
     311/**
     312* @name Mailbox Channels
     313*
     314* @{
     315*/
     316
     317/* Power Manager channel */
     318#define BCM2835_MBOX_CHANNEL_PM         0
     319/* Framebuffer channel */
     320#define BCM2835_MBOX_CHANNEL_FB         1
     321 /* Virtual UART channel */
     322#define BCM2835_MBOX_CHANNEL_VUART      2
     323 /* VCHIQ channel */
     324#define BCM2835_MBOX_CHANNEL_VCHIQ      3
     325 /* LEDs channel */
     326#define BCM2835_MBOX_CHANNEL_LED        4
     327 /* Button channel */
     328#define BCM2835_MBOX_CHANNEL_BUTTON     5
     329 /* Touch screen channel */
     330#define BCM2835_MBOX_CHANNEL_TOUCHS     6
     331/* Property tags (ARM <-> VC) channel */
     332#define BCM2835_MBOX_CHANNEL_PROP_AVC   8
     333 /* Property tags (VC <-> ARM) channel */
     334#define BCM2835_MBOX_CHANNEL_PROP_VCA   9
     335
     336/** @} */
     337
     338
    290339/** @} */
    291340
  • c/src/lib/libbsp/arm/raspberrypi/preinstall.am

    r1258229 r33e39d31  
    147147PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/spi.h
    148148
     149$(PROJECT_INCLUDE)/bsp/mailbox.h: include/mailbox.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/mailbox.h
     151PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/mailbox.h
     152
    149153$(PROJECT_INCLUDE)/libcpu/cache_.h: ../../../libcpu/arm/shared/include/cache_.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    150154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache_.h
Note: See TracChangeset for help on using the changeset viewer.