/*******************************************************************************
 * Copyright (c) 2018-2021 Renesas Electronics Corporation. All rights reserved.
 *
 *     RENESAS ELECTRONICS CONFIDENTIAL AND PROPRIETARY
 *
 * This software is provided as reference/sample code under the license
 * agreement between Renesas Electronics Corporation and licensee (the
 * "License Agreement") and shall be treated as specified in the License
 * Agreement.
 * These instructions, statements, and software are the confidential
 * information of Renesas Electronics Corporation. They must be used and
 * modified solely for the purpose for which it was furnished by Renesas
 * Electronics Corporation. All or part of these instructions, statements and
 * software must not be reproduced nor disclosed to any third party in any
 * form, unless permitted by the License Agreement.
 *
 * THIS SOFTWARE IS PROVIDED BY RENESAS ELEOCTRONICS CORPORATION "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
 * SATISFACTORY QUALITY, ACCURACY, TITLE AND NON-INFRINGEMENT ARE DISCLAIMED.
 * IN NO EVENT SHALL RENESAS ELECTRONICS CORPORATION BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * 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.
 ******************************************************************************/

/*******************************************************************************
 * DESCRIPTION   : dummy flash data for sector 0(0x00000)
 ******************************************************************************/

#include <stdint.h>

#define BOOT_PARAM      (0x00000101U)
#define CERT_MAGIC      (0xE291F358U)
#define LOADER_ADDR     (0xEB2D8000U)
#define LOADER_SIZE     (128U * 1024U / 4U)

/* SA0 */
/* boot parameter */
__attribute__ ((section(".sa0_boot"))) const uint32_t boot[] = {
    [0] = BOOT_PARAM,
    [1] = 0xFFFFFFFFU,
};


/* A-side contents Key (0x3000) */
__attribute__ ((section(".sa0_content_a"))) const uint32_t content_a[872 / 4] = {
    [0x000 / 4] = CERT_MAGIC,   /* magic */
    [0x00C / 4] = 0x00000000U,  /* magic */
    [0x154 / 4] = LOADER_ADDR,  /* address */
    [0x264 / 4] = LOADER_SIZE,  /* size */
};
/* B-side contents Key (0x4000)*/
__attribute__ ((section(".sa0_content_b"))) const uint32_t content_b[872 / 4] = {
    [0x000 / 4] = CERT_MAGIC,   /* magic */
    [0x00C / 4] = 0x00000000U,  /* magic */
    [0x154 / 4] = LOADER_ADDR,  /* address */
    [0x264 / 4] = LOADER_SIZE,  /* size */
};
