net: designware: s700: Add glue code for S700 mac

This patchs adds glue logic to enable designware mac present on
Action Semi based S700 SoC, Configures SoC specific bits.

Undocumented bit that programs the PHY interface select register
comes from vendor source.

It has been tested on Cubieboard7-lite based on S700 SoC.

Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
This commit is contained in:
Amit Singh Tomar
2020-05-09 19:55:12 +05:30
committed by Tom Rini
parent fa6539a3dc
commit 3c5c4ee35f
4 changed files with 81 additions and 0 deletions

View File

@@ -55,4 +55,10 @@
#define CMU_DEVCLKEN1_ETH BIT(23)
#define GPIO_MFP_PWM (0xE01B0000)
#define MFP_CTL0 (GPIO_MFP_PWM + 0x40)
#define MFP_CTL1 (GPIO_MFP_PWM + 0x44)
#define MFP_CTL2 (GPIO_MFP_PWM + 0x48)
#define MFP_CTL3 (GPIO_MFP_PWM + 0x4C)
#endif