]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/hal/arm/mx51/karo/v1_0/include/karo_tx51.h
RedBoot STK5 Release 2010-03-04
[karo-tx-redboot.git] / packages / hal / arm / mx51 / karo / v1_0 / include / karo_tx51.h
index 5777da39331d26e5ffcce0a0b34d28f77914c3d5..439f2af3a5123a50559a423ab23e1d7a4f07b985 100644 (file)
        CYG_MACRO_END
 
 #if !defined(__ASSEMBLER__)
-#ifdef CYGOPT_HAL_ARM_TX51_DEBUG // REMOVE ME
-extern void plf_dumpmem(unsigned long addr, int len);
-#else
-static inline void plf_dumpmem(unsigned long addr, int len)
-{
-}
-#endif // CYGOPT_HAL_ARM_TX51_DEBUG
+void mxc_ipu_iomux_config(void);
 
 enum {
        BOARD_TYPE_TX51KARO,
@@ -164,11 +158,6 @@ static inline void gpio_set_bit(int grp, int gpio)
        writel(val | (1 << gpio), GPIO1_BASE_ADDR + ((grp - 1) << 14) + GPIO_DR);
        val = readl(GPIO1_BASE_ADDR + ((grp - 1) << 14) + GPIO_GDIR);
        writel(val | (1 << gpio), GPIO1_BASE_ADDR + ((grp - 1) << 14) + GPIO_GDIR);
-#if 0
-       if (grp != 2 || gpio != 17)
-       diag_printf("%s: Changing GPIO_DR[%d]@%08lx from %08lx to %08lx\n", __FUNCTION__,
-                               grp, GPIO1_BASE_ADDR + ((grp - 1) << 14), val, val | (1 << gpio));
-#endif
 }
 
 static inline void gpio_clr_bit(int grp, int gpio)
@@ -185,11 +174,6 @@ static inline void gpio_clr_bit(int grp, int gpio)
        writel(val & ~(1 << gpio), GPIO1_BASE_ADDR + ((grp - 1) << 14) + GPIO_DR);
        val = readl(GPIO1_BASE_ADDR + ((grp - 1) << 14) + GPIO_GDIR);
        writel(val | (1 << gpio), GPIO1_BASE_ADDR + ((grp - 1) << 14) + GPIO_GDIR);
-#if 0
-       if (grp != 2 || gpio != 17)
-       diag_printf("%s: Changing GPIO_DR[%d]@%08lx from %08lx to %08lx\n", __FUNCTION__,
-                               grp, GPIO1_BASE_ADDR + ((grp - 1) << 14), val, val & ~(1 << gpio));
-#endif
 }
 #endif /* __ASSEMBLER__ */