Commit 4ef37919 authored by Yuri Tikhonov's avatar Yuri Tikhonov
Browse files

RT72064. cortexm3: add some more comments, fix-up alignment


Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent a5a8b975
......@@ -63,7 +63,7 @@ int misc_init_r(void)
}
/*
* Setup dynamic RAM.
* Setup external RAM.
*/
int dram_init(void)
{
......
......@@ -23,6 +23,14 @@
#include <string.h>
#include "envm.h"
/*
* Base address and the length of buffer in internal RAM, which
* we use as a source for buffer to be written to eNVM.
* Size of this buffer is set in the configuration file, address
* (position within internal RAM) is calculated automatically, at
* linking stage. Thus, the appropriate symbols are exported from
* the linker script *.lds.
*/
extern char _mem_ram_buf_base, _mem_ram_buf_size;
#define SOC_RAM_BUFFER_BASE (ulong)(&_mem_ram_buf_base)
......
......@@ -55,7 +55,7 @@ int arch_cpu_init(void)
#elif defined(CONFIG_SYS_STM32F2)
gd->bd->bi_arch_number = MACH_TYPE_STM32F2;
#else
# error "Unknown Cortex-M3 SOC."
# error "Unsupported Cortex-M3 SOC."
#endif
/*
......
......@@ -20,6 +20,11 @@
#include <string.h>
#include "wdt.h"
/*
* FIXME: move to the appropriate header
*/
unsigned char cortex_m3_irq_vec_get(void);
/*
* Declare symbols used in the start-up code
*/
......@@ -39,8 +44,6 @@ extern char _bss_end;
void _start(void);
void default_isr(void);
unsigned char cortex_m3_irq_vec_get(void);
extern void start_armboot(void);
/*
......
......@@ -92,13 +92,14 @@
/*
* Memory layout configuration
*/
#define CONFIG_MEM_NVM_BASE (0x00000000)
#define CONFIG_MEM_NVM_BASE 0x00000000
#define CONFIG_MEM_NVM_LEN (256 * 1024)
#define CONFIG_MEM_RAM_BASE (0x20000000)
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
#define CONFIG_MEM_RAM_BASE 0x20000000
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
/*
* malloc() pool size
......
......@@ -88,13 +88,14 @@
/*
* Memory layout configuration
*/
#define CONFIG_MEM_NVM_BASE (0x00000000)
#define CONFIG_MEM_NVM_BASE 0x00000000
#define CONFIG_MEM_NVM_LEN (256 * 1024)
#define CONFIG_MEM_RAM_BASE (0x20000000)
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
#define CONFIG_MEM_RAM_BASE 0x20000000
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
/*
* malloc() pool size
......
......@@ -89,13 +89,14 @@
/*
* Memory layout configuration
*/
#define CONFIG_MEM_NVM_BASE (0x00000000)
#define CONFIG_MEM_NVM_BASE 0x00000000
#define CONFIG_MEM_NVM_LEN (256 * 1024)
#define CONFIG_MEM_RAM_BASE (0x20000000)
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
#define CONFIG_MEM_RAM_BASE 0x20000000
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
/*
* malloc() pool size
......
......@@ -82,13 +82,14 @@
/*
* Memory layout configuration
*/
#define CONFIG_MEM_NVM_BASE (0x00000000)
#define CONFIG_MEM_NVM_BASE 0x00000000
#define CONFIG_MEM_NVM_LEN (1024 * 1024)
#define CONFIG_MEM_RAM_BASE (0x20000000)
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
#define CONFIG_MEM_RAM_BASE 0x20000000
#define CONFIG_MEM_RAM_LEN (16 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (32 * 1024)
#define CONFIG_MEM_MALLOC_LEN (12 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
/*
* malloc() pool size
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment