Changeset 3f9cd87d in rtems


Ignore:
Timestamp:
Jul 14, 2014, 2:33:52 PM (5 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
4.11, master
Children:
81329f9
Parents:
1642d27
git-author:
Christian Mauderer <Christian.Mauderer@…> (07/14/14 14:33:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/11/14 06:01:26)
Message:

bsp/altera-cyclone-v: Add a simple I2C driver.

Location:
c/src/lib/libbsp/arm/altera-cyclone-v
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am

    r1642d27 r3f9cd87d  
    5757include_bsp_HEADERS += hwlib/include/alt_generalpurpose_io.h
    5858include_bsp_HEADERS += hwlib/include/alt_hwlibs_ver.h
     59include_bsp_HEADERS += hwlib/include/alt_i2c.h
    5960include_bsp_HEADERS += hwlib/include/alt_interrupt_common.h
    6061include_bsp_HEADERS += hwlib/include/alt_mpu_registers.h
     
    126127libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
    127128libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
     129libbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c
    128130libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
    129131#The following Altera hwlib source files have been left out because so far
     
    194196libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
    195197
     198# I2C
     199libbsp_a_SOURCES += i2c/i2cdrv.c
     200libbsp_a_SOURCES += i2c/i2cdrv-config.c
     201include_bsp_HEADERS += include/i2cdrv.h
     202
    196203# Cache
    197204libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
  • c/src/lib/libbsp/arm/altera-cyclone-v/configure.ac

    r1642d27 r3f9cd87d  
    4747RTEMS_BSPOPTS_HELP([CYCLONE_V_UART_BAUD],[baud for UARTs])
    4848
     49RTEMS_BSPOPTS_SET([CYCLONE_V_NO_I2C],[*],[1])
     50RTEMS_BSPOPTS_HELP([CYCLONE_V_NO_I2C],
     51[Number of configured I2C buses. Note that each bus has to be configured in an
     52apropriate i2cdrv_config array.])
     53
     54RTEMS_BSPOPTS_SET([CYCLONE_V_I2C0_SPEED],[*],[100000])
     55RTEMS_BSPOPTS_HELP([CYCLONE_V_I2C0_SPEED],[speed for I2C0 in HZ])
     56
    4957RTEMS_CHECK_SMP
    5058AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"])
  • c/src/lib/libbsp/arm/altera-cyclone-v/hwlib/README.txt

    r1642d27 r3f9cd87d  
    1212hwlib directory structure. For easy maintenance only whole files have been
    1313left out.
     14
     15Altera provides the hwlib with their SoC Embedded Design Suite (EDS).
     16
     17HWLIB Version:
     18--------------
     19The files have been taken from the following hwlib versions:
     20
     21|========================================
     22| Version | File
     23|         |
     24| 13.0SP1 | include/alt_address_space.h
     25| 13.0SP1 | include/alt_clock_group.h
     26| 13.0SP1 | include/alt_clock_manager.h
     27| 13.0SP1 | include/alt_generalpurpose_io.h
     28| 13.0SP1 | include/alt_hwlibs_ver.h
     29| 13.1    | include/alt_i2c.h
     30| 13.0SP1 | include/alt_interrupt_common.h
     31| 13.0SP1 | include/alt_mpu_registers.h
     32| 13.0SP1 | include/alt_reset_manager.h
     33| 13.0SP1 | include/hwlib.h
     34| 13.0SP1 | include/socal/alt_clkmgr.h
     35| 13.0SP1 | include/socal/alt_gpio.h
     36| 13.1    | include/socal/alt_i2c.h
     37| 13.0SP1 | include/socal/alt_l3.h
     38| 13.0SP1 | include/socal/alt_rstmgr.h
     39| 13.0SP1 | include/socal/alt_sdr.h
     40| 13.0SP1 | include/socal/alt_sysmgr.h
     41| 13.0SP1 | include/socal/alt_uart.h
     42| 13.0SP1 | include/socal/hps.h
     43| 13.0SP1 | include/socal/socal.h
     44| 13.0SP1 | src/hwmgr/alt_address_space.c
     45| 13.0SP1 | src/hwmgr/alt_clock_manager.c
     46| 13.0SP1 | src/hwmgr/alt_generalpurpose_io.c
     47| 13.1    | src/hwmgr/alt_i2c.c
     48| 13.0SP1 | src/hwmgr/alt_reset_manager.c
     49|========================================
     50
     51hwlib 13.0SP1 is from SoC EDS 13.0.1.232
     52hwlib 13.1 is from SoC EDS 14.0.0.200
  • c/src/lib/libbsp/arm/altera-cyclone-v/preinstall.am

    r1642d27 r3f9cd87d  
    66endif
    77
     8all-am: $(PREINSTALL_FILES)
     9
     10PREINSTALL_FILES =
     11CLEANFILES = $(PREINSTALL_FILES)
     12
    813PREINSTALL_DIRS =
    914DISTCLEANFILES += $(PREINSTALL_DIRS)
     
    1217
    1318TMPINSTALL_FILES =
    14 CLEANFILES = $(TMPINSTALL_FILES)
    15 
    16 all-am: $(PREINSTALL_FILES)
    17 
    18 PREINSTALL_FILES =
    19 CLEANFILES += $(PREINSTALL_FILES)
     19CLEANFILES += $(TMPINSTALL_FILES)
    2020
    2121$(PROJECT_LIB)/$(dirstamp):
     
    164164PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_hwlibs_ver.h
    165165
     166$(PROJECT_INCLUDE)/bsp/alt_i2c.h: hwlib/include/alt_i2c.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     167        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_i2c.h
     168PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_i2c.h
     169
    166170$(PROJECT_INCLUDE)/bsp/alt_interrupt_common.h: hwlib/include/alt_interrupt_common.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    167171        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_interrupt_common.h
     
    244248TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.altcycv_devkit_smp
    245249
     250$(PROJECT_INCLUDE)/bsp/i2cdrv.h: include/i2cdrv.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     251        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/i2cdrv.h
     252PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/i2cdrv.h
     253
Note: See TracChangeset for help on using the changeset viewer.