From 552e7c57d035792c8939d86f276624e2614b936b Mon Sep 17 00:00:00 2001 From: Vicentiu Galanopulo Date: Wed, 2 May 2018 06:23:38 -0500 Subject: net/phy/cortina: Add support for CS4223 PHY Add support for Cortina CS4223 10G PHY - As per the CS4223 specs, an EEPROM module is connected to the PHY. At startup the PHY reads the firmware line and tries to load the firmware into the internal memory. - This driver reads the EEPROM status and checks if firmware has been loaded Signed-off-by: Vicentiu Galanopulo Acked-by: Joe Hershberger --- include/cortina.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cortina.h') diff --git a/include/cortina.h b/include/cortina.h index 4cb09855198..ba7fafe9c4d 100644 --- a/include/cortina.h +++ b/include/cortina.h @@ -64,6 +64,10 @@ #define VILLA_LINE_SDS_COMMON_STX0_TX_OUTPUT_CTRLA 0x427 #define VILLA_LINE_SDS_COMMON_STX0_TX_OUTPUT_CTRLB 0x428 +/* Cortina CS4223 */ +#define CS4223_EEPROM_STATUS 0x5001 +#define CS4223_EEPROM_FIRMWARE_LOADDONE 0x1 + #define mseq_edc_bist_done (0x1<<0) #define mseq_edc_bist_fail (0x1<<8) -- cgit v1.2.3