-#ifndef __MACH_CLKDEV_H
-#define __MACH_CLKDEV_H
-
-static inline int __clk_get(struct clk *clk)
-{
- return 1;
-}
-
-static inline void __clk_put(struct clk *clk)
-{
-}
-
-#endif
+#include <plat/clkdev.h>
-/* arch/arm/mach-rk30/include/mach/debug-macro.S
- *
- * Copyright (C) 2012 ROCKCHIP, Inc.
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
-
-#include <mach/io.h>
-
-#ifdef DEBUG_UART_PHYS
- .macro addruart, rp, rv
- ldr \rp, = DEBUG_UART_PHYS
- ldr \rv, = DEBUG_UART_BASE
- .endm
-
-#define UART_SHIFT 2
-#include <asm/hardware/debug-8250.S>
-#else
- .macro addruart, rp, rv
- .endm
- .macro senduart, rd, rx
- .endm
- .macro busyuart, rd, rx
- .endm
- .macro waituart, rd, rx
- .endm
-#endif
+#include <plat/debug-macro.S>
-#include <mach/io.h>
-
-#define HAVE_GET_IRQNR_PREAMBLE
-#include <asm/hardware/entry-macro-gic.S>
-
- .macro disable_fiq
- .endm
-
- .macro get_irqnr_preamble, base, tmp
- ldr \base, =RK30_GICC_BASE
- .endm
-
- .macro arch_ret_to_user, tmp1, tmp2
- .endm
+#define GICC_BASE RK30_GICC_BASE
+#include <plat/entry-macro.S>
-#ifndef __MACH_TIMEX_H
-#define __MACH_TIMEX_H
-
-#define CLOCK_TICK_RATE (HZ * 100000UL)
-
-#endif /* __ASM_ARCH_TIMEX_H */
+#include <plat/timex.h>
-#ifndef __MACH_UNCOMPRESS_H
-#define __MACH_UNCOMPRESS_H
-
-#include <linux/serial_reg.h>
-#include <mach/io.h>
-
-#ifdef DEBUG_UART_PHYS
-static volatile u32 *UART = (u32 *)DEBUG_UART_PHYS;
-
-static void putc(int c)
-{
- while (!(UART[UART_LSR] & UART_LSR_THRE))
- barrier();
- UART[UART_TX] = c;
-}
-#else
-static inline void putc(int c)
-{
-}
-#endif
-
-static inline void flush(void)
-{
-}
-
-static inline void arch_decomp_setup(void)
-{
-}
-
-static inline void arch_decomp_wdog(void)
-{
-}
-
-#endif
+#include <plat/uncompress.h>
--- /dev/null
+#ifndef __PLAT_CLKDEV_H
+#define __PLAT_CLKDEV_H
+
+static inline int __clk_get(struct clk *clk)
+{
+ return 1;
+}
+
+static inline void __clk_put(struct clk *clk)
+{
+}
+
+#endif
--- /dev/null
+/*
+ * Copyright (C) 2012 ROCKCHIP, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <mach/io.h>
+
+#ifdef DEBUG_UART_PHYS
+ .macro addruart, rp, rv
+ ldr \rp, = DEBUG_UART_PHYS
+ ldr \rv, = DEBUG_UART_BASE
+ .endm
+
+#define UART_SHIFT 2
+#include <asm/hardware/debug-8250.S>
+#else
+ .macro addruart, rp, rv
+ .endm
+ .macro senduart, rd, rx
+ .endm
+ .macro busyuart, rd, rx
+ .endm
+ .macro waituart, rd, rx
+ .endm
+#endif
--- /dev/null
+#include <mach/io.h>
+
+#define HAVE_GET_IRQNR_PREAMBLE
+#include <asm/hardware/entry-macro-gic.S>
+
+ .macro disable_fiq
+ .endm
+
+ .macro get_irqnr_preamble, base, tmp
+ ldr \base, =GICC_BASE
+ .endm
+
+ .macro arch_ret_to_user, tmp1, tmp2
+ .endm
--- /dev/null
+#ifndef __PLAT_TIMEX_H
+#define __PLAT_TIMEX_H
+
+#define CLOCK_TICK_RATE (HZ * 100000UL)
+
+#endif
--- /dev/null
+#ifndef __PLAT_UNCOMPRESS_H
+#define __PLAT_UNCOMPRESS_H
+
+#include <linux/serial_reg.h>
+#include <mach/io.h>
+
+#ifdef DEBUG_UART_PHYS
+static volatile u32 *UART = (u32 *)DEBUG_UART_PHYS;
+
+static void putc(int c)
+{
+ while (!(UART[UART_LSR] & UART_LSR_THRE))
+ barrier();
+ UART[UART_TX] = c;
+}
+#else
+static inline void putc(int c)
+{
+}
+#endif
+
+static inline void flush(void)
+{
+}
+
+static inline void arch_decomp_setup(void)
+{
+}
+
+static inline void arch_decomp_wdog(void)
+{
+}
+
+#endif