mvebu-soc-id.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  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. #ifndef __LINUX_MVEBU_SOC_ID_H
  11. #define __LINUX_MVEBU_SOC_ID_H
  12. /* Armada XP ID */
  13. #define MV78230_DEV_ID 0x7823
  14. #define MV78260_DEV_ID 0x7826
  15. #define MV78460_DEV_ID 0x7846
  16. /* Armada XP Revision */
  17. #define MV78XX0_A0_REV 0x1
  18. #define MV78XX0_B0_REV 0x2
  19. /* Amada 370 ID */
  20. #define ARMADA_370_DEV_ID 0x6710
  21. /* Amada 370 Revision */
  22. #define ARMADA_370_A1_REV 0x1
  23. /* Armada 375 ID */
  24. #define ARMADA_375_DEV_ID 0x6720
  25. /* Armada 375 */
  26. #define ARMADA_375_Z1_REV 0x0
  27. #define ARMADA_375_A0_REV 0x3
  28. /* Armada 38x ID */
  29. #define ARMADA_380_DEV_ID 0x6810
  30. #define ARMADA_385_DEV_ID 0x6820
  31. #define ARMADA_388_DEV_ID 0x6828
  32. /* Armada 38x Revision */
  33. #define ARMADA_38x_Z1_REV 0x0
  34. #define ARMADA_38x_A0_REV 0x4
  35. #ifdef CONFIG_ARCH_MVEBU
  36. int mvebu_get_soc_id(u32 *dev, u32 *rev);
  37. #else
  38. static inline int mvebu_get_soc_id(u32 *dev, u32 *rev)
  39. {
  40. return -1;
  41. }
  42. #endif
  43. #endif /* __LINUX_MVEBU_SOC_ID_H */