TX51 pre-release
[karo-tx-redboot.git] / packages / hal / arm / mx25 / karo / v1_0 / include / karo_tx25.h
index a2fc9bf..b443ed7 100644 (file)
 
 #include CYGHWR_MEMORY_LAYOUT_H
 
-#define SZ_1K                  0x00000400
-#define SZ_2K                  0x00000800
-#define SZ_4K                  0x00001000
-#define SZ_8K                  0x00002000
-#define SZ_16K                 0x00004000
-#define SZ_32K                 0x00008000
-#define SZ_64K                 0x00010000
-#define SZ_128K                0x00020000
-#define SZ_256K                0x00040000
-#define SZ_512K                0x00080000
-#define SZ_1M                  0x00100000
-#define SZ_2M                  0x00200000
-#define SZ_4M                  0x00400000
-#define SZ_8M                  0x00800000
-#define SZ_16M                 0x01000000
-#define SZ_32M                 0x02000000
-#define SZ_64M                 0x04000000
-#define SZ_128M                0x08000000
-#define SZ_256M                0x10000000
-#define SZ_512M                0x20000000
-#define SZ_1G                  0x40000000
-
-#define RAM_BANK0_BASE         CSD0_BASE_ADDR
-#define RAM_BANK1_BASE         CSD1_BASE_ADDR
-#if SDRAM_SIZE > SZ_32M
-#define RAM_BANK0_SIZE         (SDRAM_SIZE / 2)
-#define RAM_BANK1_SIZE         (SDRAM_SIZE / 2)
-#else
-#define RAM_BANK0_SIZE         SDRAM_SIZE
-#endif
-#define TX25_SDRAM_SIZE                SDRAM_SIZE
+#define SZ_1K                          0x00000400
+#define SZ_2K                          0x00000800
+#define SZ_4K                          0x00001000
+#define SZ_8K                          0x00002000
+#define SZ_16K                         0x00004000
+#define SZ_32K                         0x00008000
+#define SZ_64K                         0x00010000
+#define SZ_128K                                0x00020000
+#define SZ_256K                                0x00040000
+#define SZ_512K                                0x00080000
+#define SZ_1M                          0x00100000
+#define SZ_2M                          0x00200000
+#define SZ_4M                          0x00400000
+#define SZ_8M                          0x00800000
+#define SZ_16M                         0x01000000
+#define SZ_32M                         0x02000000
+#define SZ_64M                         0x04000000
+#define SZ_128M                                0x08000000
+#define SZ_256M                                0x10000000
+#define SZ_512M                                0x20000000
+#define SZ_1G                          0x40000000
 
 #define TX25_LED_MASK          (1 << 7)
 #define TX25_LED_REG_ADDR      (GPIO2_BASE_ADDR + GPIO_DR)
 })
 
 #define TURN_LED_ON(n)                                                 \
-    CYG_MACRO_START                                                            \
+       CYG_MACRO_START                                                         \
        CYG_WORD32 __val;                                                       \
        HAL_READ_UINT32(TX25_LED_REG_ADDR, __val);      \
        __val |= TX25_LED_MASK;                                         \
        HAL_WRITE_UINT32(TX25_LED_REG_ADDR, __val);     \
-    CYG_MACRO_END
+       CYG_MACRO_END
 
 #define TURN_LED_OFF(n)                                                        \
-    CYG_MACRO_START                                                            \
+       CYG_MACRO_START                                                         \
        CYG_WORD32 __val;                                                       \
        HAL_READ_UINT32(TX25_LED_REG_ADDR, __val);      \
        __val &= ~TX25_LED_MASK;                                        \
        HAL_WRITE_UINT32(TX25_LED_REG_ADDR, __val);     \
-    CYG_MACRO_END
+       CYG_MACRO_END
 
 #define BOARD_DEBUG_LED(n)                                             \
-    CYG_MACRO_START                                                            \
+       CYG_MACRO_START                                                         \
        if (n >= 0 && n < LED_MAX_NUM) {                        \
                if (LED_IS_ON(n))                                               \
                        TURN_LED_OFF(n);                                        \
                else                                                                    \
                        TURN_LED_ON(n);                                         \
        }                                                                                       \
-    CYG_MACRO_END
+       CYG_MACRO_END
 
 #define BLINK_LED(l, n)                                                        \
-    CYG_MACRO_START                                                            \
+       CYG_MACRO_START                                                         \
        int _i;                                                                         \
        for (_i = 0; _i < (n); _i++) {                          \
                BOARD_DEBUG_LED(l);                                             \
                HAL_DELAY_US(300000);                                   \
        }                                                                                       \
        HAL_DELAY_US(1000000);                                          \
-    CYG_MACRO_END
+       CYG_MACRO_END
 
 #if !defined(__ASSEMBLER__)
 enum {