ff83066c | 30-Apr-2018 |
Bryan O'Donoghue <pure.logic@nexus-software.ie> |
nios2: Define PLATFORM__CLEAR_BIT for generic_clear_bit()
nios2 bitops.h provides a __clear_bit() but does not define PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the archi
nios2: Define PLATFORM__CLEAR_BIT for generic_clear_bit()
nios2 bitops.h provides a __clear_bit() but does not define PLATFORM__CLEAR_BIT as a result generic_clear_bit() is used instead of the architecturally provided __clear_bit().
This patch defines PLATFORM__CLEAR_BIT which means that __clear_bit() in nios2 bitops.h will be called whenever generic_clear_bit() is called - as opposed to the default cross-platform generic_clear_bit().
Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Cc: Thomas Chou <thomas@wytron.com.tw>
show more ...
|
f5b76de4 | 13-Nov-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: zap ioremap
Zap ioremap(), as it is replaced by map_physmem(,,MAP_NOCACHE).
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de> |
2de4823d | 26-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 ...
|
1cda48f3 | 29-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: remove the useless parenthesis in asm/io.h
Remove the useless parenthesis in asm/io.h as suggested by Marek.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@de
nios2: remove the useless parenthesis in asm/io.h
Remove the useless parenthesis in asm/io.h as suggested by Marek.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
show more ...
|
8a3ea979 | 22-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: fix virt_to_phys for nios2 with MMU
As the virtual address and physical address mapping of nios2 with MMU are different. Add a check of MMU, and fix the mapping.
Signed-off-by: Thomas Chou <
nios2: fix virt_to_phys for nios2 with MMU
As the virtual address and physical address mapping of nios2 with MMU are different. Add a check of MMU, and fix the mapping.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de> Reviewed-by: Ley Foon Tan <lftan@altera.com>
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 ...
|
a64be612 | 04-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
nios2: convert ioremap to use dm cpu data
Convert ioremap() to use io_region_base in dm cpu global data.
Also remove three unused io functions, which have style issue and are replaced by macros alr
nios2: convert ioremap to use dm cpu data
Convert ioremap() to use io_region_base in dm cpu global data.
Also remove three unused io functions, which have style issue and are replaced by macros already.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
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 ...
|