blob: c16bb68ca81fd93255a489e8bf9034d5851972f5 [file] [log] [blame]
Gregory CLEMENTaf8d1c62014-01-02 15:08:59 +01001/*
2 * Marvell EBU SoC ID and revision definitions.
3 *
4 * Copyright (C) 2014 Marvell Semiconductor
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#ifndef __LINUX_MVEBU_SOC_ID_H
12#define __LINUX_MVEBU_SOC_ID_H
13
14/* Armada XP ID */
15#define MV78230_DEV_ID 0x7823
16#define MV78260_DEV_ID 0x7826
17#define MV78460_DEV_ID 0x7846
18
19/* Armada XP Revision */
20#define MV78XX0_A0_REV 0x1
21#define MV78XX0_B0_REV 0x2
22
Ezequiel Garcia5fd62062014-04-24 17:23:22 -030023/* Armada 375 */
24#define ARMADA_375_Z1_REV 0x0
Thomas Petazzoni5093dcf2014-05-05 17:05:24 +020025#define ARMADA_375_A0_REV 0x3
Ezequiel Garcia5fd62062014-04-24 17:23:22 -030026
Gregory CLEMENTaf8d1c62014-01-02 15:08:59 +010027#ifdef CONFIG_ARCH_MVEBU
28int mvebu_get_soc_id(u32 *dev, u32 *rev);
29#else
30static inline int mvebu_get_soc_id(u32 *dev, u32 *rev)
31{
32 return -1;
33}
34#endif
35
36#endif /* __LINUX_MVEBU_SOC_ID_H */