/*******************************************************************************
 * Copyright (c) 2018 Renesas Electronics Corporation. All rights reserved.
 *
 * DESCRIPTION   : R-Car common header
 ******************************************************************************/

#ifndef RCAR_DEF_H_
#define RCAR_DEF_H_

#include "remap_register.h"

/* Product Register */
#define PRR			(BASE_PRR_ADDR)		/* PRR register */
#define PRR_PRODUCT_MASK	(0x00007F00U)		/* Product mask */
#define PRR_CUT_MASK		(0x000000FFU)		/* Cut Number bit mask */
#define PRR_MAJOR_MASK		(0x000000F0U)		/* Major bit mask */
#define PRR_MINOR_MASK		(0x0000000FU)		/* Minor bit mask */
#define PRR_PRODUCT_SHIFT	(8U)			/* PRR bit shift */
#define PRR_MAJOR_SHIFT		(4U)			/* Major bit shift */
#define PRR_MINOR_SHIFT		(0U)			/* Minor bit shift */
#define PRR_MAJOR_OFFSET	(1U)

#define PRR_PRODUCT_V3H		(0x00005600U)		/* R-Car V3H */
#define PRR_PRODUCT_10		(0x00U)

#define RCAR_PRR		(PRR)			/* PRR register */
#define RCAR_PRODUCT_MASK	(PRR_PRODUCT_MASK)	/* Product mask */
#define RCAR_PRODUCT_V3H	(PRR_PRODUCT_V3H)	/* R-Car V3H */

#endif /* RCAR_DEF_H_ */

