imagetool.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * (C) Copyright 2013
  3. *
  4. * Written by Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #include "imagetool.h"
  9. /*
  10. * Callback function to register a image type within a tool
  11. */
  12. static imagetool_register_t register_func;
  13. /*
  14. * register_image_tool -
  15. *
  16. * The tool provides its own registration function in order to all image
  17. * types initialize themselves.
  18. */
  19. void register_image_tool(imagetool_register_t image_register)
  20. {
  21. /*
  22. * Save the image tool callback function. It will be used to register
  23. * image types within that tool
  24. */
  25. register_func = image_register;
  26. /* Init ATMEL ROM Boot Image generation/list support */
  27. init_atmel_image_type();
  28. /* Init Freescale PBL Boot image generation/list support */
  29. init_pbl_image_type();
  30. /* Init Kirkwood Boot image generation/list support */
  31. init_kwb_image_type();
  32. /* Init Freescale imx Boot image generation/list support */
  33. init_imx_image_type();
  34. /* Init Freescale mxs Boot image generation/list support */
  35. init_mxs_image_type();
  36. /* Init FIT image generation/list support */
  37. init_fit_image_type();
  38. /* Init TI OMAP Boot image generation/list support */
  39. init_omap_image_type();
  40. /* Init Default image generation/list support */
  41. init_default_image_type();
  42. /* Init Davinci UBL support */
  43. init_ubl_image_type();
  44. /* Init Davinci AIS support */
  45. init_ais_image_type();
  46. /* Init TI Keystone boot image generation/list support */
  47. init_gpimage_type();
  48. }
  49. /*
  50. * register_image_type -
  51. *
  52. * Register a image type within a tool
  53. */
  54. void register_image_type(struct image_type_params *tparams)
  55. {
  56. register_func(tparams);
  57. }