xref: /openbmc/u-boot/doc/README.at91 (revision 0c4b382f9041f9f2f00246c8a0ece90dae5451be)
189a7a87fSNicolas FerreAtmel AT91 Evaluation kits
289a7a87fSNicolas Ferre
35ba444f0SBo ShenIndex
45ba444f0SBo Shen  - I. Board mapping & boot media
55ba444f0SBo Shen  - II. NAND partition table
65ba444f0SBo Shen  - III. watchdog support
75ba444f0SBo Shen
8843a2654SJean-Christophe PLAGNIOL-VILLARDI. Board mapping & boot media
989a7a87fSNicolas Ferre------------------------------------------------------------------------------
10df486b1fSNicolas FerreAT91SAM9260EK, AT91SAM9G20EK & AT91SAM9XEEK
1189a7a87fSNicolas Ferre------------------------------------------------------------------------------
1289a7a87fSNicolas Ferre
1389a7a87fSNicolas FerreMemory map
1489a7a87fSNicolas Ferre	0x20000000 - 23FFFFFF	SDRAM (64 MB)
1589a7a87fSNicolas Ferre	0xC0000000 - Cxxxxxxx	Atmel Dataflash card (J13)
16c9b23f80SBo Shen	0xD0000000 - D07FFFFF	Soldered Atmel Dataflash (AT45DB642)
1789a7a87fSNicolas Ferre
1889a7a87fSNicolas FerreEnvironment variables
1989a7a87fSNicolas Ferre
2089a7a87fSNicolas Ferre	U-Boot environment variables can be stored at different places:
2189a7a87fSNicolas Ferre		- Dataflash on SPI chip select 1 (default)
2289a7a87fSNicolas Ferre		- Dataflash on SPI chip select 0 (dataflash card)
2389a7a87fSNicolas Ferre		- Nand flash.
2489a7a87fSNicolas Ferre
2589a7a87fSNicolas Ferre	You can choose your storage location at config step (here for at91sam9260ek) :
2689a7a87fSNicolas Ferre		make at91sam9260ek_nandflash_config	- use nand flash
2789a7a87fSNicolas Ferre		make at91sam9260ek_dataflash_cs0_config	- use data flash (spi cs0)
2889a7a87fSNicolas Ferre		make at91sam9260ek_dataflash_cs1_config	- use data flash (spi cs1)
2989a7a87fSNicolas Ferre
3089a7a87fSNicolas Ferre
3189a7a87fSNicolas Ferre------------------------------------------------------------------------------
325ccc2d99SSedji GaouaouAT91SAM9261EK, AT91SAM9G10EK
3389a7a87fSNicolas Ferre------------------------------------------------------------------------------
3489a7a87fSNicolas Ferre
3589a7a87fSNicolas FerreMemory map
3689a7a87fSNicolas Ferre	0x20000000 - 23FFFFFF	SDRAM (64 MB)
37c9b23f80SBo Shen	0xC0000000 - C07FFFFF	Soldered Atmel Dataflash (AT45DB642)
3889a7a87fSNicolas Ferre	0xD0000000 - Dxxxxxxx	Atmel Dataflash card (J22)
3989a7a87fSNicolas Ferre
4089a7a87fSNicolas FerreEnvironment variables
4189a7a87fSNicolas Ferre
4289a7a87fSNicolas Ferre	U-Boot environment variables can be stored at different places:
4389a7a87fSNicolas Ferre		- Dataflash on SPI chip select 0 (default)
4489a7a87fSNicolas Ferre		- Dataflash on SPI chip select 3 (dataflash card)
4589a7a87fSNicolas Ferre		- Nand flash.
4689a7a87fSNicolas Ferre
4789a7a87fSNicolas Ferre	You can choose your storage location at config step (here for at91sam9260ek) :
4889a7a87fSNicolas Ferre		make at91sam9261ek_nandflash_config	- use nand flash
4989a7a87fSNicolas Ferre		make at91sam9261ek_dataflash_cs0_config	- use data flash (spi cs0)
5089a7a87fSNicolas Ferre		make at91sam9261ek_dataflash_cs3_config	- use data flash (spi cs3)
5189a7a87fSNicolas Ferre
5289a7a87fSNicolas Ferre
5389a7a87fSNicolas Ferre------------------------------------------------------------------------------
5489a7a87fSNicolas FerreAT91SAM9263EK
5589a7a87fSNicolas Ferre------------------------------------------------------------------------------
5689a7a87fSNicolas Ferre
5789a7a87fSNicolas FerreMemory map
5889a7a87fSNicolas Ferre	0x20000000 - 23FFFFFF	SDRAM (64 MB)
5989a7a87fSNicolas Ferre	0xC0000000 - Cxxxxxxx	Atmel Dataflash card (J9)
6089a7a87fSNicolas Ferre
6189a7a87fSNicolas FerreEnvironment variables
6289a7a87fSNicolas Ferre
6389a7a87fSNicolas Ferre	U-Boot environment variables can be stored at different places:
6489a7a87fSNicolas Ferre		- Dataflash on SPI chip select 0 (dataflash card)
6589a7a87fSNicolas Ferre		- Nand flash.
66c46bf09eSThomas Weber		- Nor flash (not populate by default)
6789a7a87fSNicolas Ferre
6889a7a87fSNicolas Ferre	You can choose your storage location at config step (here for at91sam9260ek) :
6989a7a87fSNicolas Ferre		make at91sam9263ek_nandflash_config	- use nand flash
7089a7a87fSNicolas Ferre		make at91sam9263ek_dataflash_cs0_config	- use data flash (spi cs0)
71c46bf09eSThomas Weber		make at91sam9263ek_norflash_config	- use nor flash
721b3b7c64SJean-Christophe PLAGNIOL-VILLARD
731b3b7c64SJean-Christophe PLAGNIOL-VILLARD	You can choose to boot directly from U-Boot at config step
74c46bf09eSThomas Weber		make at91sam9263ek_norflash_boot_config	- boot from nor flash
7589a7a87fSNicolas Ferre
7689a7a87fSNicolas Ferre
7789a7a87fSNicolas Ferre------------------------------------------------------------------------------
7822ee6473SSedji GaouaouAT91SAM9M10G45EK
7922ee6473SSedji Gaouaou------------------------------------------------------------------------------
8022ee6473SSedji Gaouaou
8122ee6473SSedji GaouaouMemory map
82c9b23f80SBo Shen	0x70000000 - 77FFFFFF	SDRAM (128 MB)
8322ee6473SSedji Gaouaou
8422ee6473SSedji GaouaouEnvironment variables
8522ee6473SSedji Gaouaou
8622ee6473SSedji Gaouaou	U-Boot environment variables can be stored at different places:
8722ee6473SSedji Gaouaou		- Nand flash.
8822ee6473SSedji Gaouaou
8922ee6473SSedji Gaouaou	You can choose your storage location at config step (here for at91sam9m10g45ek) :
9022ee6473SSedji Gaouaou		make at91sam9m10g45ek_nandflash_config		- use nand flash
9122ee6473SSedji Gaouaou
9222ee6473SSedji Gaouaou
9322ee6473SSedji Gaouaou------------------------------------------------------------------------------
9489a7a87fSNicolas FerreAT91SAM9RLEK
9589a7a87fSNicolas Ferre------------------------------------------------------------------------------
9689a7a87fSNicolas Ferre
9789a7a87fSNicolas FerreMemory map
9889a7a87fSNicolas Ferre	0x20000000 - 23FFFFFF	SDRAM (64 MB)
99c9b23f80SBo Shen	0xC0000000 - C07FFFFF   Soldered Atmel Dataflash (AT45DB642)
10089a7a87fSNicolas Ferre
10189a7a87fSNicolas FerreEnvironment variables
10289a7a87fSNicolas Ferre
10389a7a87fSNicolas Ferre	U-Boot environment variables can be stored at different places:
10489a7a87fSNicolas Ferre		- Dataflash on SPI chip select 0
10589a7a87fSNicolas Ferre		- Nand flash.
10689a7a87fSNicolas Ferre
107c9b23f80SBo Shen	You can choose your storage location at config step (here for at91sam9rlek) :
108c9b23f80SBo Shen		make at91sam9rlek_nandflash_config	- use nand flash
109843a2654SJean-Christophe PLAGNIOL-VILLARD
110e9350d65SBo Shen
111e9350d65SBo Shen------------------------------------------------------------------------------
112e9350d65SBo ShenAT91SAM9N12EK, AT91SAM9X5EK
113e9350d65SBo Shen------------------------------------------------------------------------------
114e9350d65SBo Shen
115e9350d65SBo ShenMemory map
116e9350d65SBo Shen	0x20000000 - 27FFFFFF	SDRAM (128 MB)
117e9350d65SBo Shen
118e9350d65SBo ShenEnvironment variables
119e9350d65SBo Shen
120e9350d65SBo Shen	U-Boot environment variables can be stored at different places:
121e9350d65SBo Shen		- Nand flash.
122e9350d65SBo Shen		- SD/MMC card
123e9350d65SBo Shen		- Serialflash/Dataflash on SPI chip select 0
124e9350d65SBo Shen
125e9350d65SBo Shen	You can choose your storage location at config step (here for at91sam9x5ek) :
126e9350d65SBo Shen		make at91sam9x5ek_dataflash_config	- use data flash
127e9350d65SBo Shen		make at91sam9x5ek_mmc_config		- use sd/mmc card
128e9350d65SBo Shen		make at91sam9x5ek_nandflash_config	- use nand flash
129e9350d65SBo Shen		make at91sam9x5ek_spiflash_config	- use serial flash
130e9350d65SBo Shen
131e9350d65SBo Shen
132e9350d65SBo Shen------------------------------------------------------------------------------
133e9350d65SBo ShenSAMA5D3XEK
134e9350d65SBo Shen------------------------------------------------------------------------------
135e9350d65SBo Shen
136e9350d65SBo ShenMemory map
137e9350d65SBo Shen	0x20000000 - 3FFFFFFF	SDRAM (512 MB)
138e9350d65SBo Shen
139e9350d65SBo ShenEnvironment variables
140e9350d65SBo Shen
141e9350d65SBo Shen	U-Boot environment variables can be stored at different places:
142e9350d65SBo Shen		- Nand flash.
143e9350d65SBo Shen		- SD/MMC card
144e9350d65SBo Shen		- Serialflash on SPI chip select 0
145e9350d65SBo Shen
146e9350d65SBo Shen	You can choose your storage location at config step (here for sama5d3xek) :
147e9350d65SBo Shen		make sama5d3xek_mmc_config		- use SD/MMC card
148e9350d65SBo Shen		make sama5d3xek_nandflash_config	- use nand flash
149e9350d65SBo Shen		make sama5d3xek_serialflash_config	- use serial flash
150e9350d65SBo Shen
151e9350d65SBo Shen
1525ba444f0SBo ShenII. NAND partition table
1535ba444f0SBo Shen
1545ba444f0SBo Shen	All the board support boot from NAND flash will use the following NAND
1555ba444f0SBo Shen	partition table
1565ba444f0SBo Shen
1575ba444f0SBo Shen		0x00000000 - 0x0003FFFF	bootstrap	(256 KiB)
1585ba444f0SBo Shen		0x00040000 - 0x000BFFFF u-boot		(512 KiB)
1595ba444f0SBo Shen		0x000C0000 - 0x000FFFFF env		(256 KiB)
1605ba444f0SBo Shen		0x00100000 - 0x0013FFFF env_redundant	(256 KiB)
1615ba444f0SBo Shen		0x00140000 - 0x0017FFFF spare		(256 KiB)
1625ba444f0SBo Shen		0x00180000 - 0x001FFFFF dtb		(512 KiB)
1635ba444f0SBo Shen		0x00200000 - 0x007FFFFF kernel		(6 MiB)
1645ba444f0SBo Shen		0x00800000 - 0xxxxxxxxx rootfs		(All left)
1655ba444f0SBo Shen
1665ba444f0SBo ShenIII. Watchdog support
167843a2654SJean-Christophe PLAGNIOL-VILLARD
168843a2654SJean-Christophe PLAGNIOL-VILLARD	For security reasons, the at91 watchdog is running at boot time and,
169843a2654SJean-Christophe PLAGNIOL-VILLARD	if deactivated, cannot be used anymore.
170843a2654SJean-Christophe PLAGNIOL-VILLARD	If you want to use the watchdog, you will need to keep it running in
171843a2654SJean-Christophe PLAGNIOL-VILLARD	your code (make sure not to disable it in AT91Bootstrap for instance).
172843a2654SJean-Christophe PLAGNIOL-VILLARD
173843a2654SJean-Christophe PLAGNIOL-VILLARD	In the U-Boot configuration, the AT91 watchdog support is enabled using
174*1473f6acSPrasanthi Chellakumar	the CONFIG_WDT and CONFIG_WDT_AT91 options.
175