bootm.h 1.2 KB

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