summaryrefslogtreecommitdiffstats
path: root/platforms/at91bootstrap.in
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-03-03 21:23:15 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-03-03 21:23:15 +0000
commiteb93851737238798660172bbcbd88e8911a349cf (patch)
treeb51aeb3bfc3d5d0f170d7117fbce5d635127c252 /platforms/at91bootstrap.in
parent39a5f89553d3e9a8de9557ae1955a163ba9df7d9 (diff)
downloadptxdist-eb93851737238798660172bbcbd88e8911a349cf.tar.gz
ptxdist-eb93851737238798660172bbcbd88e8911a349cf.tar.xz
Add support for AT91Bootstrap to ptxdist.
This bootstrap package is required on at91sam* boards where dataflash/nandflash is used to boot from. In these cases the internal bootROM of the AT91 core is used to boot the board with. Signed-off-by: Remy Bohmer <linux@bohmer.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9953 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'platforms/at91bootstrap.in')
-rw-r--r--platforms/at91bootstrap.in64
1 files changed, 64 insertions, 0 deletions
diff --git a/platforms/at91bootstrap.in b/platforms/at91bootstrap.in
new file mode 100644
index 000000000..d5bc117e0
--- /dev/null
+++ b/platforms/at91bootstrap.in
@@ -0,0 +1,64 @@
+menuconfig AT91BOOTSTRAP
+ bool
+ depends on ARCH_ARM_AT91SAM926X
+ prompt "Build dataflash bootstrap for AT91SAM926*"
+ help
+ The AT91Bootstrap application is a first level bootloader
+ for Atmel AT91SAM9 ARM Thumb-based microcontrollers.
+ It is used for booting these microcontrollers from SPI dataflash
+ or NAND-flash.
+
+ For example, using this bootstrap, it is possible to
+ obtain a basic bootloader that is located in DataFlash and is
+ copied to internal SRAM by SAM-BA Boot (internal bootROM). The
+ bootloader performs the processor initialization (PLLs, PIOs,
+ SDRAMC, SPI), loads UBoot from DataFlash sectors to SDRAM and
+ then jumps to it.
+
+ It is required for these microcontrollers, because the bootROM of some
+ of these cores can only handle a miximum of 4kB of the 1st stage
+ bootloader (e.g. SRAM limits). U-boot is usually much larger
+ than this.
+
+ U-boot is normally build with the options CONFIG_SKIP_LOWLEVEL_INIT
+ and CONFIG_SKIP_RELOCATE_UBOOT
+
+ AT91Bootstrap integrates several sets of algorithms:
+ - Device initialization such as clock speed configuration, PIO settings, etc.
+ - Peripheral drivers such as PIO, PMC, SDRAMC, etc.
+ - Physical media algorithms such as DataFlash, NANDFlash, Parallel Flash, etc.
+
+
+if AT91BOOTSTRAP
+
+config AT91BOOTSTRAP_VERSION
+ string
+ default 1.11
+ prompt "AT91 Bootstrap version"
+ help
+ Enter the AT91 Bootstrap version you want to build. Usally something like "1.11"
+
+config AT91BOOTSTRAP_CONFIG
+ string
+ prompt "AT91 Bootstrap config target"
+ help
+ The AT91 Bootstrap make config target. Usually something like
+ "at91sam9261ek". See AT91 Bootstrap's 'board' directory for possible
+ configuration targets.
+
+choice
+ prompt "Boot medium"
+ default AT91BOOTSTRAP_BOOT_DATAFLASH
+
+ config AT91BOOTSTRAP_BOOT_DATAFLASH
+ bool
+ prompt "Boot from SPI dataflash"
+
+ config AT91BOOTSTRAP_BOOT_NAND
+ bool
+ prompt "Boot from NAND-flash"
+
+
+endchoice
+
+endif