avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
18
u-boot/include/dm/platform_data/lpc32xx_hsuart.h
Normal file
18
u-boot/include/dm/platform_data/lpc32xx_hsuart.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2015 Vladimir Zapolskiy <vz@mleia.com>
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef _LPC32XX_HSUART_PLAT_H
|
||||
#define _LPC32XX_HSUART_PLAT_H
|
||||
|
||||
/**
|
||||
* struct lpc32xx_hsuart_platdata - NXP LPC32xx HSUART platform data
|
||||
*
|
||||
* @base: Base register address
|
||||
*/
|
||||
struct lpc32xx_hsuart_platdata {
|
||||
unsigned long base;
|
||||
};
|
||||
|
||||
#endif
|
||||
24
u-boot/include/dm/platform_data/serial_bcm283x_mu.h
Normal file
24
u-boot/include/dm/platform_data/serial_bcm283x_mu.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* (C) Copyright 2016 Stephen Warren <swarren@wwwdotorg.org>
|
||||
*
|
||||
* Derived from pl01x code:
|
||||
* Copyright (c) 2014 Google, Inc
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef __serial_bcm283x_mu_h
|
||||
#define __serial_bcm283x_mu_h
|
||||
|
||||
/*
|
||||
*Information about a serial port
|
||||
*
|
||||
* @base: Register base address
|
||||
*/
|
||||
struct bcm283x_mu_serial_platdata {
|
||||
unsigned long base;
|
||||
unsigned int clock;
|
||||
bool skip_init;
|
||||
};
|
||||
|
||||
#endif
|
||||
23
u-boot/include/dm/platform_data/serial_coldfire.h
Normal file
23
u-boot/include/dm/platform_data/serial_coldfire.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2015 Angelo Dureghello <angelo@sysam.it>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef __serial_coldfire_h
|
||||
#define __serial_coldfire_h
|
||||
|
||||
/*
|
||||
* struct coldfire_serial_platdata - 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_platdata {
|
||||
unsigned long base;
|
||||
int port;
|
||||
int baudrate;
|
||||
};
|
||||
|
||||
#endif /* __serial_coldfire_h */
|
||||
14
u-boot/include/dm/platform_data/serial_mxc.h
Normal file
14
u-boot/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
|
||||
30
u-boot/include/dm/platform_data/serial_pl01x.h
Normal file
30
u-boot/include/dm/platform_data/serial_pl01x.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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
|
||||
* @skip_init: Don't attempt to change port configuration (also means @clock
|
||||
* is ignored)
|
||||
*/
|
||||
struct pl01x_serial_platdata {
|
||||
unsigned long base;
|
||||
enum pl01x_type type;
|
||||
unsigned int clock;
|
||||
bool skip_init;
|
||||
};
|
||||
|
||||
#endif
|
||||
37
u-boot/include/dm/platform_data/serial_sh.h
Normal file
37
u-boot/include/dm/platform_data/serial_sh.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
|
||||
* Copyright (c) 2014 Renesas Electronics Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#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_platdata {
|
||||
unsigned long base;
|
||||
unsigned int clk;
|
||||
enum sh_clk_mode clk_mode;
|
||||
enum sh_serial_type type;
|
||||
};
|
||||
#endif /* __serial_sh_h */
|
||||
16
u-boot/include/dm/platform_data/serial_stm32.h
Normal file
16
u-boot/include/dm/platform_data/serial_stm32.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* (C) Copyright 2015
|
||||
* Kamil Lulko, <kamil.lulko@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef __SERIAL_STM32_H
|
||||
#define __SERIAL_STM32_H
|
||||
|
||||
/* Information about a serial port */
|
||||
struct stm32_serial_platdata {
|
||||
struct stm32_usart *base; /* address of registers in physical memory */
|
||||
};
|
||||
|
||||
#endif /* __SERIAL_STM32_H */
|
||||
17
u-boot/include/dm/platform_data/serial_stm32x7.h
Normal file
17
u-boot/include/dm/platform_data/serial_stm32x7.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* (C) Copyright 2016
|
||||
* Vikas Manocha, <vikas.manocha@st.com>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#ifndef __SERIAL_STM32x7_H
|
||||
#define __SERIAL_STM32x7_H
|
||||
|
||||
/* Information about a serial port */
|
||||
struct stm32x7_serial_platdata {
|
||||
struct stm32_usart *base; /* address of registers in physical memory */
|
||||
unsigned int clock;
|
||||
};
|
||||
|
||||
#endif /* __SERIAL_STM32x7_H */
|
||||
Reference in New Issue
Block a user