dm: move platform data headers to include/dm/platform_data
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 24 Oct 2014 03:41:19 +0000 (12:41 +0900)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 03:43:07 +0000 (21:43 -0600)
The platform_data definitions are generally referenced from both
drivers and board files.  That is why header files defining
platform_data sturectures are placed in "include" directory,
but our top level "include" directory is already too cluttered.

Let's collect platform_data definitions under the directory
"include/dm/platform_data" like Linux gathers ones around under
"include/linux/platform_data".

This commit moves two header files:

  include/serial_mxc.h -> include/dm/platform_data/serial_mxc.h
  include/serial_pl01x.h -> include/dm/platform_data/serial_pl01x.h

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
board/compulab/cm_fx6/cm_fx6.c
drivers/serial/serial_mxc.c
drivers/serial/serial_pl01x.c
include/dm/platform_data/serial_mxc.h [new file with mode: 0644]
include/dm/platform_data/serial_pl01x.h [new file with mode: 0644]
include/serial_mxc.h [deleted file]
include/serial_pl01x.h [deleted file]

index f77ff48a1c3fb69f7bc04ec22f8cf95ac291122b..82681b10eb8cef4d92f80a751ad99a2360271a37 100644 (file)
@@ -15,7 +15,6 @@
 #include <netdev.h>
 #include <fdt_support.h>
 #include <sata.h>
-#include <serial_mxc.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/iomux.h>
@@ -23,6 +22,7 @@
 #include <asm/imx-common/sata.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <dm/platform_data/serial_mxc.h>
 #include "common.h"
 #include "../common/eeprom.h"
 
index 9ce24f9f932d932f6244479241809b8858a696a4..d6cf1d874a60c72c747489849bf58cffc915e57c 100644 (file)
@@ -7,10 +7,10 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
-#include <serial_mxc.h>
 #include <watchdog.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
+#include <dm/platform_data/serial_mxc.h>
 #include <serial.h>
 #include <linux/compiler.h>
 
index e6313ad3d3a8d238a774543bab6777964b04627f..38dda910217652ecf167ad52bbc53af3559e2722 100644 (file)
@@ -17,7 +17,7 @@
 #include <watchdog.h>
 #include <asm/io.h>
 #include <serial.h>
-#include <serial_pl01x.h>
+#include <dm/platform_data/serial_pl01x.h>
 #include <linux/compiler.h>
 #include "serial_pl01x_internal.h"
 
diff --git a/include/dm/platform_data/serial_mxc.h b/include/dm/platform_data/serial_mxc.h
new file mode 100644 (file)
index 0000000..7d3ace2
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2014 Google, Inc
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __serial_mxc_h
+#define __serial_mxc_h
+
+/* Information about a serial port */
+struct mxc_serial_platdata {
+       struct mxc_uart *reg;  /* address of registers in physical memory */
+};
+
+#endif
diff --git a/include/dm/platform_data/serial_pl01x.h b/include/dm/platform_data/serial_pl01x.h
new file mode 100644 (file)
index 0000000..5e068f3
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2014 Google, Inc
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __serial_pl01x_h
+#define __serial_pl01x_h
+
+enum pl01x_type {
+       TYPE_PL010,
+       TYPE_PL011,
+};
+
+/*
+ *Information about a serial port
+ *
+ * @base: Register base address
+ * @type: Port type
+ * @clock: Input clock rate, used for calculating the baud rate divisor
+ */
+struct pl01x_serial_platdata {
+       unsigned long base;
+       enum pl01x_type type;
+       unsigned int clock;
+};
+
+#endif
diff --git a/include/serial_mxc.h b/include/serial_mxc.h
deleted file mode 100644 (file)
index 7d3ace2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Copyright (c) 2014 Google, Inc
- * SPDX-License-Identifier:    GPL-2.0+
- */
-
-#ifndef __serial_mxc_h
-#define __serial_mxc_h
-
-/* Information about a serial port */
-struct mxc_serial_platdata {
-       struct mxc_uart *reg;  /* address of registers in physical memory */
-};
-
-#endif
diff --git a/include/serial_pl01x.h b/include/serial_pl01x.h
deleted file mode 100644 (file)
index 5e068f3..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2014 Google, Inc
- * SPDX-License-Identifier:    GPL-2.0+
- */
-
-#ifndef __serial_pl01x_h
-#define __serial_pl01x_h
-
-enum pl01x_type {
-       TYPE_PL010,
-       TYPE_PL011,
-};
-
-/*
- *Information about a serial port
- *
- * @base: Register base address
- * @type: Port type
- * @clock: Input clock rate, used for calculating the baud rate divisor
- */
-struct pl01x_serial_platdata {
-       unsigned long base;
-       enum pl01x_type type;
-       unsigned int clock;
-};
-
-#endif