With the ksz_chip_id enums moved to the platform include file for ksz switches, platform code that instantiates a device can now use these to set ksz_platform_data::chip_id.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -22,6 +22,25 @@ · 21 unmodified lines | ||
| 22 | 22 | #include <linux/types.h> |
| 23 | 23 | #include <linux/platform_data/dsa.h> |
| 24 | 24 | |
| 25 | +enum ksz_chip_id { | |
| 26 | + KSZ8563_CHIP_ID = 0x8563, | |
| 27 | + KSZ8795_CHIP_ID = 0x8795, | |
| 28 | + KSZ8794_CHIP_ID = 0x8794, | |
| 29 | + KSZ8765_CHIP_ID = 0x8765, | |
| 30 | + KSZ8830_CHIP_ID = 0x8830, | |
| 31 | + KSZ9477_CHIP_ID = 0x00947700, | |
| 32 | + KSZ9896_CHIP_ID = 0x00989600, | |
| 33 | + KSZ9897_CHIP_ID = 0x00989700, | |
| 34 | + KSZ9893_CHIP_ID = 0x00989300, | |
| 35 | + KSZ9563_CHIP_ID = 0x00956300, | |
| 36 | + KSZ9567_CHIP_ID = 0x00956700, | |
| 37 | + LAN9370_CHIP_ID = 0x00937000, | |
| 38 | + LAN9371_CHIP_ID = 0x00937100, | |
| 39 | + LAN9372_CHIP_ID = 0x00937200, | |
| 40 | + LAN9373_CHIP_ID = 0x00937300, | |
| 41 | + LAN9374_CHIP_ID = 0x00937400, | |
| 42 | +}; | |
| 43 | + | |
| 25 | 44 | struct ksz_platform_data { |
| 26 | 45 | /* Must be first such that dsa_register_switch() can access it */ |
| 27 | 46 | struct dsa_chip_data cd; |