Add ioctl_setphymode to change chip phy mode

Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>