forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Acked-by: Chanwoo Choi <[email protected]> Signed-off-by: Gaël PORTAY <[email protected]> Signed-off-by: MyungJoo Ham <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* SPDX-License-Identifier: GPL-2.0+ */ | ||
/* | ||
* Rockchip General Register Files definitions | ||
* | ||
* Copyright (c) 2018, Collabora Ltd. | ||
* Author: Enric Balletbo i Serra <[email protected]> | ||
*/ | ||
|
||
#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 |