]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: sdhci: Remove mmc.h and move it to sys_proto.h
authorMichal Simek <michal.simek@xilinx.com>
Thu, 11 Apr 2013 14:04:21 +0000 (16:04 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 12 Apr 2013 14:27:00 +0000 (16:27 +0200)
It is useless to have one huge file with one function
declaration. Move it to sys_proto.h where others system
functions are.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/include/asm/arch-zynq/mmc.h [deleted file]
arch/arm/include/asm/arch-zynq/sys_proto.h
board/xilinx/zynq/board.c
drivers/mmc/zynq_sdhci.c

diff --git a/arch/arm/include/asm/arch-zynq/mmc.h b/arch/arm/include/asm/arch-zynq/mmc.h
deleted file mode 100644 (file)
index de0155a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2012 Joe Hershberger <joe.hershberger@ni.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef __ASM_ARCH_MMC_H_
-#define __ASM_ARCH_MMC_H_
-
-int zynq_sdhci_init(u32 regbase);
-
-#endif /* __ASM_ARCH_MMC_H_ */
index 411589eb525bcc03baec9aea7cbb5d6c53dfd418..372393971eb3a79357cdfe6984a318fab1ac40d6 100644 (file)
@@ -33,4 +33,7 @@ extern u32 zynq_slcr_get_boot_mode(void);
 extern u32 zynq_slcr_get_idcode(void);
 extern int zynq_slcr_get_mio_pin_status(const char *periph);
 
+/* Driver extern functions */
+extern int zynq_sdhci_init(u32 regbase);
+
 #endif /* _SYS_PROTO_H_ */
index 0fb99a47bd06194aeb69ae808052adaaf8b1da21..a190de2b536a78e43a44e3b65cdbb7aba00c24cd 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <common.h>
 #include <asm/io.h>
-#include <asm/arch/mmc.h>
 #include <asm/arch/nand.h>
 #include <netdev.h>
 #include <zynqpl.h>
index d80f3537d5bb90c34c93981a33b5d2972c890a85..a3b9dfa552b2bfafdd4be3c19e2036c3fbb968ba 100644 (file)
@@ -16,7 +16,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <sdhci.h>
-#include <asm/arch/mmc.h>
+#include <asm/arch/sys_proto.h>
 
 int zynq_sdhci_init(u32 regbase)
 {