diff options
Diffstat (limited to 'roms/u-boot/include/dm/platform_data')
-rw-r--r-- | roms/u-boot/include/dm/platform_data/fsl_espi.h | 16 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/lpc32xx_hsuart.h | 18 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/net_ethoc.h | 20 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/pfe_dm_eth.h | 20 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/pxa_mmc_gen.h | 22 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/serial_bcm283x_mu.h | 23 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/serial_coldfire.h | 22 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/serial_mxc.h | 15 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/serial_pl01x.h | 30 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/serial_pxa.h | 55 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/serial_sh.h | 36 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/spi_coldfire.h | 29 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/spi_davinci.h | 15 | ||||
-rw-r--r-- | roms/u-boot/include/dm/platform_data/spi_pl022.h | 21 |
14 files changed, 342 insertions, 0 deletions
diff --git a/roms/u-boot/include/dm/platform_data/fsl_espi.h b/roms/u-boot/include/dm/platform_data/fsl_espi.h new file mode 100644 index 000000000..de2307f7f --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/fsl_espi.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2019 NXP + */ + +#ifndef __fsl_espi_h +#define __fsl_espi_h + +struct fsl_espi_plat { + uint flags; + uint speed_hz; + uint num_chipselect; + fdt_addr_t regs_addr; +}; + +#endif /* __fsl_espi_h */ diff --git a/roms/u-boot/include/dm/platform_data/lpc32xx_hsuart.h b/roms/u-boot/include/dm/platform_data/lpc32xx_hsuart.h new file mode 100644 index 000000000..6f41e0e73 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/lpc32xx_hsuart.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2015 Vladimir Zapolskiy <vz@mleia.com> + */ + +#ifndef _LPC32XX_HSUART_PLAT_H +#define _LPC32XX_HSUART_PLAT_H + +/** + * struct lpc32xx_hsuart_plat - NXP LPC32xx HSUART platform data + * + * @base: Base register address + */ +struct lpc32xx_hsuart_plat { + unsigned long base; +}; + +#endif diff --git a/roms/u-boot/include/dm/platform_data/net_ethoc.h b/roms/u-boot/include/dm/platform_data/net_ethoc.h new file mode 100644 index 000000000..855e9999a --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/net_ethoc.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2016 Cadence Design Systems Inc. + */ + +#ifndef _ETHOC_H +#define _ETHOC_H + +#include <net.h> + +#ifdef CONFIG_DM_ETH + +struct ethoc_eth_pdata { + struct eth_pdata eth_pdata; + phys_addr_t packet_base; +}; + +#endif + +#endif /* _ETHOC_H */ diff --git a/roms/u-boot/include/dm/platform_data/pfe_dm_eth.h b/roms/u-boot/include/dm/platform_data/pfe_dm_eth.h new file mode 100644 index 000000000..100a981a3 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/pfe_dm_eth.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2015-2016 Freescale Semiconductor, Inc. + * Copyright 2017 NXP + */ + +#ifndef __PFE_DM_ETH_H__ +#define __PFE_DM_ETH_H__ +#include <net.h> + +struct pfe_ddr_address { + void *ddr_pfe_baseaddr; + unsigned long ddr_pfe_phys_baseaddr; +}; + +struct pfe_eth_pdata { + struct eth_pdata pfe_eth_pdata_mac; + struct pfe_ddr_address pfe_ddr_addr; +}; +#endif /* __PFE_DM_ETH_H__ */ diff --git a/roms/u-boot/include/dm/platform_data/pxa_mmc_gen.h b/roms/u-boot/include/dm/platform_data/pxa_mmc_gen.h new file mode 100644 index 000000000..d15c1551f --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/pxa_mmc_gen.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2019 Marcel Ziswiler <marcel.ziswiler@toradex.com> + */ + +#ifndef __PXA_MMC_GEN_H +#define __PXA_MMC_GEN_H + +#include <mmc.h> + +/* + * struct pxa_mmc_plat - information about a PXA MMC controller + * + * @base: MMC controller base register address + */ +struct pxa_mmc_plat { + struct mmc_config cfg; + struct mmc mmc; + struct pxa_mmc_regs *base; +}; + +#endif /* __PXA_MMC_GEN_H */ diff --git a/roms/u-boot/include/dm/platform_data/serial_bcm283x_mu.h b/roms/u-boot/include/dm/platform_data/serial_bcm283x_mu.h new file mode 100644 index 000000000..6c77272e8 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/serial_bcm283x_mu.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2016 Stephen Warren <swarren@wwwdotorg.org> + * + * Derived from pl01x code: + * Copyright (c) 2014 Google, Inc + */ + +#ifndef __serial_bcm283x_mu_h +#define __serial_bcm283x_mu_h + +/* + *Information about a serial port + * + * @base: Register base address + */ +struct bcm283x_mu_serial_plat { + unsigned long base; + unsigned int clock; + bool skip_init; +}; + +#endif diff --git a/roms/u-boot/include/dm/platform_data/serial_coldfire.h b/roms/u-boot/include/dm/platform_data/serial_coldfire.h new file mode 100644 index 000000000..5e265e908 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/serial_coldfire.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2015 Angelo Dureghello <angelo@sysam.it> + */ + +#ifndef __serial_coldfire_h +#define __serial_coldfire_h + +/* + * struct coldfire_serial_plat - information about a coldfire port + * + * @base: Uart port base register address + * @port: Uart port index, for cpu with pinmux for uart / gpio + * baudrtatre: Uart port baudrate + */ +struct coldfire_serial_plat { + unsigned long base; + int port; + int baudrate; +}; + +#endif /* __serial_coldfire_h */ diff --git a/roms/u-boot/include/dm/platform_data/serial_mxc.h b/roms/u-boot/include/dm/platform_data/serial_mxc.h new file mode 100644 index 000000000..cc59eeb1d --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/serial_mxc.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2014 Google, Inc + */ + +#ifndef __serial_mxc_h +#define __serial_mxc_h + +/* Information about a serial port */ +struct mxc_serial_plat { + struct mxc_uart *reg; /* address of registers in physical memory */ + bool use_dte; +}; + +#endif diff --git a/roms/u-boot/include/dm/platform_data/serial_pl01x.h b/roms/u-boot/include/dm/platform_data/serial_pl01x.h new file mode 100644 index 000000000..e3d4e308a --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/serial_pl01x.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2014 Google, Inc + */ + +#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 + * @skip_init: Don't attempt to change port configuration (also means @clock + * is ignored) + */ +struct pl01x_serial_plat { + unsigned long base; + enum pl01x_type type; + unsigned int clock; + bool skip_init; +}; + +#endif diff --git a/roms/u-boot/include/dm/platform_data/serial_pxa.h b/roms/u-boot/include/dm/platform_data/serial_pxa.h new file mode 100644 index 000000000..0d7dc4c46 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/serial_pxa.h @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Marcel Ziswiler <marcel.ziswiler@toradex.com> + */ + +#ifndef __SERIAL_PXA_H +#define __SERIAL_PXA_H + +/* + * The numbering scheme differs here for PXA25x, PXA27x and PXA3xx so we can + * easily handle enabling of clock. + */ +#ifdef CONFIG_CPU_MONAHANS +#define UART_CLK_BASE CKENA_21_BTUART +#define UART_CLK_REG CKENA +#define BTUART_INDEX 0 +#define FFUART_INDEX 1 +#define STUART_INDEX 2 +#elif CONFIG_CPU_PXA25X +#define UART_CLK_BASE BIT(4) /* HWUART */ +#define UART_CLK_REG CKEN +#define HWUART_INDEX 0 +#define STUART_INDEX 1 +#define FFUART_INDEX 2 +#define BTUART_INDEX 3 +#else /* PXA27x */ +#define UART_CLK_BASE CKEN5_STUART +#define UART_CLK_REG CKEN +#define STUART_INDEX 0 +#define FFUART_INDEX 1 +#define BTUART_INDEX 2 +#endif + +/* + * Only PXA250 has HWUART, to avoid poluting the code with more macros, + * artificially introduce this. + */ +#ifndef CONFIG_CPU_PXA25X +#define HWUART_INDEX 0xff +#endif + +/* + * struct pxa_serial_plat - information about a PXA port + * + * @base: Uart port base register address + * @port: Uart port index, for cpu with pinmux for uart / gpio + * baudrtatre: Uart port baudrate + */ +struct pxa_serial_plat { + struct pxa_uart_regs *base; + int port; + int baudrate; +}; + +#endif /* __SERIAL_PXA_H */ diff --git a/roms/u-boot/include/dm/platform_data/serial_sh.h b/roms/u-boot/include/dm/platform_data/serial_sh.h new file mode 100644 index 000000000..69cd012fc --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/serial_sh.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2014 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> + * Copyright (c) 2014 Renesas Electronics Corporation + */ + +#ifndef __serial_sh_h +#define __serial_sh_h + +enum sh_clk_mode { + INT_CLK, + EXT_CLK, +}; + +enum sh_serial_type { + PORT_SCI, + PORT_SCIF, + PORT_SCIFA, + PORT_SCIFB, +}; + +/* + * Information about SCIF port + * + * @base: Register base address + * @clk: Input clock rate, used for calculating the baud rate divisor + * @clk_mode: Clock mode, set internal (INT) or external (EXT) + * @type: Type of SCIF + */ +struct sh_serial_plat { + unsigned long base; + unsigned int clk; + enum sh_clk_mode clk_mode; + enum sh_serial_type type; +}; +#endif /* __serial_sh_h */ diff --git a/roms/u-boot/include/dm/platform_data/spi_coldfire.h b/roms/u-boot/include/dm/platform_data/spi_coldfire.h new file mode 100644 index 000000000..da514bad0 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/spi_coldfire.h @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2018 Angelo Dureghello <angelo@sysam.it> + */ + +#ifndef __spi_coldfire_h +#define __spi_coldfire_h + +#define MAX_CTAR_REGS 8 +#define MAX_CTAR_FIELDS 8 + +/* + * struct coldfire_spi_plat - information about a coldfire spi module + * + * @regs_addr: base address for module registers + * @speed_hz: default SCK frequency + * @mode: default SPI mode + * @num_cs: number of DSPI chipselect signals + */ +struct coldfire_spi_plat { + fdt_addr_t regs_addr; + uint speed_hz; + uint mode; + uint num_cs; + uint ctar[MAX_CTAR_REGS][MAX_CTAR_FIELDS]; +}; + +#endif /* __spi_coldfire_h */ + diff --git a/roms/u-boot/include/dm/platform_data/spi_davinci.h b/roms/u-boot/include/dm/platform_data/spi_davinci.h new file mode 100644 index 000000000..42a467e40 --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/spi_davinci.h @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __spi_davinci_h +#define __spi_davinci_h + +struct davinci_spi_plat { + struct davinci_spi_regs *regs; + u8 num_cs; /* total no. of CS available */ +}; + +#endif /* __spi_davinci_h */ diff --git a/roms/u-boot/include/dm/platform_data/spi_pl022.h b/roms/u-boot/include/dm/platform_data/spi_pl022.h new file mode 100644 index 000000000..7f74b3cbc --- /dev/null +++ b/roms/u-boot/include/dm/platform_data/spi_pl022.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2018 + * Quentin Schulz, Bootlin, quentin.schulz@bootlin.com + * + * Structure for use with U_BOOT_DRVINFO for pl022 SPI devices or to use + * in of_to_plat. + */ + +#ifndef __spi_pl022_h +#define __spi_pl022_h + +#include <fdtdec.h> + +struct pl022_spi_pdata { + fdt_addr_t addr; + fdt_size_t size; + unsigned int freq; +}; + +#endif /* __spi_pl022_h */ |