1af8d1c63SGregory CLEMENT /* 2af8d1c63SGregory CLEMENT * Marvell EBU SoC ID and revision definitions. 3af8d1c63SGregory CLEMENT * 4af8d1c63SGregory CLEMENT * Copyright (C) 2014 Marvell Semiconductor 5af8d1c63SGregory CLEMENT * 6af8d1c63SGregory CLEMENT * This file is licensed under the terms of the GNU General Public 7af8d1c63SGregory CLEMENT * License version 2. This program is licensed "as is" without any 8af8d1c63SGregory CLEMENT * warranty of any kind, whether express or implied. 9af8d1c63SGregory CLEMENT */ 10af8d1c63SGregory CLEMENT 11af8d1c63SGregory CLEMENT #ifndef __LINUX_MVEBU_SOC_ID_H 12af8d1c63SGregory CLEMENT #define __LINUX_MVEBU_SOC_ID_H 13af8d1c63SGregory CLEMENT 14af8d1c63SGregory CLEMENT /* Armada XP ID */ 15af8d1c63SGregory CLEMENT #define MV78230_DEV_ID 0x7823 16af8d1c63SGregory CLEMENT #define MV78260_DEV_ID 0x7826 17af8d1c63SGregory CLEMENT #define MV78460_DEV_ID 0x7846 18af8d1c63SGregory CLEMENT 19af8d1c63SGregory CLEMENT /* Armada XP Revision */ 20af8d1c63SGregory CLEMENT #define MV78XX0_A0_REV 0x1 21af8d1c63SGregory CLEMENT #define MV78XX0_B0_REV 0x2 22af8d1c63SGregory CLEMENT 23c6574542SGregory CLEMENT /* Amada 370 ID */ 24c6574542SGregory CLEMENT #define ARMADA_370_DEV_ID 0x6710 25c6574542SGregory CLEMENT 26c6574542SGregory CLEMENT /* Amada 370 Revision */ 27c6574542SGregory CLEMENT #define ARMADA_370_A1_REV 0x1 28c6574542SGregory CLEMENT 29c6574542SGregory CLEMENT /* Armada 375 ID */ 30c6574542SGregory CLEMENT #define ARMADA_375_DEV_ID 0x6720 31c6574542SGregory CLEMENT 325fd62066SEzequiel Garcia /* Armada 375 */ 335fd62066SEzequiel Garcia #define ARMADA_375_Z1_REV 0x0 345093dcfbSThomas Petazzoni #define ARMADA_375_A0_REV 0x3 355fd62066SEzequiel Garcia 36c6574542SGregory CLEMENT /* Armada 38x ID */ 37c6574542SGregory CLEMENT #define ARMADA_380_DEV_ID 0x6810 38c6574542SGregory CLEMENT #define ARMADA_385_DEV_ID 0x6820 39c6574542SGregory CLEMENT #define ARMADA_388_DEV_ID 0x6828 40c6574542SGregory CLEMENT 41c6574542SGregory CLEMENT /* Armada 38x Revision */ 42c6574542SGregory CLEMENT #define ARMADA_38x_Z1_REV 0x0 43c6574542SGregory CLEMENT #define ARMADA_38x_A0_REV 0x4 44c6574542SGregory CLEMENT 45af8d1c63SGregory CLEMENT #ifdef CONFIG_ARCH_MVEBU 46af8d1c63SGregory CLEMENT int mvebu_get_soc_id(u32 *dev, u32 *rev); 47af8d1c63SGregory CLEMENT #else 48af8d1c63SGregory CLEMENT static inline int mvebu_get_soc_id(u32 *dev, u32 *rev) 49af8d1c63SGregory CLEMENT { 50af8d1c63SGregory CLEMENT return -1; 51af8d1c63SGregory CLEMENT } 52af8d1c63SGregory CLEMENT #endif 53af8d1c63SGregory CLEMENT 54af8d1c63SGregory CLEMENT #endif /* __LINUX_MVEBU_SOC_ID_H */ 55