ARM: 9308/1: move setup functions to header