upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
525 B
25 lines
525 B
#include <common.h>
|
|
#include <asm/io.h>
|
|
|
|
#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
|
|
|
|
#if defined(CONFIG_SYS_POST_WORD_ADDR)
|
|
# define _POST_ADDR (CONFIG_SYS_POST_WORD_ADDR)
|
|
#else
|
|
#error echo "No POST word address defined"
|
|
#endif
|
|
|
|
void post_word_store(ulong a)
|
|
{
|
|
volatile void *save_addr = (volatile void *)(_POST_ADDR);
|
|
|
|
out_be32(save_addr, a);
|
|
}
|
|
|
|
ulong post_word_load(void)
|
|
{
|
|
volatile void *save_addr = (volatile void *)(_POST_ADDR);
|
|
|
|
return in_be32(save_addr);
|
|
}
|
|
#endif /* CONFIG_POST || CONFIG_LOGBUFFER */
|
|
|