Preparing this to move to drivers/ directory, want to make it as similar to original code from TI as possible.