Access register to get/set gpio to instead of using api to get more efficient SPI operation.

Signed-off-by: cctsao1008 <chiacheng.tsao@gmail.com>