[ARM] 4590/1: ns9xxx: add gpio handling functions