sb/intel/bd82x6x/early_usb.c: Align native current map with MRC
Replace 3 unused values in the map with those found during a Ghidra examination of MRC binary, and on hardwares running vendor firmware (asus/p8z77-m and HP Z210 CMT Workstation). The outgoing values were introduced in commit 216ad2170ca8 ("sb/intel/bd82x6x: Add new USB currents") in anticipation for Gigabyte GA-Z77-DS3H mainboard, but effort to land it was eventually abandoned. Since commit xxxxxxxxxxxx, such values can be placed directly in the port config, so there should be no hurdle should that effort be resurrected. Add a few #defines in pch.h to place some inline documentation on MRC values, but more will be documented in the future when this mapping is introduced MRC-side. Finally, update autoport to match. Change-Id: I195c7f627994e48f7a6e6698589504dc96248cff Signed-off-by: Keith Hui <buurin@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82754 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
parent
943b540914
commit
51a01bdcd6
@ -20,8 +20,9 @@ void early_usb_init(const struct southbridge_usb_port *portmap)
|
||||
* See below. */
|
||||
const u32 currents[] = { USBIR_TXRX_GAIN_MOBILE_LOW, USBIR_TXRX_GAIN_DEFAULT,
|
||||
USBIR_TXRX_GAIN_HIGH, 0x20000f51, 0x2000094a, 0x2000035f,
|
||||
USBIR_TXRX_GAIN_DESKTOP_LOW, 0x20000357, 0x20000353,
|
||||
0x20000253, 0x20000053, 0x2000055f, 0x20000f5f};
|
||||
USBIR_TXRX_GAIN_DESKTOP6_LOW, USBIR_TXRX_GAIN_DESKTOP6_HIGH,
|
||||
USBIR_TXRX_GAIN_DESKTOP7_LOW, USBIR_TXRX_GAIN_DESKTOP7_MED,
|
||||
0x20000053, 0x2000055f, 0x20000f5f};
|
||||
int i;
|
||||
|
||||
/* Unlock registers. */
|
||||
|
@ -390,10 +390,23 @@ void early_usb_init(const struct southbridge_usb_port *portmap);
|
||||
|
||||
/* Up to 14" onboard trace length, up to 8" on wires */
|
||||
#define USBIR_TXRX_GAIN_DEFAULT 0x20000f57
|
||||
#define USBIR_TXRX_GAIN_MOBILE_HIGH USBIR_TXRX_GAIN_DEFAULT
|
||||
|
||||
/* Up to 10" onboard trace length, up to 15" on wires */
|
||||
#define USBIR_TXRX_GAIN_HIGH 0x2000055B
|
||||
|
||||
/* Desktop 6-series PCHs */
|
||||
/* In order: up to and not including 8"/13"/15" on wires */
|
||||
#define USBIR_TXRX_GAIN_DESKTOP6_LOW USBIR_TXRX_GAIN_DESKTOP_LOW
|
||||
#define USBIR_TXRX_GAIN_DESKTOP6_MED USBIR_TXRX_GAIN_DEFAULT
|
||||
#define USBIR_TXRX_GAIN_DESKTOP6_HIGH 0x20000f5b
|
||||
|
||||
/* Desktop 7-series PCHs */
|
||||
/* In order: up to and not including 8"/10"/15" on wires */
|
||||
#define USBIR_TXRX_GAIN_DESKTOP7_LOW USBIR_TXRX_GAIN_DEFAULT
|
||||
#define USBIR_TXRX_GAIN_DESKTOP7_MED 0x20000553
|
||||
#define USBIR_TXRX_GAIN_DESKTOP7_HIGH USBIR_TXRX_GAIN_HIGH
|
||||
|
||||
/* Miscellaneous Control Register */
|
||||
#define MISCCTL 0x3590 /* 32bit */
|
||||
/* USB Port Disable Override */
|
||||
|
@ -311,8 +311,8 @@ func (b bd82x6x) Scan(ctx Context, addr PCIDevData) {
|
||||
0x2000094a: 4,
|
||||
0x2000035f: 5,
|
||||
0x20000f53: 6,
|
||||
0x20000357: 7,
|
||||
0x20000353: 8,
|
||||
0x20000f5b: 7,
|
||||
0x20000553: 9,
|
||||
}
|
||||
|
||||
for port := uint(0); port < 14; port++ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user