How to port the framework hardware kernel of the sensors gyroscope of VIM3 to vim1

According to https://forum.khadas.com/ web page information learned VIM3 support gyroscope KXTJ3-1057, but I have only VIM1 development board, have flash to the Android Pie, how to deal with code can make VIM 1 supported gyroscope KXTJ3-1057, Just think about what the software does, just switch branches?