0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From a0d6a41c903bcb0b393800584e749be72600c691 Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@xxxxxx>
  3. Date: Sun, 2 Dec 2012 19:59:28 +0100
  4. Subject: [PATCH 1/9] ARM: atags: add support for Marvell's u-boot
  5. Marvell uses a specific atag in its u-boot which includes among other
  6. information the MAC addresses for up to 4 network interfaces.
  7. Signed-off-by: Willy Tarreau <w@xxxxxx>
  8. ---
  9. arch/arm/include/uapi/asm/setup.h | 17 +++++++++++++++++
  10. 1 file changed, 17 insertions(+)
  11. diff --git a/arch/arm/include/uapi/asm/setup.h b/arch/arm/include/uapi/asm/setup.h
  12. index 25ceda63b284..83578c54975b 100644
  13. --- a/arch/arm/include/uapi/asm/setup.h
  14. +++ b/arch/arm/include/uapi/asm/setup.h
  15. @@ -144,6 +144,18 @@ struct tag_memclk {
  16. __u32 fmemclk;
  17. };
  18. +/* Marvell uboot parameters */
  19. +#define ATAG_MV_UBOOT 0x41000403
  20. +struct tag_mv_uboot {
  21. + __u32 uboot_version;
  22. + __u32 tclk;
  23. + __u32 sysclk;
  24. + __u32 isUsbHost;
  25. + __u8 macAddr[4][6];
  26. + __u16 mtu[4];
  27. + __u32 nand_ecc;
  28. +};
  29. +
  30. struct tag {
  31. struct tag_header hdr;
  32. union {
  33. @@ -166,6 +178,11 @@ struct tag {
  34. * DC21285 specific
  35. */
  36. struct tag_memclk memclk;
  37. +
  38. + /*
  39. + * Marvell specific
  40. + */
  41. + struct tag_mv_uboot mv_uboot;
  42. } u;
  43. };
  44. --
  45. 2.23.0