Merges https://github.com/espressif/esp-idf/pull/1594
Merges #1127
Move generic PHY support into its own interface