From c2644a3fc14088a2535c05edbd56c041b3a7370d Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sat, 16 Jan 2016 23:45:25 +0000 Subject: Add atapromise programmer Supported controllers are Promise PDC20262 (FastTrak66/Ultra66), PDC20265 (FastTrak100 Lite/Ultra100), PDC20267 (FastTrak100/Ultra100). At least the Ultra100 only has address lines A0-A14 wired up, limiting addressable chip size to 32 kB. The flash chips mounted on those controllers usually is 128 kB, i.e. parts of the flash chip are inaccessible. As a workaround, the driver implicitly truncates the size of all flash chips to 32 kB. Works well for the factory installed flash. Do NOT use as a generic programmer for chips >32 kB. Corresponding to flashrom svn r1916. Signed-off-by: Joseph C. Lehner Acked-by: Carl-Daniel Hailfinger Acked-by: Urja Rannikko --- programmer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'programmer.h') diff --git a/programmer.h b/programmer.h index 97f0ffa6..ff7cf5fa 100644 --- a/programmer.h +++ b/programmer.h @@ -57,6 +57,9 @@ enum programmer { #if CONFIG_ATAVIA == 1 PROGRAMMER_ATAVIA, #endif +#if CONFIG_ATAPROMISE == 1 + PROGRAMMER_ATAPROMISE, +#endif #if CONFIG_IT8212 == 1 PROGRAMMER_IT8212, #endif @@ -460,6 +463,13 @@ void *atavia_map(const char *descr, uintptr_t phys_addr, size_t len); extern const struct dev_entry ata_via[]; #endif +/* atapromise.c */ +#if CONFIG_ATAPROMISE == 1 +int atapromise_init(void); +void *atapromise_map(const char *descr, uintptr_t phys_addr, size_t len); +extern const struct dev_entry ata_promise[]; +#endif + /* it8212.c */ #if CONFIG_IT8212 == 1 int it8212_init(void); -- cgit v1.2.3