writeprotect.c: merge range tables: move AMIC and Atmel ranges
Merge generic_range_table() and w25_range_table(). Both functions handle
each chip as a separate case already, so they can easily be unified,
reducing complexity associated with choosing the right range table
function for a specific chip.
Now that generic_range_table and w25_range_table() function signatures
match we can start merging them.
Both functions contain a large number of ranges, so merge them
incrementally: this patch only moves ranges for AMIC and Atmel chips
from w25_range_table() into generic_range_table().
BUG=b:182223106
TEST=builds
BRANCH=none
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Change-Id: Ibc5ef81c6b5c672ffb4b0222a506675018e90793
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2816716
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
1 file changed