Changeset 0f4b911c in rtems


Ignore:
Timestamp:
Jul 17, 2020, 5:54:43 AM (4 weeks ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
master
Children:
29a73d8
Parents:
a3bcc79
git-author:
Christian Mauderer <christian.mauderer@…> (07/17/20 05:54:43)
git-committer:
Christian Mauderer <christian.mauderer@…> (07/31/20 06:26:14)
Message:

bsp/imx: Add a GPIO driver

Update 3869

Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/imx/headers.am

    ra3bcc79 r0f4b911c  
    2020include_bspdir = $(includedir)/bsp
    2121include_bsp_HEADERS =
     22include_bsp_HEADERS += ../../../../../../bsps/arm/imx/include/bsp/imx-gpio.h
    2223include_bsp_HEADERS += ../../../../../../bsps/arm/imx/include/bsp/irq.h
  • bsps/arm/imx/include/bsp/irq.h

    ra3bcc79 r0f4b911c  
    2929#define BSP_INTERRUPT_VECTOR_MIN 0
    3030#define BSP_INTERRUPT_VECTOR_MAX 159
     31#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
    3132
    3233#ifdef __cplusplus
  • bsps/arm/imx/start/bspstart.c

    ra3bcc79 r0f4b911c  
    4848  val = fdt_getprop(fdt, node, "interrupts", &len);
    4949  if (val == NULL || len < (int) ((index + 1) * 12)) {
    50     return UINT32_MAX;
     50    return BSP_INTERRUPT_VECTOR_INVALID;
    5151  }
    5252
  • bsps/include/bsp/fatal.h

    ra3bcc79 r0f4b911c  
    139139  /* i.MX fatal codes */
    140140  IMX_FATAL_GENERIC_TIMER_FREQUENCY = BSP_FATAL_CODE_BLOCK(12),
     141  IMX_FATAL_GPIO_UNEXPECTED_FDT,
    141142
    142143  /* RISC-V fatal codes */
  • c/src/lib/libbsp/arm/imx/Makefile.am

    ra3bcc79 r0f4b911c  
    6565librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-v7ar-disable-data.S
    6666
     67# GPIO
     68librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/gpio/imx-gpio.c
     69
    6770# I2C
    6871librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/imx/i2c/imx-i2c.c
Note: See TracChangeset for help on using the changeset viewer.