mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 06:53:18 +02:00
programmer_table: move each entry to the associated programmer source
Change-Id: I3d02bd789f0299e936eb86819b3b15b5ea2bb921 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52946 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:

committed by
Nico Huber

parent
085db626fb
commit
4f5169df5f
13
mec1308.c
13
mec1308.c
@ -419,7 +419,7 @@ static int check_params(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mec1308_init(void)
|
||||
static int mec1308_init(void)
|
||||
{
|
||||
uint16_t sio_port;
|
||||
uint8_t device_id;
|
||||
@ -521,4 +521,15 @@ init_err_exit:
|
||||
free(ctx_data);
|
||||
return 1;
|
||||
}
|
||||
|
||||
const struct programmer_entry programmer_mec1308 = {
|
||||
.name = "mec1308",
|
||||
.type = OTHER,
|
||||
.devs.note = "Microchip MEC1308 Embedded Controller.\n",
|
||||
.init = mec1308_init,
|
||||
.map_flash_region = fallback_map,
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user