Move shareable gpio function to platform