gen 2: add hook for handling modes for gpio
gen 2: add hook for handling modes for gpio

Signed-off-by: Thomas Ingleby <cea8b9d820e871fd22532c955ca84ff867a004a3@intel.com>

yoyojacky/mraa,noahchense/mraa,alex1818/mraa,KurtE/mraa,ncrastanaren/mraa,yangjae/mraa,Kiritoalex/mraa,Propanu/mraa,intel-iot-devkit/mraa,alex1818/mraa,alext-mkrs/mraa,jontrulson/mraa,yongli3/mraa,pctj101/mraa,arunlee77/mraa,arfoll/mraa,neuroidss/mraa,zBMNForks/mraa,alexandru-elisei/mraa,spitfire88/mraa,Propanu/mraa,allela-roy/mraa,arunlee77/mraa,Jon-ICS/mraa,anonymouse64/mraa,stefan-andritoiu/mraa,whbruce/mraa,KurtE/mraa,alext-mkrs/mraa,nioinnovation/mraa,g-vidal/mraa,sundw2014/mraa,neuberfran/mraa,petreeftime/mraa,SyrianSpock/mraa,petreeftime/mraa,Pillar1989/mraa,SyrianSpock/mraa,yongli3/mraa,zBMNForks/mraa,noahchense/mraa,anonymouse64/mraa,Pillar1989/mraa,Propanu/mraa,pctj101/mraa,sergev/mraa,mircea/mraa,ncrastanaren/mraa,sergev/mraa,stefan-andritoiu/mraa-gpio-chardev,sundw2014/mraa,allela-roy/mraa,alexandru-elisei/mraa,Jon-ICS/mraa,sergev/mraa,anonymouse64/mraa,ProfFan/mraa,yongli3/mraa,g-vidal/mraa,malikabhi05/mraa,petreeftime/mraa,KurtE/mraa,seem-sky/mraa,alexandru-elisei/mraa,intel-iot-devkit/mraa,STANAPO/mraa,tripzero/mraa,matt-auld/mraa,sergev/mraa,Jon-ICS/mraa,seem-sky/mraa,jontrulson/mraa,neuberfran/mraa,mircea/mraa,KurtE/mraa,ncrastanaren/mraa,ProfFan/mraa,alexandru-elisei/mraa,seem-sky/mraa,alexandru-elisei/mraa,alext-mkrs/mraa,noahchense/mraa,stefan-andritoiu/mraa,tripzero/mraa,matt-auld/mraa,Propanu/mraa,arfoll/mraa,ncrastanaren/mraa,ncrastanaren/mraa,g-vidal/mraa,spitfire88/mraa,neuroidss/mraa,tripzero/mraa,zBMNForks/mraa,intel-iot-devkit/mraa,yangjae/mraa,timrtoo/Intel,sundw2014/mraa,Propanu/mraa,nioinnovation/mraa,w4ilun/mraa,alext-mkrs/mraa,Meirtz/mraa,stefan-andritoiu/mraa,jontrulson/mraa,noahchense/mraa,intel-iot-devkit/mraa,whbruce/mraa,Pillar1989/mraa,arunlee77/mraa,intel-iot-devkit/mraa,andreivasiliu2211/mraa,sundw2014/mraa,timrtoo/Intel,Hbrinj/mraa,g-vidal/mraa,stefan-andritoiu/mraa-gpio-chardev,malikabhi05/mraa,STANAPO/mraa,andreivasiliu2211/mraa,damcclos/mraa,yoyojacky/mraa,mircea/mraa,whbruce/mraa,whbruce/mraa,sundw2014/mraa,w4ilun/mraa,smileboywtu/mraa,w4ilun/mraa,yoyojacky/mraa,neuberfran/mraa,allela-roy/mraa,seem-sky/mraa,SyrianSpock/mraa,pctj101/mraa,Meirtz/mraa,damcclos/mraa,yongli3/mraa,yongli3/mraa,g-vidal/mraa,STANAPO/mraa,stefan-andritoiu/mraa,jontrulson/mraa,petreeftime/mraa,alext-mkrs/mraa,w4ilun/mraa,sergev/mraa,malikabhi05/mraa,timrtoo/Intel,neuberfran/mraa,yangjae/mraa,neuroidss/mraa,noahchense/mraa,spitfire88/mraa,seem-sky/mraa,jontrulson/mraa,Kiritoalex/mraa,stefan-andritoiu/mraa-gpio-chardev,timrtoo/Intel,yangjae/mraa,arfoll/mraa,stefan-andritoiu/mraa,arunlee77/mraa,nioinnovation/mraa,Kiritoalex/mraa,damcclos/mraa,pctj101/mraa,Meirtz/mraa,ProfFan/mraa,matt-auld/mraa,Hbrinj/mraa,malikabhi05/mraa,ProfFan/mraa,alex1818/mraa,KurtE/mraa,andreivasiliu2211/mraa,stefan-andritoiu/mraa-gpio-chardev,spitfire88/mraa,smileboywtu/mraa,Hbrinj/mraa,andreivasiliu2211/mraa,neuberfran/mraa,Hbrinj/mraa,arfoll/mraa,pctj101/mraa,stefan-andritoiu/mraa-gpio-chardev,arfoll/mraa,timrtoo/Intel,smileboywtu/mraa,malikabhi05/mraa