aboutsummaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-03-21 19:14:36 -0400
committerMyungJoo Ham <myungjoo.ham@samsung.com>2019-04-15 20:29:18 -0400
commitadfe3b76608ffe547af5a74415f15499b798f32a (patch)
tree38881b0fe695401b4cc124141f02210575eb65c0 /include/soc
parentfbb9c3c9a5acfdbcc21114de0ba16c7b488968f6 (diff)
PM / devfreq: rockchip-dfi: Move GRF definitions to a common place.
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>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/rockchip/rk3399_grf.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/soc/rockchip/rk3399_grf.h b/include/soc/rockchip/rk3399_grf.h
new file mode 100644
index 000000000000..3eebabcb2812
--- /dev/null
+++ b/include/soc/rockchip/rk3399_grf.h
@@ -0,0 +1,21 @@
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Rockchip General Register Files definitions
4 *
5 * Copyright (c) 2018, Collabora Ltd.
6 * Author: Enric Balletbo i Serra <enric.balletbo@collabora.com>
7 */
8
9#ifndef __SOC_RK3399_GRF_H
10#define __SOC_RK3399_GRF_H
11
12/* PMU GRF Registers */
13#define RK3399_PMUGRF_OS_REG2 0x308
14#define RK3399_PMUGRF_DDRTYPE_SHIFT 13
15#define RK3399_PMUGRF_DDRTYPE_MASK 7
16#define RK3399_PMUGRF_DDRTYPE_DDR3 3
17#define RK3399_PMUGRF_DDRTYPE_LPDDR2 5
18#define RK3399_PMUGRF_DDRTYPE_LPDDR3 6
19#define RK3399_PMUGRF_DDRTYPE_LPDDR4 7
20
21#endif