The GPIOs (in fact, all the peripherals) will not work unless their clocks are suitably configured & enabled!
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.