]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mips: Move per_clk and dev_clk to arch_global_data
authorSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2012 20:49:08 +0000 (20:49 +0000)
committerTom Rini <trini@ti.com>
Mon, 4 Feb 2013 14:05:44 +0000 (09:05 -0500)
Move these field into arch_global_data and tidy up. The other
CONFIG_JZSOC fields are used by various architectures, so just remove
the #ifdef bracketing for these.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/mips/include/asm/global_data.h

index 99949e1d16d9fb8a63db6230cdf499f5b7737d3b..fdd099e6f6e3d0878164ab578f1e2d8d2fe1948b 100644 (file)
 
 /* Architecture-specific global data */
 struct arch_global_data {
+#ifdef CONFIG_JZSOC
+       /* There are other clocks in the jz4740 */
+       unsigned long per_clk;  /* Peripheral bus clock */
+       unsigned long dev_clk;  /* Device clock */
+#endif
 };
 
 /*
@@ -41,13 +46,9 @@ struct arch_global_data {
 typedef        struct  global_data {
        bd_t            *bd;
        unsigned long   flags;
-#ifdef CONFIG_JZSOC
-       /* There are other clocks in the jz4740 */
        unsigned long   cpu_clk;        /* CPU core clock */
        unsigned long   sys_clk;        /* System bus clock */
-       unsigned long   per_clk;        /* Peripheral bus clock */
        unsigned long   mem_clk;        /* Memory bus clock */
-       unsigned long   dev_clk;        /* Device clock */
        /* "static data" needed by most of timer.c */
        unsigned long   tbl;
        unsigned long   lastinc;