u-boot/board/amcc/bamboo
Simon Glass 088454cde2 board_f: Drop return value from initdram()
At present we cannot use this function as an init sequence call without a
wrapper, since it returns the RAM size. Adjust it to set the RAM size in
global_data instead, and return 0 on success.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2017-04-05 13:59:20 -04:00
..
bamboo.c board_f: Drop return value from initdram() 2017-04-05 13:59:20 -04:00
bamboo.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
config.mk Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
flash.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
init.S ppc4xx: Remove 4xx NAND booting support 2014-03-07 10:59:06 -05:00
Kconfig common: Add DISPLAY_BOARDINFO 2016-10-12 08:20:17 -04:00
MAINTAINERS Add board MAINTAINERS files 2014-07-30 08:48:06 -04:00
Makefile board: powerpc: convert makefiles to Kbuild style 2013-11-01 11:42:12 -04:00
README doc: cleanup - move board READMEs into respective board directories 2012-07-29 15:42:02 +02:00

The 2 important dipswitches are configured as shown below:

SW1 (for 33MHz SysClk)
----------------------
S1   S2   S3   S4   S5   S6   S7   S8
OFF  OFF  OFF  OFF  OFF  OFF  OFF  ON

SW7 (for Op-Code Flash and Boot Option H)
-----------------------------------------
S1   S2   S3   S4   S5   S6   S7   S8
OFF  OFF  OFF  ON   OFF  OFF  OFF  OFF

The EEPROM at location 0x52 is loaded with these 16 bytes:
C47042A6 05D7A190 40082350 0d050000

SDR0_SDSTP0[ENG]:	1		: PLL's VCO is the source for PLL forward divisors
SDR0_SDSTP0[SRC]:	1		: Feedback originates from PLLOUTB
SDR0_SDSTP0[SEL]:	0		: Feedback selection is PLL output
SDR0_SDSTP0[TUNE]:	1000111000	: 10 <= M <= 22, 600MHz < VCO <= 900MHz
SDR0_SDSTP0[FBDV]:	4		: PLL feedback divisor
SDR0_SDSTP0[FBDVA]:	2		: PLL forward divisor A
SDR0_SDSTP0[FBDVB]:	5		: PLL forward divisor B
SDR0_SDSTP0[PRBDV0]:	1		: PLL primary divisor B
SDR0_SDSTP0[OPBDV0]:	2		: OPB clock divisor
SDR0_SDSTP0[LFBDV]:	1		: PLL local feedback divisor
SDR0_SDSTP0[PERDV0]:	3		: Peripheral clock divisor 0
SDR0_SDSTP0[MALDV0]:	2		: MAL clock divisor 0
SDR0_SDSTP0[PCIDV0]:	2		: Sync PCI clock divisor 0
SDR0_SDSTP0[PLLTIMER]:	7		: PLL locking timer
SDR0_SDSTP0[RW]:	1		: EBC ROM width: 16-bit
SDR0_SDSTP0[RL]:	0		: EBC ROM location: EBC
SDR0_SDSTP0[PAE]:	0		: PCI internal arbiter: disabled
SDR0_SDSTP0[PHCE]:	0		: PCI host configuration: disabled
SDR0_SDSTP0[ZM]:	3		: ZMII mode: RMII mode 100
SDR0_SDSTP0[CTE]:	0		: CPU trace: disabled
SDR0_SDSTP0[Nto1]:	0		: CPU/PLB ratio N/P: not N to 1
SDR0_SDSTP0[PAME]:	1		: PCI asynchronous mode: enabled
SDR0_SDSTP0[MEM]:	1		: Multiplex: EMAC
SDR0_SDSTP0[NE]:	0		: NDFC: disabled
SDR0_SDSTP0[NBW]:	0		: NDFC boot width: 8-bit
SDR0_SDSTP0[NBW]:	0		: NDFC boot page selection
SDR0_SDSTP0[NBAC]:	0		: NDFC boot address selection cycle: 3 Addr. Cycles, 1 Col. + 2 Row (512 page size)
SDR0_SDSTP0[NARE]:	0		: NDFC auto read : disabled
SDR0_SDSTP0[NRB]:	0		: NDFC Ready/Busy : Ready
SDR0_SDSTP0[NDRSC]:	33333		: NDFC device reset counter
SDR0_SDSTP0[NCG0]:	0		: NDFC/EBC chip select gating CS0 : EBC
SDR0_SDSTP0[NCG1]:	0		: NDFC/EBC chip select gating CS1 : EBC
SDR0_SDSTP0[NCG2]:	0		: NDFC/EBC chip select gating CS2 : EBC
SDR0_SDSTP0[NCG3]:	0		: NDFC/EBC chip select gating CS3 : EBC
SDR0_SDSTP0[NCRDC]:	3333		: NDFC device read count

PPC440EP Clocking Configuration

SysClk is 33.0MHz, M is 20, VCO is 660.0MHz, CPU is 330.0MHz, PLB is 132.0MHz
OPB is 66.0MHz, EBC is 44.0MHz, MAL is 66.0MHz, Sync PCI is 66.0MHz

The above information is reported by Eugene O'Brien
<Eugene.O'Brien@advantechamt.com>. Thanks a lot.

2007-08-06, Stefan Roese <sr@denx.de>
---------------------------------------------------------------------

The configuration for the AMCC 440EP eval board "Bamboo" was changed
to only use 384 kbytes of FLASH for the U-Boot image. This way the
redundant environment can be saved in the remaining 2 sectors of the
same flash chip.

Caution: With an upgrade from an earlier U-Boot version the current
environment will be erased since the environment is now saved in
different sectors. By using the following command the environment can
be saved after upgrading the U-Boot image and *before* resetting the
board:

setenv recover_env 'prot off FFF80000 FFF9FFFF;era FFF80000 FFF9FFFF;' \
	'cp.b FFF60000 FFF80000 20000'

2006-07-27, Stefan Roese <sr@denx.de>