Changeset 3fd8cf2d in rtems


Ignore:
Timestamp:
10/18/22 17:11:29 (8 months ago)
Author:
Ryan Long <ryan.long@…>
Branches:
master
Children:
9d5354e
Parents:
cbac78a
git-author:
Ryan Long <ryan.long@…> (10/18/22 17:11:29)
git-committer:
Joel Sherrill <joel@…> (02/06/23 20:29:24)
Message:

bsps/microblaze: Add device tree support to JFFS2 QSPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/microblaze/microblaze_fpga/fs/jffs2_qspi.c

    rcbac78a r3fd8cf2d  
    4747#include <rtems/libio.h>
    4848
     49#include <bsp.h>
    4950#include <bsp/jffs2_qspi.h>
    5051
     
    287288  int fd = -1;
    288289
     290  uintptr_t mblaze_spi_base = try_get_prop_from_device_tree(
     291    "xlnx,xps-spi-2.00.a",
     292    "reg",
     293    BSP_MICROBLAZE_FPGA_SPI_BASE
     294  );
     295
     296  rtems_vector_number mblaze_spi_irq_num = try_get_prop_from_device_tree(
     297    "xlnx,xps-spi-2.00.a",
     298    "interrupts",
     299    BSP_MICROBLAZE_FPGA_SPI_IRQ_NUM
     300  );
     301
    289302  rv = spi_bus_register_xilinx_axi(
    290303    BUS_PATH,
    291     BSP_MICROBLAZE_FPGA_SPI_BASE,
     304    mblaze_spi_base,
    292305    FLASH_PAGE_SIZE,
    293306    FLASH_NUM_CS,
    294     BSP_MICROBLAZE_FPGA_SPI_IRQ_NUM
     307    mblaze_spi_irq_num
    295308  );
    296309  if ( rv != 0 ) {
Note: See TracChangeset for help on using the changeset viewer.