18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Marvell EBU SoC ID and revision definitions.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2014 Marvell Semiconductor
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public
78c2ecf20Sopenharmony_ci * License version 2.  This program is licensed "as is" without any
88c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifndef __LINUX_MVEBU_SOC_ID_H
128c2ecf20Sopenharmony_ci#define __LINUX_MVEBU_SOC_ID_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/* Armada XP ID */
158c2ecf20Sopenharmony_ci#define MV78230_DEV_ID	    0x7823
168c2ecf20Sopenharmony_ci#define MV78260_DEV_ID	    0x7826
178c2ecf20Sopenharmony_ci#define MV78460_DEV_ID	    0x7846
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/* Armada XP Revision */
208c2ecf20Sopenharmony_ci#define MV78XX0_A0_REV	    0x1
218c2ecf20Sopenharmony_ci#define MV78XX0_B0_REV	    0x2
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/* Amada 370 ID */
248c2ecf20Sopenharmony_ci#define ARMADA_370_DEV_ID   0x6710
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci/* Amada 370 Revision */
278c2ecf20Sopenharmony_ci#define ARMADA_370_A1_REV   0x1
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci/* Armada 375 ID */
308c2ecf20Sopenharmony_ci#define ARMADA_375_DEV_ID   0x6720
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/* Armada 375 */
338c2ecf20Sopenharmony_ci#define ARMADA_375_Z1_REV   0x0
348c2ecf20Sopenharmony_ci#define ARMADA_375_A0_REV   0x3
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci/* Armada 38x ID */
378c2ecf20Sopenharmony_ci#define ARMADA_380_DEV_ID   0x6810
388c2ecf20Sopenharmony_ci#define ARMADA_385_DEV_ID   0x6820
398c2ecf20Sopenharmony_ci#define ARMADA_388_DEV_ID   0x6828
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci/* Armada 38x Revision */
428c2ecf20Sopenharmony_ci#define ARMADA_38x_Z1_REV   0x0
438c2ecf20Sopenharmony_ci#define ARMADA_38x_A0_REV   0x4
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#ifdef CONFIG_ARCH_MVEBU
468c2ecf20Sopenharmony_ciint mvebu_get_soc_id(u32 *dev, u32 *rev);
478c2ecf20Sopenharmony_ci#else
488c2ecf20Sopenharmony_cistatic inline int mvebu_get_soc_id(u32 *dev, u32 *rev)
498c2ecf20Sopenharmony_ci{
508c2ecf20Sopenharmony_ci	return -1;
518c2ecf20Sopenharmony_ci}
528c2ecf20Sopenharmony_ci#endif
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#endif /* __LINUX_MVEBU_SOC_ID_H */
55