fix function attributes should be defined/set in the function prototypes
fix install_irq expects a void* as second parameter
fix unnecessary casting
fix declared bl_init_clks as extern to enable to be called from bootloader
fix declared bl_init_ports as extern to enable to be called from bootloader
fix declared bl_uart_init as extern to enable to be called from bootloader