/*******************************************************************************
 * 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   : 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      (0x00000000U)
#define PRR_PRODUCT_11      (0x00000001U)
#define PRR_PRODUCT_20      (0x00000010U)

#endif /* RCAR_DEF_H_ */

