mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
b75d8dc564
The Linux coding style guide (Documentation/process/coding-style.rst) clearly says: It's a **mistake** to use typedef for structures and pointers. Besides, using typedef for structures is annoying when you try to make headers self-contained. Let's say you have the following function declaration in a header: void foo(bd_t *bd); This is not self-contained since bd_t is not defined. To tell the compiler what 'bd_t' is, you need to include <asm/u-boot.h> #include <asm/u-boot.h> void foo(bd_t *bd); Then, the include direcective pulls in more bloat needlessly. If you use 'struct bd_info' instead, it is enough to put a forward declaration as follows: struct bd_info; void foo(struct bd_info *bd); Right, typedef'ing bd_t is a mistake. I used coccinelle to generate this commit. The semantic patch that makes this change is as follows: <smpl> @@ typedef bd_t; @@ -bd_t +struct bd_info </smpl> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> |
||
---|---|---|
.. | ||
cmd_arc.c | ||
ddr.c | ||
Kconfig | ||
law.c | ||
MAINTAINERS | ||
Makefile | ||
README | ||
spl.c | ||
spl_minimal.c | ||
tlb.c | ||
ucp1020.c | ||
ucp1020.h |
The uCP1020 product family (ucp1020) is an Arcturus Networks Inc. System on Modules product featuring a Freescale P1020 CPU, optionally populated with 1, 2 or 3 Gig-Ethernet PHYs, DDR3, NOR Flash, eMMC NAND Flash and/or SPI Flash. Information on the generic product family can be found here: http://www.arcturusnetworks.com/products/ucp1020 The UCP1020 several configurable options ======================================== - the selection of populated phy(s): KSZ9031 (current default for eTSEC 1 and 3) - the selection of boot location: SPI Flash or NOR flash The UCP1020 includes 2 default configurations ============================================= NOR boot image: configs/UCP1020_defconfig SPI boot image: configs/UCP1020_SPIFLASH_defconfig The UCP1020 adds an additional command in cmd_arc.c to access and program SPI resident factory defaults for serial number, and 1, 2 or 3 Ethernet HW Addresses. Build example ============= make distclean make UCP1020_defconfig make Default Scripts =============== A default upgrade scripts is included in the default environment variable example: B$ run tftpflash Dual Environment ================ This build enables dual / failover environment environment. NOR Flash Partition declarations and scripts ============================================ Several scripts are available to allow TFTP of images and programming directly into defined NOR flash partitions. Examples: B$ run program0 B$ run program1 B$ run program2