Fix use after reset value
Fix wrong header included
Fix use after reset value and disable clockgate when uninit