/*******************************************************************************
 * Copyright (c) 2020 Renesas Electronics Corporation. All rights reserved.
 *
 * DESCRIPTION   : RST register header
 ******************************************************************************/

#ifndef RST_REGISTER_H_
#define RST_REGISTER_H_

#include <remap_register.h>

#define	RST_BASE		(BASE_RESET_ADDR)	/* 0xE6160000 */

#define	RST_MODEMR0		(RST_BASE + 0x0000U)	/* Mode pin register0 */
#define	RST_MODEMR1		(RST_BASE + 0x0004U)	/* Mode pin register1 */
#define RST_MODEMR0_MD31	(1U << 31U)
#define RST_MODEMR1_MD32	(1U << 0U)

#define RST_MODEMR0_BOOT_DEV_MASK		(0x0000001EU)
#define RST_MODEMR0_BOOT_DEV_HYPERFLASH160	(0x00000004U)
#define RST_MODEMR0_BOOT_DEV_HYPERFLASH80	(0x00000006U)
#define RST_MODEMR0_BOOT_DEV_QSPI_FLASH40	(0x00000008U)
#define RST_MODEMR0_BOOT_DEV_EMMC_50X8		(0x0000001AU)

#endif /* RST_REGISTER_H_ */
