bootm.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (c) 2013, Google Inc.
  3. *
  4. * Copyright (C) 2011
  5. * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. *
  9. * SPDX-License-Identifier: GPL-2.0+
  10. */
  11. #ifndef ARM_BOOTM_H
  12. #define ARM_BOOTM_H
  13. extern void udc_disconnect(void);
  14. #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
  15. defined(CONFIG_CMDLINE_TAG) || \
  16. defined(CONFIG_INITRD_TAG) || \
  17. defined(CONFIG_SERIAL_TAG) || \
  18. defined(CONFIG_REVISION_TAG)
  19. # define BOOTM_ENABLE_TAGS 1
  20. #else
  21. # define BOOTM_ENABLE_TAGS 0
  22. #endif
  23. #ifdef CONFIG_SETUP_MEMORY_TAGS
  24. # define BOOTM_ENABLE_MEMORY_TAGS 1
  25. #else
  26. # define BOOTM_ENABLE_MEMORY_TAGS 0
  27. #endif
  28. #ifdef CONFIG_CMDLINE_TAG
  29. #define BOOTM_ENABLE_CMDLINE_TAG 1
  30. #else
  31. #define BOOTM_ENABLE_CMDLINE_TAG 0
  32. #endif
  33. #ifdef CONFIG_INITRD_TAG
  34. #define BOOTM_ENABLE_INITRD_TAG 1
  35. #else
  36. #define BOOTM_ENABLE_INITRD_TAG 0
  37. #endif
  38. struct tag_serialnr;
  39. #ifdef CONFIG_SERIAL_TAG
  40. #define BOOTM_ENABLE_SERIAL_TAG 1
  41. void get_board_serial(struct tag_serialnr *serialnr);
  42. #else
  43. #define BOOTM_ENABLE_SERIAL_TAG 0
  44. static inline void get_board_serial(struct tag_serialnr *serialnr)
  45. {
  46. }
  47. #endif
  48. #ifdef CONFIG_REVISION_TAG
  49. #define BOOTM_ENABLE_REVISION_TAG 1
  50. u32 get_board_rev(void);
  51. #else
  52. #define BOOTM_ENABLE_REVISION_TAG 0
  53. static inline u32 get_board_rev(void)
  54. {
  55. return 0;
  56. }
  57. #endif
  58. #endif