fwupdate.h 658 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * (C) Copyright 2007 Schindler Lift Inc.
  3. *
  4. * Author: Michel Marti <mma@objectxp.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __FW_UPDATE_H
  9. #define __FW_UPDATE_H
  10. /* Default prefix for output messages */
  11. #define LOG_PREFIX "CM5200:"
  12. /* Extra debug macro */
  13. #ifdef CONFIG_FWUPDATE_DEBUG
  14. #define FW_DEBUG(fmt...) printf(LOG_PREFIX fmt)
  15. #else
  16. #define FW_DEBUG(fmt...)
  17. #endif
  18. /* Name of the directory holding firmware images */
  19. #define FW_DIR "nx-fw"
  20. #define RESCUE_IMAGE "nxrs.img"
  21. #define LOAD_ADDR 0x400000
  22. #define RS_BOOTARGS "ramdisk_size=8192K"
  23. /* Main function for fwupdate */
  24. void cm5200_fwupdate(void);
  25. #endif /* __FW_UPDATE_H */