1*f12bb916SKrzysztof Kozlowski /* SPDX-License-Identifier: GPL-2.0 */ 2a8aabb91SPankaj Dubey /* 3a8aabb91SPankaj Dubey * Copyright (c) 2015 Samsung Electronics Co., Ltd. 4a8aabb91SPankaj Dubey * http://www.samsung.com 5a8aabb91SPankaj Dubey * 6a8aabb91SPankaj Dubey * Exynos SROMC register definitions 7a8aabb91SPankaj Dubey */ 8a8aabb91SPankaj Dubey 9a8aabb91SPankaj Dubey #ifndef __EXYNOS_SROM_H 10a8aabb91SPankaj Dubey #define __EXYNOS_SROM_H __FILE__ 11a8aabb91SPankaj Dubey 12a8aabb91SPankaj Dubey #define EXYNOS_SROMREG(x) (x) 13a8aabb91SPankaj Dubey 14a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW EXYNOS_SROMREG(0x0) 15a8aabb91SPankaj Dubey #define EXYNOS_SROM_BC0 EXYNOS_SROMREG(0x4) 16a8aabb91SPankaj Dubey #define EXYNOS_SROM_BC1 EXYNOS_SROMREG(0x8) 17a8aabb91SPankaj Dubey #define EXYNOS_SROM_BC2 EXYNOS_SROMREG(0xc) 18a8aabb91SPankaj Dubey #define EXYNOS_SROM_BC3 EXYNOS_SROMREG(0x10) 19a8aabb91SPankaj Dubey #define EXYNOS_SROM_BC4 EXYNOS_SROMREG(0x14) 20a8aabb91SPankaj Dubey #define EXYNOS_SROM_BC5 EXYNOS_SROMREG(0x18) 21a8aabb91SPankaj Dubey 22a8aabb91SPankaj Dubey /* one register BW holds 4 x 4-bit packed settings for NCS0 - NCS3 */ 23a8aabb91SPankaj Dubey 24a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__DATAWIDTH__SHIFT 0 25a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__ADDRMODE__SHIFT 1 26a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__WAITENABLE__SHIFT 2 27a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__BYTEENABLE__SHIFT 3 28a8aabb91SPankaj Dubey 29a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__CS_MASK 0xf 30a8aabb91SPankaj Dubey 31a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__NCS0__SHIFT 0 32a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__NCS1__SHIFT 4 33a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__NCS2__SHIFT 8 34a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__NCS3__SHIFT 12 35a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__NCS4__SHIFT 16 36a8aabb91SPankaj Dubey #define EXYNOS_SROM_BW__NCS5__SHIFT 20 37a8aabb91SPankaj Dubey 38a8aabb91SPankaj Dubey /* applies to same to BCS0 - BCS3 */ 39a8aabb91SPankaj Dubey 40a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__PMC__SHIFT 0 41a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__TACP__SHIFT 4 42a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__TCAH__SHIFT 8 43a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__TCOH__SHIFT 12 44a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__TACC__SHIFT 16 45a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__TCOS__SHIFT 24 46a8aabb91SPankaj Dubey #define EXYNOS_SROM_BCX__TACS__SHIFT 28 47a8aabb91SPankaj Dubey 48a8aabb91SPankaj Dubey #endif /* __EXYNOS_SROM_H */ 49