| 9208d7eb | 03-Nov-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: fix cached mode in clearing the BSS
As the generic board runs in cached mode, it should not use "stwio" which bypass the cache.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
nios2: fix cached mode in clearing the BSS
As the generic board runs in cached mode, it should not use "stwio" which bypass the cache.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Chin Liang See <clsee@altera.com>
show more ...
|
| 2de4823d | 27-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: change virt_to_phys to use physaddr_mask in global data
As virt_to_phys() is used a lot in DMA transfer, change it to use physaddr_mask in global data. This will save an "if" statement and ge
nios2: change virt_to_phys to use physaddr_mask in global data
As virt_to_phys() is used a lot in DMA transfer, change it to use physaddr_mask in global data. This will save an "if" statement and get a little faster.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
show more ...
|
| 21ff7344 | 22-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: convert cache flush to use dm cpu data
Convert cache flush to use dm cpu data.
The original cache flush functions are written in assembly and use CONFIG_SYS_{I,D}CACHE_SIZE... macros. It is
nios2: convert cache flush to use dm cpu data
Convert cache flush to use dm cpu data.
The original cache flush functions are written in assembly and use CONFIG_SYS_{I,D}CACHE_SIZE... macros. It is difficult to convert to use cache configuration in dm cpu data which is extracted from device tree.
The cacheflush.c of Linux nios2 arch uses cpuinfo structure, which is very close to our dm cpu data. So we copy and modify it to arch/nios2/lib/cache.c to replace the old cache.S.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
show more ...
|
| 55e2b4d4 | 09-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: set default cache configuration in start.S
Set default icache and dcache configuration for start.S.
We want to remove the CONFIG_SYS_{I,D}CACHE_SIZE... configuration macros. As we are just b
nios2: set default cache configuration in start.S
Set default icache and dcache configuration for start.S.
We want to remove the CONFIG_SYS_{I,D}CACHE_SIZE... configuration macros. As we are just barely starting from reset, there is no luxury of device tree.
We will set some maximum cache configuration so that it will work for most configurations. This is used only in this start.S. The speed penalty is only once here.
After start up, during board initialization, cpu information will be extracted from device tree. Then cache flush operations will have correct cache configurations.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
show more ...
|
| 37e24499 | 03-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: map physical address to uncached virtual address
Add ioremap() to map physical address to uncached virtual address. We need this to convert the reg address from the device tree.
The order of
nios2: map physical address to uncached virtual address
Add ioremap() to map physical address to uncached virtual address. We need this to convert the reg address from the device tree.
The order of headers inclusion in interrupts.c is changed because common.h will include board header that contains IO_REGION_BASE.
In the future, the IO_REGION_BASE should be decided from the device tree. tree
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 3e468e68 | 09-Sep-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: call board_init_f_mem
We will need CONFIG_SYS_MALLOC_F_LEN to use serial uclass. So we shall undefine CONFIG_SYS_GENERIC_GLOBAL_DATA, and call board_init_f_mem() to allocates early malloc() m
nios2: call board_init_f_mem
We will need CONFIG_SYS_MALLOC_F_LEN to use serial uclass. So we shall undefine CONFIG_SYS_GENERIC_GLOBAL_DATA, and call board_init_f_mem() to allocates early malloc() memory with size of CONFIG_SYS_MALLOC_F_LEN in board_f.c.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de>
show more ...
|
| 34243804 | 09-Sep-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: zap version_string
There is a weak version_string[] at common/cmd_version.c . Remove the one in start.S.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.d
nios2: zap version_string
There is a weak version_string[] at common/cmd_version.c . Remove the one in start.S.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
show more ...
|
| e6500f86 | 08-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: Split timer code into timer.c
Move the timer code from interrupts.c into timer.c . Eliminate the installation of timer interrupt handler, which is no longer used.
Signed-off-by: Marek Vasut
nios2: Split timer code into timer.c
Move the timer code from interrupts.c into timer.c . Eliminate the installation of timer interrupt handler, which is no longer used.
Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
show more ...
|