u-boot-brain/board/Arcturus/ucp1020
Masahiro Yamada b75d8dc564 treewide: convert bd_t to struct bd_info by coccinelle
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>
2020-07-17 09:30:13 -04:00
..
Kconfig Move default y configs out of arch/board Kconfig 2015-06-25 22:17:55 -04:00
MAINTAINERS powerpc/mpc85xx: Add board support for ucp1020 2015-05-04 09:26:26 -07:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
README powerpc/mpc85xx: Add board support for ucp1020 2015-05-04 09:26:26 -07:00
cmd_arc.c common: Drop linux/stringify.h from common header 2020-05-18 21:19:23 -04:00
ddr.c Move strtomhz() to vsprintf.h 2019-12-02 18:23:09 -05:00
law.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
spl_minimal.c common: Move relocate_code() to init.h 2020-01-17 13:26:49 -05:00
tlb.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ucp1020.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
ucp1020.h board: Arcturus: DM: Disable drivers without DM support. 2019-06-21 10:07:11 -04:00

README

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