forked from Minki/linux
adfe3b7660
Some rk3399 GRF (Generic Register Files) definitions can be used for different drivers. Move these definitions to a common include so we don't need to duplicate these definitions. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Gaël PORTAY <gael.portay@collabora.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
22 lines
555 B
C
22 lines
555 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Rockchip General Register Files definitions
|
|
*
|
|
* Copyright (c) 2018, Collabora Ltd.
|
|
* Author: Enric Balletbo i Serra <enric.balletbo@collabora.com>
|
|
*/
|
|
|
|
#ifndef __SOC_RK3399_GRF_H
|
|
#define __SOC_RK3399_GRF_H
|
|
|
|
/* PMU GRF Registers */
|
|
#define RK3399_PMUGRF_OS_REG2 0x308
|
|
#define RK3399_PMUGRF_DDRTYPE_SHIFT 13
|
|
#define RK3399_PMUGRF_DDRTYPE_MASK 7
|
|
#define RK3399_PMUGRF_DDRTYPE_DDR3 3
|
|
#define RK3399_PMUGRF_DDRTYPE_LPDDR2 5
|
|
#define RK3399_PMUGRF_DDRTYPE_LPDDR3 6
|
|
#define RK3399_PMUGRF_DDRTYPE_LPDDR4 7
|
|
|
|
#endif
|