mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 05:08:41 +07:00
a8aabb91dc
This patch adds Exynos SROM controller driver which will handle save restore of SROM registers during S2R. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> [p.fedin@samsung.com: tested on SMDK5410] Tested-by: Pavel Fedin <p.fedin@samsung.com> Signed-off-by: Kukjin Kim <kgene@kernel.org> [k.kozlowski: Minor COMPILE_TEST adjustments in Kconfig entries] Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com
|
|
*
|
|
* Exynos SROMC register definitions
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __EXYNOS_SROM_H
|
|
#define __EXYNOS_SROM_H __FILE__
|
|
|
|
#define EXYNOS_SROMREG(x) (x)
|
|
|
|
#define EXYNOS_SROM_BW EXYNOS_SROMREG(0x0)
|
|
#define EXYNOS_SROM_BC0 EXYNOS_SROMREG(0x4)
|
|
#define EXYNOS_SROM_BC1 EXYNOS_SROMREG(0x8)
|
|
#define EXYNOS_SROM_BC2 EXYNOS_SROMREG(0xc)
|
|
#define EXYNOS_SROM_BC3 EXYNOS_SROMREG(0x10)
|
|
#define EXYNOS_SROM_BC4 EXYNOS_SROMREG(0x14)
|
|
#define EXYNOS_SROM_BC5 EXYNOS_SROMREG(0x18)
|
|
|
|
/* one register BW holds 4 x 4-bit packed settings for NCS0 - NCS3 */
|
|
|
|
#define EXYNOS_SROM_BW__DATAWIDTH__SHIFT 0
|
|
#define EXYNOS_SROM_BW__ADDRMODE__SHIFT 1
|
|
#define EXYNOS_SROM_BW__WAITENABLE__SHIFT 2
|
|
#define EXYNOS_SROM_BW__BYTEENABLE__SHIFT 3
|
|
|
|
#define EXYNOS_SROM_BW__CS_MASK 0xf
|
|
|
|
#define EXYNOS_SROM_BW__NCS0__SHIFT 0
|
|
#define EXYNOS_SROM_BW__NCS1__SHIFT 4
|
|
#define EXYNOS_SROM_BW__NCS2__SHIFT 8
|
|
#define EXYNOS_SROM_BW__NCS3__SHIFT 12
|
|
#define EXYNOS_SROM_BW__NCS4__SHIFT 16
|
|
#define EXYNOS_SROM_BW__NCS5__SHIFT 20
|
|
|
|
/* applies to same to BCS0 - BCS3 */
|
|
|
|
#define EXYNOS_SROM_BCX__PMC__SHIFT 0
|
|
#define EXYNOS_SROM_BCX__TACP__SHIFT 4
|
|
#define EXYNOS_SROM_BCX__TCAH__SHIFT 8
|
|
#define EXYNOS_SROM_BCX__TCOH__SHIFT 12
|
|
#define EXYNOS_SROM_BCX__TACC__SHIFT 16
|
|
#define EXYNOS_SROM_BCX__TCOS__SHIFT 24
|
|
#define EXYNOS_SROM_BCX__TACS__SHIFT 28
|
|
|
|
#endif /* __EXYNOS_SROM_H */
|