/*******************************************************************************
 * DISCLAIMER
 * This software is supplied by Renesas Electronics Corporation and is only
 * intended for use with Renesas products. No other uses are authorized. This
 * software is owned by Renesas Electronics Corporation and is protected under
 * all applicable laws, including copyright laws.
 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
 * Renesas reserves the right, without notice, to make changes to this software
 * and to discontinue the availability of this software. By using this software,
 * you agree to the additional terms and conditions found by accessing the
 * following link:
 * http://www.renesas.com/disclaimer
 * Copyright 2022-2023 Renesas Electronics Corporation All rights reserved.
 *******************************************************************************/

/*******************************************************************************
 * DESCRIPTION   : NTFMV Software minimum version table
 ******************************************************************************/
/******************************************************************************
 * @file          ntfmv_ver_tbl.c
 * - Version      : 0.02
 * @brief         NTFMV Software minimum version table.
 *                This is sample source code.
 * .
 *****************************************************************************/
/******************************************************************************
 * History : DD.MM.YYYY Version  Description
 *         : 05.08.2022 0.01     First Release
 *         : 21.08.2023 0.02     Add support for V4M.
 *****************************************************************************/

#include <stdint.h>

#if ((RCAR_LSI == RCAR_V4H) || (RCAR_LSI == RCAR_V4M))
/* Minimum software version of U-Boot(V4H) */
#define CA_PROG_02_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_02_SW_VERSION           (0x00000000U)
#define CA_PROG_02_VER_OFFSET           (0x00000000U)
#else /* ((RCAR_LSI == RCAR_V4H) || (RCAR_LSI == RCAR_V4M)) */
/* Reserved */
#define CA_PROG_02_CHECK_FLAG           (0x00000000U)
#define CA_PROG_02_SW_VERSION           (0x00000000U)
#define CA_PROG_02_VER_OFFSET           (0x00000000U)
#endif /* ((RCAR_LSI == RCAR_V4H) || (RCAR_LSI == RCAR_V4M)) */

/* Minimum software version of U-Boot(S4) */
#define CA_PROG_03_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_03_SW_VERSION           (0x00000000U)
#define CA_PROG_03_VER_OFFSET           (0x00000000U)

/* Reserved */
#define CA_PROG_04_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_04_SW_VERSION           (0x00000000U)
#define CA_PROG_04_VER_OFFSET           (0x00000000U)

/* Reserved */
#define CA_PROG_05_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_05_SW_VERSION           (0x00000000U)
#define CA_PROG_05_VER_OFFSET           (0x00000000U)

/* Reserved */
#define CA_PROG_06_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_06_SW_VERSION           (0x00000000U)
#define CA_PROG_06_VER_OFFSET           (0x00000000U)

/* Reserved */
#define CA_PROG_07_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_07_SW_VERSION           (0x00000000U)
#define CA_PROG_07_VER_OFFSET           (0x00000000U)

/* Reserved */
#define CA_PROG_08_CHECK_FLAG           (0x00000000U)   /* 0:disable other:enable */
#define CA_PROG_08_SW_VERSION           (0x00000000U)
#define CA_PROG_08_VER_OFFSET           (0x00000000U)

/* For 16-byte boundary */
#define RESERVED_FOR_PADDING            (0x00000000U)

__attribute__ ((section (".ntfmv_tbl_top"))) const uint32_t ntfmv_ver_tbl[] = {
    [0x0000 / 4] = CA_PROG_02_CHECK_FLAG,
    [0x0004 / 4] = CA_PROG_02_SW_VERSION,
    [0x0008 / 4] = CA_PROG_02_VER_OFFSET,
    [0x0010 / 4] = CA_PROG_03_CHECK_FLAG,
    [0x0014 / 4] = CA_PROG_03_SW_VERSION,
    [0x0018 / 4] = CA_PROG_03_VER_OFFSET,
    [0x0020 / 4] = CA_PROG_04_CHECK_FLAG,
    [0x0024 / 4] = CA_PROG_04_SW_VERSION,
    [0x0028 / 4] = CA_PROG_04_VER_OFFSET,
    [0x0030 / 4] = CA_PROG_05_CHECK_FLAG,
    [0x0034 / 4] = CA_PROG_05_SW_VERSION,
    [0x0038 / 4] = CA_PROG_05_VER_OFFSET,
    [0x0040 / 4] = CA_PROG_06_CHECK_FLAG,
    [0x0044 / 4] = CA_PROG_06_SW_VERSION,
    [0x0048 / 4] = CA_PROG_06_VER_OFFSET,
    [0x0050 / 4] = CA_PROG_07_CHECK_FLAG,
    [0x0054 / 4] = CA_PROG_07_SW_VERSION,
    [0x0058 / 4] = CA_PROG_07_VER_OFFSET,
    [0x0060 / 4] = CA_PROG_08_CHECK_FLAG,
    [0x0064 / 4] = CA_PROG_08_SW_VERSION,
    [0x0068 / 4] = CA_PROG_08_VER_OFFSET,
    [0x006C / 4] = RESERVED_FOR_PADDING,        /* Adjust to 16-byte boundary */
};

