bootm.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2013, Google Inc.
  3. *
  4. * Copyright (C) 2011
  5. * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.de>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. */
  22. #ifndef ARM_BOOTM_H
  23. #define ARM_BOOTM_H
  24. extern void udc_disconnect(void);
  25. #if defined(CONFIG_SETUP_MEMORY_TAGS) || \
  26. defined(CONFIG_CMDLINE_TAG) || \
  27. defined(CONFIG_INITRD_TAG) || \
  28. defined(CONFIG_SERIAL_TAG) || \
  29. defined(CONFIG_REVISION_TAG)
  30. # define BOOTM_ENABLE_TAGS 1
  31. #else
  32. # define BOOTM_ENABLE_TAGS 0
  33. #endif
  34. #ifdef CONFIG_SETUP_MEMORY_TAGS
  35. # define BOOTM_ENABLE_MEMORY_TAGS 1
  36. #else
  37. # define BOOTM_ENABLE_MEMORY_TAGS 0
  38. #endif
  39. #ifdef CONFIG_CMDLINE_TAG
  40. #define BOOTM_ENABLE_CMDLINE_TAG 1
  41. #else
  42. #define BOOTM_ENABLE_CMDLINE_TAG 0
  43. #endif
  44. #ifdef CONFIG_INITRD_TAG
  45. #define BOOTM_ENABLE_INITRD_TAG 1
  46. #else
  47. #define BOOTM_ENABLE_INITRD_TAG 0
  48. #endif
  49. #ifdef CONFIG_SERIAL_TAG
  50. #define BOOTM_ENABLE_SERIAL_TAG 1
  51. void get_board_serial(struct tag_serialnr *serialnr);
  52. #else
  53. #define BOOTM_ENABLE_SERIAL_TAG 0
  54. static inline void get_board_serial(struct tag_serialnr *serialnr)
  55. {
  56. }
  57. #endif
  58. #ifdef CONFIG_REVISION_TAG
  59. #define BOOTM_ENABLE_REVISION_TAG 1
  60. u32 get_board_rev(void);
  61. #else
  62. #define BOOTM_ENABLE_REVISION_TAG 0
  63. static inline u32 get_board_rev(void)
  64. {
  65. return 0;
  66. }
  67. #endif
  68. #endif