bootm.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #ifdef CONFIG_SERIAL_TAG
  39. #define BOOTM_ENABLE_SERIAL_TAG 1
  40. void get_board_serial(struct tag_serialnr *serialnr);
  41. #else
  42. #define BOOTM_ENABLE_SERIAL_TAG 0
  43. static inline void get_board_serial(struct tag_serialnr *serialnr)
  44. {
  45. }
  46. #endif
  47. #ifdef CONFIG_REVISION_TAG
  48. #define BOOTM_ENABLE_REVISION_TAG 1
  49. u32 get_board_rev(void);
  50. #else
  51. #define BOOTM_ENABLE_REVISION_TAG 0
  52. static inline u32 get_board_rev(void)
  53. {
  54. return 0;
  55. }
  56. #endif
  57. #endif