mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 15:54:37 +08:00
bsp/altera-cyclone-v: Add DMA support hwlib files
This commit is contained in:
@@ -51,23 +51,25 @@ include_bsp_HEADERS += include/irq.h
|
||||
include_bsp_HEADERS += include/nocache-heap.h
|
||||
|
||||
# Altera hwlib
|
||||
include_bsp_HEADERS += hwlib/include/alt_16550_uart.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_address_space.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_cache.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_clock_group.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_clock_manager.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_dma_common.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_dma.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_dma_program.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_generalpurpose_io.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_hwlibs_ver.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_i2c.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_interrupt_common.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_mpu_registers.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_qspi_private.h
|
||||
include_bsp_HEADERS += hwlib/include/alt_reset_manager.h
|
||||
include_bsp_HEADERS += hwlib/include/hwlib.h
|
||||
#The following Altera hwlib header files have been left out because so far
|
||||
#they are not required:
|
||||
#include_bsp_HEADERS += hwlib/include/alt_16550_uart.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_dma_common.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_dma_program.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_dma.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_globaltmr.h
|
||||
#include_bsp_HEADERS += hwlib/include/alt_system_manager.h
|
||||
@@ -79,9 +81,13 @@ include_bsp_HEADERS += hwlib/include/hwlib.h
|
||||
# Some of the headers from hwlib need the files from socal. Install them.
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_acpidmap.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_clkmgr.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_dmanonsecure.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_dmasecure.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_gpio.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_i2c.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_l3.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_qspidata.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_qspi.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_rstmgr.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_sdr.h
|
||||
include_bsp_socal_HEADERS += hwlib/include/socal/alt_sysmgr.h
|
||||
@@ -124,17 +130,18 @@ libbsp_a_CPPFLAGS += -std=gnu99
|
||||
CFLAGS += -Wno-missing-prototypes
|
||||
|
||||
# hwlib from Altera
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_qspi.c
|
||||
libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
|
||||
#The following Altera hwlib source files have been left out because so far
|
||||
#they are not required:
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c
|
||||
#libbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,162 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright 2013 Altera Corporation. All Rights Reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO
|
||||
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
||||
* OF SUCH DAMAGE.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef __ALT_DMA_COMMON_H__
|
||||
#define __ALT_DMA_COMMON_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/*!
|
||||
* \addtogroup ALT_DMA_COMMON DMA Controller Common API Definitions
|
||||
*
|
||||
* This module contains the common definitions for the DMA controller related
|
||||
* APIs.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*!
|
||||
* This type definition enumerates the DMA controller channel threads.
|
||||
*/
|
||||
typedef enum ALT_DMA_CHANNEL_e
|
||||
{
|
||||
ALT_DMA_CHANNEL_0 = 0, /*!< DMA Channel Thread 0 */
|
||||
ALT_DMA_CHANNEL_1 = 1, /*!< DMA Channel Thread 1 */
|
||||
ALT_DMA_CHANNEL_2 = 2, /*!< DMA Channel Thread 2 */
|
||||
ALT_DMA_CHANNEL_3 = 3, /*!< DMA Channel Thread 3 */
|
||||
ALT_DMA_CHANNEL_4 = 4, /*!< DMA Channel Thread 4 */
|
||||
ALT_DMA_CHANNEL_5 = 5, /*!< DMA Channel Thread 5 */
|
||||
ALT_DMA_CHANNEL_6 = 6, /*!< DMA Channel Thread 6 */
|
||||
ALT_DMA_CHANNEL_7 = 7 /*!< DMA Channel Thread 7 */
|
||||
}
|
||||
ALT_DMA_CHANNEL_t;
|
||||
|
||||
/*!
|
||||
* This type definition enumerates the SoC system peripherals implementing the
|
||||
* required request interface that enables direct DMA transfers to/from the
|
||||
* device.
|
||||
*
|
||||
* FPGA soft IP interface to the DMA are required to comply with the Synopsys
|
||||
* protocol.
|
||||
*
|
||||
* Request interface numbers 4 through 7 are multiplexed between the CAN
|
||||
* controllers and soft logic implemented in the FPGA fabric. The selection
|
||||
* between the CAN controller and FPGA interfaces is determined at DMA
|
||||
* initialization.
|
||||
*/
|
||||
typedef enum ALT_DMA_PERIPH_e
|
||||
{
|
||||
ALT_DMA_PERIPH_FPGA_0 = 0, /*!< FPGA soft IP interface 0 */
|
||||
ALT_DMA_PERIPH_FPGA_1 = 1, /*!< FPGA soft IP interface 1 */
|
||||
ALT_DMA_PERIPH_FPGA_2 = 2, /*!< FPGA soft IP interface 2 */
|
||||
ALT_DMA_PERIPH_FPGA_3 = 3, /*!< FPGA soft IP interface 3 */
|
||||
|
||||
ALT_DMA_PERIPH_FPGA_4_OR_CAN0_IF1 = 4, /*!< Selectively MUXed FPGA 4 or CAN 0 interface 1 */
|
||||
ALT_DMA_PERIPH_FPGA_5_OR_CAN0_IF2 = 5, /*!< Selectively MUXed FPGA 5 or CAN 0 interface 2 */
|
||||
ALT_DMA_PERIPH_FPGA_6_OR_CAN1_IF1 = 6, /*!< Selectively MUXed FPGA 6 or CAN 1 interface 1 */
|
||||
ALT_DMA_PERIPH_FPGA_7_OR_CAN1_IF2 = 7, /*!< Selectively MUXed FPGA 7 or CAN 1 interface 2 */
|
||||
|
||||
ALT_DMA_PERIPH_FPGA_4 = 4, /*!< Alias for ALT_DMA_PERIPH_FPGA_4_OR_CAN0_IF1 */
|
||||
ALT_DMA_PERIPH_FPGA_5 = 5, /*!< Alias for ALT_DMA_PERIPH_FPGA_5_OR_CAN0_IF2 */
|
||||
ALT_DMA_PERIPH_FPGA_6 = 6, /*!< Alias for ALT_DMA_PERIPH_FPGA_6_OR_CAN1_IF1 */
|
||||
ALT_DMA_PERIPH_FPGA_7 = 7, /*!< Alias for ALT_DMA_PERIPH_FPGA_7_OR_CAN1_IF2 */
|
||||
|
||||
ALT_DMA_PERIPH_CAN0_IF1 = 4, /*!< Alias for ALT_DMA_PERIPH_FPGA_4_OR_CAN0_IF1 */
|
||||
ALT_DMA_PERIPH_CAN0_IF2 = 5, /*!< Alias for ALT_DMA_PERIPH_FPGA_5_OR_CAN0_IF2 */
|
||||
ALT_DMA_PERIPH_CAN1_IF1 = 6, /*!< Alias for ALT_DMA_PERIPH_FPGA_6_OR_CAN1_IF1 */
|
||||
ALT_DMA_PERIPH_CAN1_IF2 = 7, /*!< Alias for ALT_DMA_PERIPH_FPGA_7_OR_CAN1_IF2 */
|
||||
|
||||
ALT_DMA_PERIPH_I2C0_TX = 8, /*!< I<sup>2</sup>C 0 TX */
|
||||
ALT_DMA_PERIPH_I2C0_RX = 9, /*!< I<sup>2</sup>C 0 RX */
|
||||
ALT_DMA_PERIPH_I2C1_TX = 10, /*!< I<sup>2</sup>C 1 TX */
|
||||
ALT_DMA_PERIPH_I2C1_RX = 11, /*!< I<sup>2</sup>C 1 RX */
|
||||
ALT_DMA_PERIPH_I2C2_TX = 12, /*!< I<sup>2</sup>C 2 TX */
|
||||
ALT_DMA_PERIPH_I2C2_RX = 13, /*!< I<sup>2</sup>C 2 RX */
|
||||
ALT_DMA_PERIPH_I2C3_TX = 14, /*!< I<sup>2</sup>C 3 TX */
|
||||
ALT_DMA_PERIPH_I2C3_RX = 15, /*!< I<sup>2</sup>C 3 RX */
|
||||
ALT_DMA_PERIPH_SPI0_MASTER_TX = 16, /*!< SPI 0 Master TX */
|
||||
ALT_DMA_PERIPH_SPI0_MASTER_RX = 17, /*!< SPI 0 Master RX */
|
||||
ALT_DMA_PERIPH_SPI0_SLAVE_TX = 18, /*!< SPI 0 Slave TX */
|
||||
ALT_DMA_PERIPH_SPI0_SLAVE_RX = 19, /*!< SPI 0 Slave RX */
|
||||
ALT_DMA_PERIPH_SPI1_MASTER_TX = 20, /*!< SPI 1 Master TX */
|
||||
ALT_DMA_PERIPH_SPI1_MASTER_RX = 21, /*!< SPI 1 Master RX */
|
||||
ALT_DMA_PERIPH_SPI1_SLAVE_TX = 22, /*!< SPI 1 Slave TX */
|
||||
ALT_DMA_PERIPH_SPI1_SLAVE_RX = 23, /*!< SPI 1 Slave RX */
|
||||
ALT_DMA_PERIPH_QSPI_FLASH_TX = 24, /*!< QSPI Flash TX */
|
||||
ALT_DMA_PERIPH_QSPI_FLASH_RX = 25, /*!< QSPI Flash RX */
|
||||
ALT_DMA_PERIPH_STM = 26, /*!< System Trace Macrocell */
|
||||
ALT_DMA_PERIPH_RESERVED = 27, /*!< Reserved */
|
||||
ALT_DMA_PERIPH_UART0_TX = 28, /*!< UART 0 TX */
|
||||
ALT_DMA_PERIPH_UART0_RX = 29, /*!< UART 0 RX */
|
||||
ALT_DMA_PERIPH_UART1_TX = 30, /*!< UART 1 TX */
|
||||
ALT_DMA_PERIPH_UART1_RX = 31 /*!< UART 1 RX */
|
||||
}
|
||||
ALT_DMA_PERIPH_t;
|
||||
|
||||
/*!
|
||||
* This type enumerates the DMA security state options available.
|
||||
*/
|
||||
typedef enum ALT_DMA_SECURITY_e
|
||||
{
|
||||
ALT_DMA_SECURITY_DEFAULT = 0, /*!< Use the default security value (e.g. reset default) */
|
||||
ALT_DMA_SECURITY_SECURE = 1, /*!< Secure */
|
||||
ALT_DMA_SECURITY_NONSECURE = 2 /*!< Non-secure */
|
||||
}
|
||||
ALT_DMA_SECURITY_t;
|
||||
|
||||
/*!
|
||||
* This type definition enumerates the DMA event-interrupt resources.
|
||||
*/
|
||||
typedef enum ALT_DMA_EVENT_e
|
||||
{
|
||||
ALT_DMA_EVENT_0 = 0, /*!< DMA Event 0 */
|
||||
ALT_DMA_EVENT_1 = 1, /*!< DMA Event 1 */
|
||||
ALT_DMA_EVENT_2 = 2, /*!< DMA Event 2 */
|
||||
ALT_DMA_EVENT_3 = 3, /*!< DMA Event 3 */
|
||||
ALT_DMA_EVENT_4 = 4, /*!< DMA Event 4 */
|
||||
ALT_DMA_EVENT_5 = 5, /*!< DMA Event 5 */
|
||||
ALT_DMA_EVENT_6 = 6, /*!< DMA Event 6 */
|
||||
ALT_DMA_EVENT_7 = 7, /*!< DMA Event 7 */
|
||||
ALT_DMA_EVENT_ABORT = 8 /*!< DMA Abort Event */
|
||||
}
|
||||
ALT_DMA_EVENT_t;
|
||||
|
||||
/*!
|
||||
* @}
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __ALT_DMA_COMMON_H__ */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,167 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright 2013 Altera Corporation. All Rights Reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO
|
||||
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
||||
* OF SUCH DAMAGE.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
/*! \file
|
||||
* Altera - QSPI Flash Controller Module
|
||||
*/
|
||||
|
||||
#ifndef __ALT_QSPI_PRIVATE_H__
|
||||
#define __ALT_QSPI_PRIVATE_H__
|
||||
|
||||
#include "socal/socal.h"
|
||||
|
||||
//
|
||||
// This section provisions support for various flash devices.
|
||||
//
|
||||
|
||||
#define ALT_QSPI_PROVISION_MICRON_N25Q_SUPPORT 1
|
||||
|
||||
/////
|
||||
|
||||
#define ALT_QSPI_PAGE_ADDR_MSK 0xFFFFFF00
|
||||
#define ALT_QSPI_PAGE_SIZE 0x00000100 // 256 B
|
||||
#define ALT_QSPI_SUBSECTOR_ADDR_MSK 0xFFFFF000
|
||||
#define ALT_QSPI_SUBSECTOR_SIZE 0x00001000 // 4096 B
|
||||
#define ALT_QSPI_SECTOR_ADDR_MSK 0xFFFF0000
|
||||
#define ALT_QSPI_SECTOR_SIZE 0x00010000 // 64 KiB
|
||||
#define ALT_QSPI_BANK_ADDR_MSK 0xFF000000
|
||||
#define ALT_QSPI_BANK_SIZE 0x01000000 // 16 MiB
|
||||
|
||||
#if ALT_QSPI_PROVISION_MICRON_N25Q_SUPPORT
|
||||
#define ALT_QSPI_N25Q_DIE_ADDR_MSK 0xFE000000
|
||||
#define ALT_QSPI_N25Q_DIE_SIZE 0x02000000 // 32 MiB
|
||||
#endif
|
||||
|
||||
/////
|
||||
|
||||
// Default delay timing (in ns) for N25Q.
|
||||
// These values are from the N25Q handbook. The timing correctness is difficult
|
||||
// to test because the test setup does not feature mutliple chips.
|
||||
#define ALT_QSPI_TSHSL_NS_DEF (50)
|
||||
#define ALT_QSPI_TSD2D_NS_DEF (0)
|
||||
#define ALT_QSPI_TCHSH_NS_DEF (4)
|
||||
#define ALT_QSPI_TSLCH_NS_DEF (4)
|
||||
|
||||
/*
|
||||
// Default delay timing (in ns)
|
||||
#define ALT_QSPI_TSHSL_NS_DEF (200)
|
||||
#define ALT_QSPI_TSD2D_NS_DEF (255)
|
||||
#define ALT_QSPI_TCHSH_NS_DEF (20)
|
||||
#define ALT_QSPI_TSLCH_NS_DEF (20)
|
||||
*/
|
||||
|
||||
// Flash commands
|
||||
#define ALT_QSPI_STIG_OPCODE_READ (0x03)
|
||||
#define ALT_QSPI_STIG_OPCODE_4BYTE_READ (0x13)
|
||||
#define ALT_QSPI_STIG_OPCODE_FASTREAD (0x0B)
|
||||
#define ALT_QSPI_STIG_OPCODE_FASTREAD_DUAL_OUTPUT (0x3B)
|
||||
#define ALT_QSPI_STIG_OPCODE_FASTREAD_QUAD_OUTPUT (0x6B)
|
||||
#define ALT_QSPI_STIG_OPCODE_FASTREAD_DUAL_IO (0xBB)
|
||||
#define ALT_QSPI_STIG_OPCODE_FASTREAD_QUAD_IO (0xEB)
|
||||
#define ALT_QSPI_STIG_OPCODE_PP (0x02)
|
||||
#define ALT_QSPI_STIG_OPCODE_DUAL_PP (0xA2)
|
||||
#define ALT_QSPI_STIG_OPCODE_QUAD_PP (0x32)
|
||||
#define ALT_QSPI_STIG_OPCODE_RDID (0x9F)
|
||||
#define ALT_QSPI_STIG_OPCODE_WREN (0x06)
|
||||
#define ALT_QSPI_STIG_OPCODE_WRDIS (0x04)
|
||||
#define ALT_QSPI_STIG_OPCODE_RDSR (0x05)
|
||||
#define ALT_QSPI_STIG_OPCODE_WRSR (0x01)
|
||||
#define ALT_QSPI_STIG_OPCODE_SUBSEC_ERASE (0x20)
|
||||
#define ALT_QSPI_STIG_OPCODE_SEC_ERASE (0xD8)
|
||||
#define ALT_QSPI_STIG_OPCODE_BULK_ERASE (0xC7)
|
||||
#define ALT_QSPI_STIG_OPCODE_DIE_ERASE (0xC4)
|
||||
#define ALT_QSPI_STIG_OPCODE_CHIP_ERASE (0x60)
|
||||
#define ALT_QSPI_STIG_OPCODE_RD_EXT_REG (0xC8)
|
||||
#define ALT_QSPI_STIG_OPCODE_WR_EXT_REG (0xC5)
|
||||
#define ALT_QSPI_STIG_OPCODE_RD_STAT_REG (0x05)
|
||||
#define ALT_QSPI_STIG_OPCODE_WR_STAT_REG (0x01)
|
||||
#define ALT_QSPI_STIG_OPCODE_ENTER_4BYTE_MODE (0xB7)
|
||||
#define ALT_QSPI_STIG_OPCODE_EXIT_4BYTE_MODE (0xE9)
|
||||
|
||||
// Micron commands, for 512 Mib, 1 Gib (64 MiB, 128 MiB) parts.
|
||||
#if ALT_QSPI_PROVISION_MICRON_N25Q_SUPPORT
|
||||
#define ALT_QSPI_STIG_OPCODE_RESET_EN (0x66)
|
||||
#define ALT_QSPI_STIG_OPCODE_RESET_MEM (0x99)
|
||||
#define ALT_QSPI_STIG_OPCODE_RDFLGSR (0x70)
|
||||
#define ALT_QSPI_STIG_OPCODE_CLRFLGSR (0x50)
|
||||
#define ALT_QSPI_STIG_OPCODE_DISCVR_PARAM (0x5A)
|
||||
#endif
|
||||
|
||||
// Spansion commands
|
||||
// #define OPCODE_ECRM (0xFF) // Exit continuous read mode
|
||||
|
||||
#define QSPI_READ_CLK_MHZ (50)
|
||||
#define QSPI_FASTREAD_CLK_MHZ (100)
|
||||
|
||||
// Manufacturer ID
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_MICRON (0x20)
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_NUMONYX (0x20) // Same as Micron
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_SPANSION (0xEF)
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_WINBOND (0xEF) // Same as Spansion
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_MACRONIC (0xC2)
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_ATMEL (0x1F)
|
||||
|
||||
#define ALT_QSPI_STIG_RDID_JEDECID_GET(value) ((value >> 0) & 0xff)
|
||||
#define ALT_QSPI_STIG_RDID_CAPACITYID_GET(value) ((value >> 16) & 0xff)
|
||||
|
||||
#define ALT_QSPI_STIG_FLAGSR_ERASEPROGRAMREADY_GET(value) ((value >> 7) & 0x1)
|
||||
#define ALT_QSPI_STIG_FLAGSR_ERASEREADY_GET(value) ((value >> 7) & 0x1)
|
||||
#define ALT_QSPI_STIG_FLAGSR_PROGRAMREADY_GET(value) ((value >> 7) & 0x1)
|
||||
#define ALT_QSPI_STIG_FLAGSR_ERASEERROR_GET(value) ((value >> 5) & 0x1)
|
||||
#define ALT_QSPI_STIG_FLAGSR_PROGRAMERROR_GET(value) ((value >> 4) & 0x1)
|
||||
#define ALT_QSPI_STIG_FLAGSR_ADDRESSINGMODE_GET(value) ((value >> 1) & 0x1)
|
||||
#define ALT_QSPI_STIG_FLAGSR_PROTECTIONERROR_GET(value) ((value >> 0) & 0x1)
|
||||
|
||||
#define ALT_QSPI_STIG_SR_BUSY_GET(value) ((value >> 0) & 0x1)
|
||||
|
||||
/////
|
||||
|
||||
#define ALT_QSPI_TIMEOUT_INFINITE (0xffffffff)
|
||||
|
||||
ALT_STATUS_CODE alt_qspi_replace(uint32_t dst, const void * src, size_t size);
|
||||
|
||||
ALT_STATUS_CODE alt_qspi_stig_cmd(uint32_t opcode, uint32_t dummy, uint32_t timeout);
|
||||
ALT_STATUS_CODE alt_qspi_stig_rd_cmd(uint8_t opcode, uint32_t dummy,
|
||||
uint32_t num_bytes, uint32_t * output,
|
||||
uint32_t timeout);
|
||||
ALT_STATUS_CODE alt_qspi_stig_wr_cmd(uint8_t opcode, uint32_t dummy,
|
||||
uint32_t num_bytes, const uint32_t * input,
|
||||
uint32_t timeout);
|
||||
ALT_STATUS_CODE alt_qspi_stig_addr_cmd(uint8_t opcode, uint32_t dummy,
|
||||
uint32_t address,
|
||||
uint32_t timeout);
|
||||
|
||||
ALT_STATUS_CODE alt_qspi_device_wren(void);
|
||||
ALT_STATUS_CODE alt_qspi_device_wrdis(void);
|
||||
ALT_STATUS_CODE alt_qspi_device_rdid(uint32_t * rdid);
|
||||
ALT_STATUS_CODE alt_qspi_discovery_parameter(uint32_t * param);
|
||||
ALT_STATUS_CODE alt_qspi_device_bank_select(uint32_t bank);
|
||||
|
||||
#endif // __ALT_PRIVATE_QSPI_H__
|
||||
@@ -0,0 +1,144 @@
|
||||
/*******************************************************************************
|
||||
* *
|
||||
* Copyright 2013 Altera Corporation. All Rights Reserved. *
|
||||
* *
|
||||
* Redistribution and use in source and binary forms, with or without *
|
||||
* modification, are permitted provided that the following conditions are met: *
|
||||
* *
|
||||
* 1. Redistributions of source code must retain the above copyright notice, *
|
||||
* this list of conditions and the following disclaimer. *
|
||||
* *
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, *
|
||||
* this list of conditions and the following disclaimer in the documentation *
|
||||
* and/or other materials provided with the distribution. *
|
||||
* *
|
||||
* 3. The name of the author may not be used to endorse or promote products *
|
||||
* derived from this software without specific prior written permission. *
|
||||
* *
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR *
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO *
|
||||
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR *
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
|
||||
* *
|
||||
*******************************************************************************/
|
||||
|
||||
/* Altera - ALT_DMANONSECURE */
|
||||
|
||||
#ifndef __ALTERA_ALT_DMANONSECURE_H__
|
||||
#define __ALTERA_ALT_DMANONSECURE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/*
|
||||
* Component : nonsecure DMA Module Address Space - ALT_DMANONSECURE
|
||||
* nonsecure DMA Module Address Space
|
||||
*
|
||||
* Address space allocated to the nonsecure DMA. For detailed information about the
|
||||
* use of this address space,
|
||||
* [url=http://infocenter.arm.com/help/topic/com.arm.doc.ddi0424b/index.html]click
|
||||
* here[/url] to access the ARM documentation for the DMA-330.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Register : Empty - reg
|
||||
*
|
||||
* Placeholder
|
||||
*
|
||||
* Register Layout
|
||||
*
|
||||
* Bits | Access | Reset | Description
|
||||
* :-------|:-------|:--------|:------------
|
||||
* [31:0] | RW | Unknown | Empty
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Field : Empty - fld
|
||||
*
|
||||
* Placeholder
|
||||
*
|
||||
* Field Access Macros:
|
||||
*
|
||||
*/
|
||||
/* The Least Significant Bit (LSB) position of the ALT_DMANONSECURE_REG_FLD register field. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_LSB 0
|
||||
/* The Most Significant Bit (MSB) position of the ALT_DMANONSECURE_REG_FLD register field. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_MSB 31
|
||||
/* The width in bits of the ALT_DMANONSECURE_REG_FLD register field. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_WIDTH 32
|
||||
/* The mask used to set the ALT_DMANONSECURE_REG_FLD register field value. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_SET_MSK 0xffffffff
|
||||
/* The mask used to clear the ALT_DMANONSECURE_REG_FLD register field value. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_CLR_MSK 0x00000000
|
||||
/* The reset value of the ALT_DMANONSECURE_REG_FLD register field is UNKNOWN. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_RESET 0x0
|
||||
/* Extracts the ALT_DMANONSECURE_REG_FLD field value from a register. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_GET(value) (((value) & 0xffffffff) >> 0)
|
||||
/* Produces a ALT_DMANONSECURE_REG_FLD register field value suitable for setting the register. */
|
||||
#define ALT_DMANONSECURE_REG_FLD_SET(value) (((value) << 0) & 0xffffffff)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
/*
|
||||
* WARNING: The C register and register group struct declarations are provided for
|
||||
* convenience and illustrative purposes. They should, however, be used with
|
||||
* caution as the C language standard provides no guarantees about the alignment or
|
||||
* atomicity of device memory accesses. The recommended practice for writing
|
||||
* hardware drivers is to use the SoCAL access macros and alt_read_word() and
|
||||
* alt_write_word() functions.
|
||||
*
|
||||
* The struct declaration for register ALT_DMANONSECURE_REG.
|
||||
*/
|
||||
struct ALT_DMANONSECURE_REG_s
|
||||
{
|
||||
uint32_t fld : 32; /* Empty */
|
||||
};
|
||||
|
||||
/* The typedef declaration for register ALT_DMANONSECURE_REG. */
|
||||
typedef volatile struct ALT_DMANONSECURE_REG_s ALT_DMANONSECURE_REG_t;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/* The byte offset of the ALT_DMANONSECURE_REG register from the beginning of the component. */
|
||||
#define ALT_DMANONSECURE_REG_OFST 0x0
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
/*
|
||||
* WARNING: The C register and register group struct declarations are provided for
|
||||
* convenience and illustrative purposes. They should, however, be used with
|
||||
* caution as the C language standard provides no guarantees about the alignment or
|
||||
* atomicity of device memory accesses. The recommended practice for writing
|
||||
* hardware drivers is to use the SoCAL access macros and alt_read_word() and
|
||||
* alt_write_word() functions.
|
||||
*
|
||||
* The struct declaration for register group ALT_DMANONSECURE.
|
||||
*/
|
||||
struct ALT_DMANONSECURE_s
|
||||
{
|
||||
volatile ALT_DMANONSECURE_REG_t reg; /* ALT_DMANONSECURE_REG */
|
||||
};
|
||||
|
||||
/* The typedef declaration for register group ALT_DMANONSECURE. */
|
||||
typedef volatile struct ALT_DMANONSECURE_s ALT_DMANONSECURE_t;
|
||||
/* The struct declaration for the raw register contents of register group ALT_DMANONSECURE. */
|
||||
struct ALT_DMANONSECURE_raw_s
|
||||
{
|
||||
volatile uint32_t reg; /* ALT_DMANONSECURE_REG */
|
||||
};
|
||||
|
||||
/* The typedef declaration for the raw register contents of register group ALT_DMANONSECURE. */
|
||||
typedef volatile struct ALT_DMANONSECURE_raw_s ALT_DMANONSECURE_raw_t;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __ALTERA_ALT_DMANONSECURE_H__ */
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
/*******************************************************************************
|
||||
* *
|
||||
* Copyright 2013 Altera Corporation. All Rights Reserved. *
|
||||
* *
|
||||
* Redistribution and use in source and binary forms, with or without *
|
||||
* modification, are permitted provided that the following conditions are met: *
|
||||
* *
|
||||
* 1. Redistributions of source code must retain the above copyright notice, *
|
||||
* this list of conditions and the following disclaimer. *
|
||||
* *
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, *
|
||||
* this list of conditions and the following disclaimer in the documentation *
|
||||
* and/or other materials provided with the distribution. *
|
||||
* *
|
||||
* 3. The name of the author may not be used to endorse or promote products *
|
||||
* derived from this software without specific prior written permission. *
|
||||
* *
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR *
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO *
|
||||
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR *
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
|
||||
* *
|
||||
*******************************************************************************/
|
||||
|
||||
/* Altera - ALT_DMASECURE */
|
||||
|
||||
#ifndef __ALTERA_ALT_DMASECURE_H__
|
||||
#define __ALTERA_ALT_DMASECURE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/*
|
||||
* Component : secure DMA Module Address Space - ALT_DMASECURE
|
||||
* secure DMA Module Address Space
|
||||
*
|
||||
* Address space allocated to the secure DMA. For detailed information about the
|
||||
* use of this address space,
|
||||
* [url=http://infocenter.arm.com/help/topic/com.arm.doc.ddi0424b/index.html]click
|
||||
* here[/url] to access the ARM documentation for the DMA-330.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Register : Empty - reg
|
||||
*
|
||||
* Placeholder
|
||||
*
|
||||
* Register Layout
|
||||
*
|
||||
* Bits | Access | Reset | Description
|
||||
* :-------|:-------|:--------|:------------
|
||||
* [31:0] | RW | Unknown | Empty
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Field : Empty - fld
|
||||
*
|
||||
* Placeholder
|
||||
*
|
||||
* Field Access Macros:
|
||||
*
|
||||
*/
|
||||
/* The Least Significant Bit (LSB) position of the ALT_DMASECURE_REG_FLD register field. */
|
||||
#define ALT_DMASECURE_REG_FLD_LSB 0
|
||||
/* The Most Significant Bit (MSB) position of the ALT_DMASECURE_REG_FLD register field. */
|
||||
#define ALT_DMASECURE_REG_FLD_MSB 31
|
||||
/* The width in bits of the ALT_DMASECURE_REG_FLD register field. */
|
||||
#define ALT_DMASECURE_REG_FLD_WIDTH 32
|
||||
/* The mask used to set the ALT_DMASECURE_REG_FLD register field value. */
|
||||
#define ALT_DMASECURE_REG_FLD_SET_MSK 0xffffffff
|
||||
/* The mask used to clear the ALT_DMASECURE_REG_FLD register field value. */
|
||||
#define ALT_DMASECURE_REG_FLD_CLR_MSK 0x00000000
|
||||
/* The reset value of the ALT_DMASECURE_REG_FLD register field is UNKNOWN. */
|
||||
#define ALT_DMASECURE_REG_FLD_RESET 0x0
|
||||
/* Extracts the ALT_DMASECURE_REG_FLD field value from a register. */
|
||||
#define ALT_DMASECURE_REG_FLD_GET(value) (((value) & 0xffffffff) >> 0)
|
||||
/* Produces a ALT_DMASECURE_REG_FLD register field value suitable for setting the register. */
|
||||
#define ALT_DMASECURE_REG_FLD_SET(value) (((value) << 0) & 0xffffffff)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
/*
|
||||
* WARNING: The C register and register group struct declarations are provided for
|
||||
* convenience and illustrative purposes. They should, however, be used with
|
||||
* caution as the C language standard provides no guarantees about the alignment or
|
||||
* atomicity of device memory accesses. The recommended practice for writing
|
||||
* hardware drivers is to use the SoCAL access macros and alt_read_word() and
|
||||
* alt_write_word() functions.
|
||||
*
|
||||
* The struct declaration for register ALT_DMASECURE_REG.
|
||||
*/
|
||||
struct ALT_DMASECURE_REG_s
|
||||
{
|
||||
uint32_t fld : 32; /* Empty */
|
||||
};
|
||||
|
||||
/* The typedef declaration for register ALT_DMASECURE_REG. */
|
||||
typedef volatile struct ALT_DMASECURE_REG_s ALT_DMASECURE_REG_t;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/* The byte offset of the ALT_DMASECURE_REG register from the beginning of the component. */
|
||||
#define ALT_DMASECURE_REG_OFST 0x0
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
/*
|
||||
* WARNING: The C register and register group struct declarations are provided for
|
||||
* convenience and illustrative purposes. They should, however, be used with
|
||||
* caution as the C language standard provides no guarantees about the alignment or
|
||||
* atomicity of device memory accesses. The recommended practice for writing
|
||||
* hardware drivers is to use the SoCAL access macros and alt_read_word() and
|
||||
* alt_write_word() functions.
|
||||
*
|
||||
* The struct declaration for register group ALT_DMASECURE.
|
||||
*/
|
||||
struct ALT_DMASECURE_s
|
||||
{
|
||||
volatile ALT_DMASECURE_REG_t reg; /* ALT_DMASECURE_REG */
|
||||
};
|
||||
|
||||
/* The typedef declaration for register group ALT_DMASECURE. */
|
||||
typedef volatile struct ALT_DMASECURE_s ALT_DMASECURE_t;
|
||||
/* The struct declaration for the raw register contents of register group ALT_DMASECURE. */
|
||||
struct ALT_DMASECURE_raw_s
|
||||
{
|
||||
volatile uint32_t reg; /* ALT_DMASECURE_REG */
|
||||
};
|
||||
|
||||
/* The typedef declaration for the raw register contents of register group ALT_DMASECURE. */
|
||||
typedef volatile struct ALT_DMASECURE_raw_s ALT_DMASECURE_raw_t;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __ALTERA_ALT_DMASECURE_H__ */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,52 @@
|
||||
/*******************************************************************************
|
||||
* *
|
||||
* Copyright 2013 Altera Corporation. All Rights Reserved. *
|
||||
* *
|
||||
* Redistribution and use in source and binary forms, with or without *
|
||||
* modification, are permitted provided that the following conditions are met: *
|
||||
* *
|
||||
* 1. Redistributions of source code must retain the above copyright notice, *
|
||||
* this list of conditions and the following disclaimer. *
|
||||
* *
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, *
|
||||
* this list of conditions and the following disclaimer in the documentation *
|
||||
* and/or other materials provided with the distribution. *
|
||||
* *
|
||||
* 3. The name of the author may not be used to endorse or promote products *
|
||||
* derived from this software without specific prior written permission. *
|
||||
* *
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR *
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO *
|
||||
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR *
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
|
||||
* *
|
||||
*******************************************************************************/
|
||||
|
||||
/* Altera - ALT_QSPIDATA */
|
||||
|
||||
#ifndef __ALTERA_ALT_QSPIDATA_H__
|
||||
#define __ALTERA_ALT_QSPIDATA_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/*
|
||||
* Component : QSPI Flash Module Data (AHB Slave) - ALT_QSPIDATA
|
||||
* QSPI Flash Module Data (AHB Slave)
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __ALTERA_ALT_QSPIDATA_H__ */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -143,10 +143,18 @@ $(PROJECT_INCLUDE)/bsp/nocache-heap.h: include/nocache-heap.h $(PROJECT_INCLUDE)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/nocache-heap.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/nocache-heap.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_16550_uart.h: hwlib/include/alt_16550_uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_16550_uart.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_16550_uart.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_address_space.h: hwlib/include/alt_address_space.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_address_space.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_address_space.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_cache.h: hwlib/include/alt_cache.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_cache.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_cache.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_clock_group.h: hwlib/include/alt_clock_group.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_clock_group.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_clock_group.h
|
||||
@@ -155,6 +163,18 @@ $(PROJECT_INCLUDE)/bsp/alt_clock_manager.h: hwlib/include/alt_clock_manager.h $(
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_clock_manager.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_clock_manager.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_dma_common.h: hwlib/include/alt_dma_common.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_dma_common.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_dma_common.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_dma.h: hwlib/include/alt_dma.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_dma.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_dma.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_dma_program.h: hwlib/include/alt_dma_program.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_dma_program.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_dma_program.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_generalpurpose_io.h: hwlib/include/alt_generalpurpose_io.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_generalpurpose_io.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_generalpurpose_io.h
|
||||
@@ -175,6 +195,10 @@ $(PROJECT_INCLUDE)/bsp/alt_mpu_registers.h: hwlib/include/alt_mpu_registers.h $(
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_mpu_registers.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_mpu_registers.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_qspi_private.h: hwlib/include/alt_qspi_private.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_qspi_private.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_qspi_private.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/alt_reset_manager.h: hwlib/include/alt_reset_manager.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/alt_reset_manager.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/alt_reset_manager.h
|
||||
@@ -191,6 +215,14 @@ $(PROJECT_INCLUDE)/bsp/socal/alt_clkmgr.h: hwlib/include/socal/alt_clkmgr.h $(PR
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_clkmgr.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_clkmgr.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/socal/alt_dmanonsecure.h: hwlib/include/socal/alt_dmanonsecure.h $(PROJECT_INCLUDE)/bsp/socal/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_dmanonsecure.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_dmanonsecure.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/socal/alt_dmasecure.h: hwlib/include/socal/alt_dmasecure.h $(PROJECT_INCLUDE)/bsp/socal/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_dmasecure.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_dmasecure.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/socal/alt_gpio.h: hwlib/include/socal/alt_gpio.h $(PROJECT_INCLUDE)/bsp/socal/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_gpio.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_gpio.h
|
||||
@@ -203,6 +235,14 @@ $(PROJECT_INCLUDE)/bsp/socal/alt_l3.h: hwlib/include/socal/alt_l3.h $(PROJECT_IN
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_l3.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_l3.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/socal/alt_qspidata.h: hwlib/include/socal/alt_qspidata.h $(PROJECT_INCLUDE)/bsp/socal/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_qspidata.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_qspidata.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/socal/alt_qspi.h: hwlib/include/socal/alt_qspi.h $(PROJECT_INCLUDE)/bsp/socal/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_qspi.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_qspi.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/socal/alt_rstmgr.h: hwlib/include/socal/alt_rstmgr.h $(PROJECT_INCLUDE)/bsp/socal/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/socal/alt_rstmgr.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/socal/alt_rstmgr.h
|
||||
|
||||
Reference in New Issue
Block a user