mirror of
				https://github.com/linux-sunxi/u-boot-sunxi.git
				synced 2024-02-12 11:16:03 +08:00 
			
		
		
		
	net: keystone_net: add support for NETCP v1.5
Currently the network driver is used only by k2hk evm board. The k2hk SoC contains NETCP v1.0, but Keystone2 SoCs, like k2e contain NETCP v1.5. So driver should be able to work with such kind of NETCP. This commit adds this opportunity. The main difference in masks and some registers, the logic is the same, so only definitions should be changed. To differentiate between versions add KS2_NETCP_V1_0 and KS2_NETCP_V1_5. Also remove unused and no more needed defines. The port number is specific for each board so move this parameter to configuration. Acked-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Hao Zhang <hzhang@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
This commit is contained in:
		
				
					committed by
					
						
						Tom Rini
					
				
			
			
				
	
			
			
			
						parent
						
							b2cfe32278
						
					
				
				
					commit
					e3114c9a06
				
			@ -38,5 +38,6 @@
 | 
			
		||||
#define CONFIG_DRIVER_TI_KEYSTONE_NET
 | 
			
		||||
#define CONFIG_TI_KSNAV
 | 
			
		||||
#define CONFIG_KSNAV_PKTDMA_NETCP
 | 
			
		||||
#define CONFIG_KSNET_CPSW_NUM_PORTS	5
 | 
			
		||||
 | 
			
		||||
#endif /* __CONFIG_K2HK_EVM_H */
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user