From a70d7b0192333133f8525305cce40f3d30e4281d Mon Sep 17 00:00:00 2001 From: Abbie Chang Date: Thu, 14 Jan 2021 13:34:12 -0800 Subject: net: phy: ca_phy: Add driver for CAxxxx SoCs Add phy driver support for MACs embedded inside Cortina Access SoCs Signed-off-by: Abbie Chang Signed-off-by: Alex Nemirovsky CC: Joe Hershberger CC: Tom Rini CC: Aaron Tseng Moved out PHY specific code out of Cortina NI Ethernet driver and into a Cortina Access PHY interface driver --- include/phy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/phy.h b/include/phy.h index cbdb10d6fc..7750efd8bb 100644 --- a/include/phy.h +++ b/include/phy.h @@ -493,6 +493,7 @@ int phy_aquantia_init(void); int phy_atheros_init(void); int phy_broadcom_init(void); int phy_cortina_init(void); +int phy_cortina_access_init(void); int phy_davicom_init(void); int phy_et1011c_init(void); int phy_lxt_init(void); -- cgit From c34a927566d553a799b4811456b49c88b6e5e30c Mon Sep 17 00:00:00 2001 From: Alex Nemirovsky Date: Thu, 14 Jan 2021 13:34:13 -0800 Subject: board: presidio-asic: Add CAxxxx Ethernet support Add CAxxxx Ethernet support for the Cortina Access Presidio Engineering Board Signed-off-by: Alex Nemirovsky CC: Tom Rini --- include/configs/presidio_asic.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/configs/presidio_asic.h b/include/configs/presidio_asic.h index 710731efd5..3f92621282 100644 --- a/include/configs/presidio_asic.h +++ b/include/configs/presidio_asic.h @@ -2,7 +2,7 @@ /* * Copyright (C) 2020 Cortina Access Inc. * - * Configuration for Cortina-Access Presidio board. + * Configuration for Cortina-Access Presidio board */ #ifndef __PRESIDIO_ASIC_H @@ -63,6 +63,19 @@ sizeof(CONFIG_SYS_PROMPT) + 16) #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE +#define KSEG1_ATU_XLAT(x) (x) + +/* HW REG ADDR */ +#define NI_READ_POLL_COUNT 1000 +#define CA_NI_MDIO_REG_BASE 0xF4338 +#define NI_HV_GLB_MAC_ADDR_CFG0_OFFSET 0x010 +#define NI_HV_GLB_MAC_ADDR_CFG1_OFFSET 0x014 +#define NI_HV_PT_BASE 0x400 +#define NI_HV_XRAM_BASE 0x820 +#define GLOBAL_BLOCK_RESET_OFFSET 0x04 +#define GLOBAL_GLOBAL_CONFIG_OFFSET 0x20 +#define GLOBAL_IO_DRIVE_CONTROL_OFFSET 0x4c + /* max command args */ #define CONFIG_SYS_MAXARGS 64 #define CONFIG_EXTRA_ENV_SETTINGS "silent=y\0" -- cgit