]> git.karo-electronics.de Git - karo-tx-redboot.git/blobdiff - packages/hal/arm/mx25/var/v2_0/src/soc_diag.c
Added TX25 bootsplash support
[karo-tx-redboot.git] / packages / hal / arm / mx25 / var / v2_0 / src / soc_diag.c
index a125ccd09290fa89ab6c2a343bb56e1d2d3b5924..6129c6ff4da9668bd8c6a4b4d8c02edd7d936a80 100644 (file)
 #define MXC_UART_CHAN_OFFSET   0
 #endif
 
-#if 0
-void
-cyg_hal_plf_comms_init(void)
-{
-       static int initialized = 0;
-
-       if (initialized)
-               return;
-
-       initialized = 1;
-
-       cyg_hal_plf_serial_init();
-}
-#endif
 
 //=============================================================================
 // MXC Serial Port (UARTx) for Debug
@@ -254,7 +240,7 @@ typedef struct {
 static channel_data_t channels[] = {
 #if CYGHWR_HAL_ARM_SOC_UART1 != 0
        {(volatile struct mxc_serial*)UART1_BASE_ADDR, 1000,
-         CYGNUM_HAL_INTERRUPT_UART1, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD},
+        CYGNUM_HAL_INTERRUPT_UART1, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD},
 #endif
 #if CYGHWR_HAL_ARM_SOC_UART2 != 0
        {(volatile struct mxc_serial*)UART2_BASE_ADDR, 1000,
@@ -377,7 +363,7 @@ void cyg_hal_plf_serial_putc(void *__ch_data, char c)
 }
 
 static cyg_bool cyg_hal_plf_serial_getc_nonblock(void *__ch_data,
-                                                                                                cyg_uint8 *ch)
+                                                                                               cyg_uint8 *ch)
 {
        channel_data_t *chan = __ch_data;
        volatile struct mxc_serial *base = chan->base;
@@ -403,7 +389,7 @@ cyg_uint8 cyg_hal_plf_serial_getc(void *__ch_data)
 }
 
 static void cyg_hal_plf_serial_write(void *__ch_data, const cyg_uint8 *__buf,
-                                                                        cyg_uint32 __len)
+                                                                       cyg_uint32 __len)
 {
        CYGARC_HAL_SAVE_GP();
 
@@ -425,7 +411,7 @@ static void cyg_hal_plf_serial_read(void *__ch_data, cyg_uint8 *__buf,
 }
 
 cyg_bool cyg_hal_plf_serial_getc_timeout(void *__ch_data,
-                                                                                cyg_uint8 *ch)
+                                                                               cyg_uint8 *ch)
 {
        int delay_count;
        channel_data_t *chan = __ch_data;
@@ -447,7 +433,7 @@ cyg_bool cyg_hal_plf_serial_getc_timeout(void *__ch_data,
 }
 
 static int cyg_hal_plf_serial_control(void *__ch_data,
-                                                                         __comm_control_cmd_t __func, ...)
+                                                                       __comm_control_cmd_t __func, ...)
 {
        static int irq_state = 0;
        channel_data_t *chan = __ch_data;
@@ -498,7 +484,7 @@ static int cyg_hal_plf_serial_control(void *__ch_data,
 }
 
 static int cyg_hal_plf_serial_isr(void *__ch_data, int *__ctrlc,
-                                                                 CYG_ADDRWORD __vector, CYG_ADDRWORD __data)
+                                                               CYG_ADDRWORD __vector, CYG_ADDRWORD __data)
 {
        int res = 0;
        channel_data_t *chan = __ch_data;