summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-02-21 21:17:00 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-02-21 21:17:00 +0000
commitddd5c9e147e99430ed031cbf20380d745850c046 (patch)
tree523c9d402056eebfa075643e8cce2ca2853ca32c /flashrom.c
parent6e0b912f469a5595c138b3f7ddad77d691330e2f (diff)
downloadast2050-flashrom-ddd5c9e147e99430ed031cbf20380d745850c046.zip
ast2050-flashrom-ddd5c9e147e99430ed031cbf20380d745850c046.tar.gz
Add initial (non-working) code for Highpoint ATA/RAID controllers
It's disabled by default. The current status is detailed at: http://www.flashrom.org/pipermail/flashrom/2010-January/001828.html Corresponding to flashrom svn r908. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index d67680a..03d3bd5 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -44,7 +44,7 @@ enum programmer programmer = PROGRAMMER_DUMMY;
* if more than one of them is selected. If only one is selected, it is clear
* that the user wants that one to become the default.
*/
-#if NIC3COM_SUPPORT+GFXNVIDIA_SUPPORT+DRKAISER_SUPPORT+SATASII_SUPPORT+FT2232_SPI_SUPPORT+SERPROG_SUPPORT+BUSPIRATE_SPI_SUPPORT+DEDIPROG_SUPPORT > 1
+#if NIC3COM_SUPPORT+GFXNVIDIA_SUPPORT+DRKAISER_SUPPORT+SATASII_SUPPORT+ATAHPT_SUPPORT+FT2232_SPI_SUPPORT+SERPROG_SUPPORT+BUSPIRATE_SPI_SUPPORT+DEDIPROG_SUPPORT > 1
#error Please enable either CONFIG_DUMMY or CONFIG_INTERNAL or disable support for all external programmers except one.
#endif
enum programmer programmer =
@@ -60,6 +60,9 @@ enum programmer programmer =
#if SATASII_SUPPORT == 1
PROGRAMMER_SATASII
#endif
+#if ATAHPT_SUPPORT == 1
+ PROGRAMMER_ATAHPT
+#endif
#if FT2232_SPI_SUPPORT == 1
PROGRAMMER_FT2232SPI
#endif
@@ -210,6 +213,25 @@ const struct programmer_entry programmer_table[] = {
},
#endif
+#if ATAHPT_SUPPORT == 1
+ {
+ .name = "atahpt",
+ .init = atahpt_init,
+ .shutdown = atahpt_shutdown,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .chip_readb = atahpt_chip_readb,
+ .chip_readw = fallback_chip_readw,
+ .chip_readl = fallback_chip_readl,
+ .chip_readn = fallback_chip_readn,
+ .chip_writeb = atahpt_chip_writeb,
+ .chip_writew = fallback_chip_writew,
+ .chip_writel = fallback_chip_writel,
+ .chip_writen = fallback_chip_writen,
+ .delay = internal_delay,
+ },
+#endif
+
#if INTERNAL_SUPPORT == 1
{
.name = "it87spi",
OpenPOWER on IntegriCloud