1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

asm106x: add programmer for ASM106x SATA controllers

The ASMedia ASM106x series is a PCIe-SATA controller chip.  It supports
an attached SPI flash chip that can contain configuration and PCI option
ROM.  The interface is a simple shifter accessed via PCI config space,
up to 4 bytes at a time.  Add a programmer driver for it.

Tested on a G536PCE1061V11 IO-PCE1061-V1.1 PCIe card, and
a MPCE2ST-A01 VER006S mini-PCIe card, both with chips marked ASM1061,
both enumerate as:

	01:00.0 SATA controller [0106]: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612] (rev 02) (prog-if 01 [AHCI 1.0])
	        Subsystem: ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:1060]

Change-Id: I591b117be911bdb8249247c20530c1cf70f6e70d
Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/73037
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Thomas Heijligen <src@posteo.de>
This commit is contained in:
Alex Badea
2023-02-13 03:03:26 +00:00
committed by Thomas Heijligen
parent c4655409bb
commit 83b051a9b4
8 changed files with 190 additions and 9 deletions

View File

@ -137,6 +137,7 @@ DEPENDS_ON_X86_PORT_IO := \
CONFIG_SATAMV \
DEPENDS_ON_LIBPCI := \
CONFIG_ASM106X \
CONFIG_ATAHPT \
CONFIG_ATAPROMISE \
CONFIG_ATAVIA \
@ -437,6 +438,9 @@ CONFIG_GFXNVIDIA ?= yes
# Always enable SiI SATA controllers for now.
CONFIG_SATASII ?= yes
# ASMedia ASM106x
CONFIG_ASM106X ?= yes
# Highpoint (HPT) ATA/RAID controller support.
# IMPORTANT: This code is not yet working!
CONFIG_ATAHPT ?= no
@ -642,6 +646,12 @@ PROGRAMMER_OBJS += satasii.o
ACTIVE_PROGRAMMERS += satasii
endif
ifeq ($(CONFIG_ASM106X), yes)
FEATURE_FLAGS += -D'CONFIG_ASM106X=1'
PROGRAMMER_OBJS += asm106x.o
ACTIVE_PROGRAMMERS += asm106x
endif
ifeq ($(CONFIG_ATAHPT), yes)
FEATURE_FLAGS += -D'CONFIG_ATAHPT=1'
PROGRAMMER_OBJS += atahpt.o