Blame view
include/sja1105.h
907 Bytes
88540b404 sja1105: Add SJA1... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2017 NXP * * SJA1105 Driver */ #ifndef _SJA1105_H_ #define _SJA1105_H_ /** * sja1105_probe() - Probe for SJA1105 switch based on CS and Bus * * Given a bus number and chip select, this probes the corresponding bus device * for a SJA1105 switch. Writes the firmware on to the device. * * @cs: Chip select to look for * @bus: SPI bus number * @return 0 if found, 0 < on error */ int sja1105_probe(u32 cs, u32 bus); |
34b9dcd47 sja1105: Add port... |
22 23 24 25 26 27 28 29 30 31 32 |
/** * sja1105_reset_ports() - Reset ports on SJA1105 in order to allow traffic * * Given a bus number and chip select, this resets the ports on the * corresponding SJA1105 switch. This is done in order to allow traffic in case * the ports become unresponsive. Should be called upon network operations. * * @cs: Chip select to look for * @bus: SPI bus number */ void sja1105_reset_ports(u32 cs, u32 bus); |
88540b404 sja1105: Add SJA1... |
33 |
#endif |