]> Git Repo - J-u-boot.git/blobdiff - arch/mips/mach-ath79/ar934x/clk.c
common: Drop asm/global_data.h from common header
[J-u-boot.git] / arch / mips / mach-ath79 / ar934x / clk.c
index ba2243c9be9c2a97e6919dee70c44ca38aed85e1..6ed4057353a8d78bb41b49156bc4b5d880b33c40 100644 (file)
@@ -1,13 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2016 Marek Vasut <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0+
  */
 
 #include <common.h>
+#include <clock_legacy.h>
+#include <command.h>
+#include <hang.h>
+#include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
 #include <asm/types.h>
+#include <linux/bitops.h>
+#include <linux/delay.h>
 #include <mach/ar71xx_regs.h>
 #include <mach/ath79.h>
 #include <wait_bit.h>
@@ -318,7 +323,8 @@ ulong get_ddr_freq(ulong dummy)
        return gd->mem_clk;
 }
 
-int do_ar934x_showclk(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ar934x_showclk(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        ar934x_update_clock();
        printf("CPU:       %8ld MHz\n", gd->cpu_clk / 1000000);
This page took 0.025661 seconds and 4 git commands to generate.