summaryrefslogtreecommitdiff
path: root/cpu/blackfin/start.S
AgeCommit message (Collapse)Author
2009-04-02Blackfin: fix crash when booting from external memoryMike Frysinger
When testing a u-boot binary that hasn't been booted from the bootrom, we have to make sure the bootstruct structure has sane storage space. If we don't, the initcode will crash when it tries to dereference an invalid pointer. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-03-23Blackfin: put memory into self-refresh before/after programming clocksMike Frysinger
When initializing the core clocks, stick external memory into self-refresh. This gains us a few cool things: - support suspend-to-RAM with Linux - reprogram clocks automatically when doing "go" on u-boot.bin in RAM - make sure settings are stable before flashing new version - finally fully unify initialize startup code path between LDR/non-LDR Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: clarify relocation comment during initMike Frysinger
People often ask questions about the init process and when things go from flash to relocated base, so clarify the comments a bit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: just set SP register directly during initMike Frysinger
No need to set the SP register indirectly to the configured value when it can be set directly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-28Blackfin: use common memcpy routine during initMike Frysinger
Rather than using a local custom memcpy function, just call the existing optimized Blackfin version. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-23Blackfin: small cpu init optimization while setting interrupt maskMike Frysinger
Use the sti instruction to set the initial interrupt mask rather than banging on the core IMASK MMR to save both space and time. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-23Blackfin: set initial stack correctly according to Blackfin ABIMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-23Blackfin: enable support for nested interruptsMike Frysinger
During cpu init, make sure we initialize the CEC properly so that interrupts can fire and be handled while U-Boot is running. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-18rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-03-30Blackfin: unify cpu and boot modesMike Frysinger
All of the duplicated code for Blackfin processors and boot modes have been unified. After all, the core is the same for all processors, just the peripheral set differs (which gets handled in the drivers). Signed-off-by: Mike Frysinger <vapier@gentoo.org>