diff loadtools/fldevs.c @ 994:ad3041e19884

fc-loadtool flash: implement PPB ops for Spansion PL-N
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 03 Dec 2023 06:16:30 +0000
parents c4c400c1b10c
children
line wrap: on
line diff
--- a/loadtools/fldevs.c	Sun Dec 03 04:58:50 2023 +0000
+++ b/loadtools/fldevs.c	Sun Dec 03 06:16:30 2023 +0000
@@ -14,6 +14,9 @@
 extern int plj_ppb_erase_all_single();
 extern int plj_ppb_erase_all_dualbank();
 
+extern int pln_ppb_program_one();
+extern int pln_ppb_erase_all();
+
 /* flash bank geometries */
 
 static struct flash_geom geom_2M_topboot = {
@@ -556,6 +559,8 @@
 		{0x40000, 24, 0, 1, 1}},
 	.have_status_word_3	= 1,
 	.have_pln_lock_reg	= 1,
+	.ppb_program_one	= pln_ppb_program_one,
+	.ppb_erase_all		= pln_ppb_erase_all,
 };
 
 static struct amd_lock_info PL129N_lock_info_1 = {
@@ -565,6 +570,7 @@
 		{0x40000, 7, 0, 1, 0},
 		{0x10000, 4, 0, 0, 1}},
 	.have_status_word_3	= 1,
+	.ppb_program_one	= pln_ppb_program_one,
 };
 
 struct flash_device flashdev_PL129N = {