Guilherme Maciel Ferreira | 8ed4d1c | 2013-12-01 12:43:10 -0700 | [diff] [blame] | 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 | |
| 9 | #include "imagetool.h" |
| 10 | |
| 11 | /* |
| 12 | * Callback function to register a image type within a tool |
| 13 | */ |
| 14 | static imagetool_register_t register_func; |
| 15 | |
| 16 | /* |
| 17 | * register_image_tool - |
| 18 | * |
| 19 | * The tool provides its own registration function in order to all image |
| 20 | * types initialize themselves. |
| 21 | */ |
| 22 | void register_image_tool(imagetool_register_t image_register) |
| 23 | { |
| 24 | /* |
| 25 | * Save the image tool callback function. It will be used to register |
| 26 | * image types within that tool |
| 27 | */ |
| 28 | register_func = image_register; |
| 29 | |
Andreas Bießmann | 7c75d3e | 2014-05-19 14:23:39 +0200 | [diff] [blame] | 30 | /* Init ATMEL ROM Boot Image generation/list support */ |
| 31 | init_atmel_image_type(); |
Guilherme Maciel Ferreira | 8ed4d1c | 2013-12-01 12:43:10 -0700 | [diff] [blame] | 32 | /* Init Freescale PBL Boot image generation/list support */ |
| 33 | init_pbl_image_type(); |
| 34 | /* Init Kirkwood Boot image generation/list support */ |
| 35 | init_kwb_image_type(); |
| 36 | /* Init Freescale imx Boot image generation/list support */ |
| 37 | init_imx_image_type(); |
| 38 | /* Init Freescale mxs Boot image generation/list support */ |
| 39 | init_mxs_image_type(); |
| 40 | /* Init FIT image generation/list support */ |
| 41 | init_fit_image_type(); |
| 42 | /* Init TI OMAP Boot image generation/list support */ |
| 43 | init_omap_image_type(); |
| 44 | /* Init Default image generation/list support */ |
| 45 | init_default_image_type(); |
| 46 | /* Init Davinci UBL support */ |
| 47 | init_ubl_image_type(); |
| 48 | /* Init Davinci AIS support */ |
| 49 | init_ais_image_type(); |
Charles Manning | 685e87f | 2014-03-06 15:40:50 +1300 | [diff] [blame] | 50 | /* Init Altera SOCFPGA support */ |
| 51 | init_socfpga_image_type(); |
Karicheri, Muralidharan | 8277793 | 2014-04-04 13:16:48 -0400 | [diff] [blame] | 52 | /* Init TI Keystone boot image generation/list support */ |
| 53 | init_gpimage_type(); |
Guilherme Maciel Ferreira | 8ed4d1c | 2013-12-01 12:43:10 -0700 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | /* |
| 57 | * register_image_type - |
| 58 | * |
| 59 | * Register a image type within a tool |
| 60 | */ |
| 61 | void register_image_type(struct image_type_params *tparams) |
| 62 | { |
| 63 | register_func(tparams); |
| 64 | } |