sdp.h 470 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * sdp.h - Serial Download Protocol
  4. *
  5. * Copyright (C) 2017 Toradex
  6. * Author: Stefan Agner <stefan.agner@toradex.com>
  7. */
  8. #ifndef __SDP_H_
  9. #define __SDP_H_
  10. int sdp_init(int controller_index);
  11. #ifdef CONFIG_SPL_BUILD
  12. #include <spl.h>
  13. int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image,
  14. struct spl_boot_device *bootdev);
  15. #else
  16. int sdp_handle(int controller_index);
  17. #endif
  18. #endif /* __SDP_H_ */