/* */ #ifndef _IMAGE_H_ #define _IMAGE_H_ #include "memory.h" extern int image_load(const char *image_path, int image_format, struct memory *mem); /* Image file loader functions */ typedef int (*loader_func_t)(FILE *, const char *, struct memory *); extern int srec_load(FILE *fp, const char *name, struct memory *mem); extern int elf_load(FILE *fp, const char *name, struct memory *mem); enum { FORMAT_SREC, FORMAT_ELF, }; static inline char *image_format_str(int format) { char *ret; switch (format) { case FORMAT_SREC: ret = "SREC"; break; case FORMAT_ELF: ret = "ELF"; break; default: ret = ""; } return ret; } #endif /* _IMAGE_H_ */
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-06 15:35:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-06 15:35:27 -0800
commitd72f0ded89cc78598b8eb0570890234eba167588 (patch)
tree0af9aeb1eb47d93ff2cc3e0d26669caec58fa9d2
parentbaaf031521b7f67be45f07593023b6ba47f07d15 (diff)
parent3868f132cce6abab089fd6b12d6a7333712ade83 (diff)
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fixes from Stephen Boyd: "One fix for a broken driver on Renesas RZ/A1 SoCs with bootloaders that don't turn all the clks on and another fix for stm32f4 SoCs where we have multiple drivers attaching to the same DT node" * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: stm32f4: Use CLK_OF_DECLARE_DRIVER initialization method clk: renesas: mstp: Support 8-bit registers for r7s72100