mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
net: keystone_serdes: add keystone K2L SoC support
Keystone2 Lamar SoC uses the same keystone SerDes driver. All Keystone2 EVM boards currently use SerDes driver, so move CONFIG_TI_KEYSTONE_SERDES to common configuration file. Acked-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
This commit is contained in:
parent
f324f2c00b
commit
87ac27bd5b
5 changed files with 8 additions and 7 deletions
|
@ -84,6 +84,10 @@
|
||||||
/* OSR memory size */
|
/* OSR memory size */
|
||||||
#define KS2_OSR_SIZE 0x100000
|
#define KS2_OSR_SIZE 0x100000
|
||||||
|
|
||||||
|
/* SGMII SerDes */
|
||||||
|
#define KS2_SGMII_SERDES2_BASE 0x02320000
|
||||||
|
#define KS2_LANES_PER_SGMII_SERDES 2
|
||||||
|
|
||||||
/* Number of DSP cores */
|
/* Number of DSP cores */
|
||||||
#define KS2_NUM_DSPS 4
|
#define KS2_NUM_DSPS 4
|
||||||
|
|
||||||
|
|
|
@ -582,7 +582,7 @@ static void keystone2_net_serdes_setup(void)
|
||||||
&ks2_serdes_sgmii_156p25mhz,
|
&ks2_serdes_sgmii_156p25mhz,
|
||||||
CONFIG_KSNET_SERDES_LANES_PER_SGMII);
|
CONFIG_KSNET_SERDES_LANES_PER_SGMII);
|
||||||
|
|
||||||
#ifdef CONFIG_SOC_K2E
|
#if defined(CONFIG_SOC_K2E) || defined(CONFIG_SOC_K2L)
|
||||||
ks2_serdes_init(CONFIG_KSNET_SERDES_SGMII2_BASE,
|
ks2_serdes_init(CONFIG_KSNET_SERDES_SGMII2_BASE,
|
||||||
&ks2_serdes_sgmii_156p25mhz,
|
&ks2_serdes_sgmii_156p25mhz,
|
||||||
CONFIG_KSNET_SERDES_LANES_PER_SGMII);
|
CONFIG_KSNET_SERDES_LANES_PER_SGMII);
|
||||||
|
|
|
@ -42,7 +42,4 @@
|
||||||
#define CONFIG_KSNET_CPSW_NUM_PORTS 9
|
#define CONFIG_KSNET_CPSW_NUM_PORTS 9
|
||||||
#define CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE
|
#define CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE
|
||||||
|
|
||||||
/* SerDes */
|
|
||||||
#define CONFIG_TI_KEYSTONE_SERDES
|
|
||||||
|
|
||||||
#endif /* __CONFIG_K2E_EVM_H */
|
#endif /* __CONFIG_K2E_EVM_H */
|
||||||
|
|
|
@ -41,7 +41,4 @@
|
||||||
#define CONFIG_KSNET_NETCP_V1_0
|
#define CONFIG_KSNET_NETCP_V1_0
|
||||||
#define CONFIG_KSNET_CPSW_NUM_PORTS 5
|
#define CONFIG_KSNET_CPSW_NUM_PORTS 5
|
||||||
|
|
||||||
/* SerDes */
|
|
||||||
#define CONFIG_TI_KEYSTONE_SERDES
|
|
||||||
|
|
||||||
#endif /* __CONFIG_K2HK_EVM_H */
|
#endif /* __CONFIG_K2HK_EVM_H */
|
||||||
|
|
|
@ -140,6 +140,9 @@
|
||||||
#define CONFIG_KSNET_SERDES_SGMII2_BASE KS2_SGMII_SERDES2_BASE
|
#define CONFIG_KSNET_SERDES_SGMII2_BASE KS2_SGMII_SERDES2_BASE
|
||||||
#define CONFIG_KSNET_SERDES_LANES_PER_SGMII KS2_LANES_PER_SGMII_SERDES
|
#define CONFIG_KSNET_SERDES_LANES_PER_SGMII KS2_LANES_PER_SGMII_SERDES
|
||||||
|
|
||||||
|
/* SerDes */
|
||||||
|
#define CONFIG_TI_KEYSTONE_SERDES
|
||||||
|
|
||||||
/* AEMIF */
|
/* AEMIF */
|
||||||
#define CONFIG_TI_AEMIF
|
#define CONFIG_TI_AEMIF
|
||||||
#define CONFIG_AEMIF_CNTRL_BASE KS2_AEMIF_CNTRL_BASE
|
#define CONFIG_AEMIF_CNTRL_BASE KS2_AEMIF_CNTRL_BASE
|
||||||
|
|
Loading…
Reference in a new issue