dm: move platform data headers to include/dm/platform_data
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>
This commit is contained in:
committed by
Simon Glass
parent
e98a03ca68
commit
86256b796e
14
include/dm/platform_data/serial_mxc.h
Normal file
14
include/dm/platform_data/serial_mxc.h
Normal file
@@ -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
|
||||
27
include/dm/platform_data/serial_pl01x.h
Normal file
27
include/dm/platform_data/serial_pl01x.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user