New arch (NIOS2)
cover New arch (NIOS2)
From: Franck JULLIEN <[email protected]>
This is the base files of the Nios2 port. Almost everything is comming from u-boot. When those files are acked, I'll post drivers and utility commands.
The port include a generic board. The board configuration file nios_sopc.h is generated using sopc-create-header-file (Altera utility). Then, names in this file are converted to generic names in config.h.
Franck JULLIEN (54):
Add arch/nios2/Kconfig
Add arch/nios2/Makefile
Add arch/nios2/cpu-nios2/Makefile
Add arch/nios2/cpu-nios2/cpu.c
Add arch/nios2/cpu-nios2/exceptions.S
Add arch/nios2/cpu-nios2/interrupts.c
Add arch/nios2/cpu-nios2/start.S
Add arch/nios2/cpu-nios2/traps.c
Add arch/nios2/lib/Makefile
Add arch/nios2/lib/board.c
Add arch/nios2/lib/cache.S
Add arch/nios2/lib/clock.c
Add arch/nios2/lib/early_printf.c
Add arch/nios2/lib/libgcc.c
Add arch/nios2/lib/longlong.h
Add arch/nios2/boards/generic/Makefile
Add arch/nios2/boards/generic/barebox.lds.S
Add arch/nios2/boards/generic/config.h
Add arch/nios2/boards/generic/env/config
Add arch/nios2/boards/generic/generic.c
Add arch/nios2/boards/generic/nios_sopc.h
Add arch/nios2/configs/generic_defconfig
Add arch/nios2/include/asm/addrspace.h
Add arch/nios2/include/asm/barebox.h
Add arch/nios2/include/asm/bitops.h
Add arch/nios2/include/asm/bitsperlong.h
Add arch/nios2/include/asm/byteorder.h
Add arch/nios2/include/asm/cache.h
Add arch/nios2/include/asm/common.h
Add arch/nios2/include/asm/dma-mapping.h
Add arch/nios2/include/asm/early_printf.h
Add arch/nios2/include/asm/elf.h
Add arch/nios2/include/asm/entry.h
Add arch/nios2/include/asm/getorder.h
Add arch/nios2/include/asm/int-ll64.h
Add arch/nios2/include/asm/io.h
Add arch/nios2/include/asm/linkage.h
Add arch/nios2/include/asm/memory_model.h
Add arch/nios2/include/asm/nios2-io.h
Add arch/nios2/include/asm/nios2.h
Add arch/nios2/include/asm/opcodes.h
Add arch/nios2/include/asm/page.h
Add arch/nios2/include/asm/pfn.h
Add arch/nios2/include/asm/pgtable-bits.h
Add arch/nios2/include/asm/posix_types.h
Add arch/nios2/include/asm/ptrace.h
Add arch/nios2/include/asm/sections.h
Add arch/nios2/include/asm/segment.h
Add arch/nios2/include/asm/spaces.h
Add arch/nios2/include/asm/string.h
Add arch/nios2/include/asm/swab.h
Add arch/nios2/include/asm/system.h
Add arch/nios2/include/asm/types.h
Add arch/nios2/include/asm/user.h
arch/nios2/Kconfig | 39 ++ arch/nios2/Makefile | 31 ++ arch/nios2/boards/generic/Makefile | 2 + arch/nios2/boards/generic/barebox.lds.S | 126 +++++++ arch/nios2/boards/generic/config.h | 64 ++++ arch/nios2/boards/generic/env/config | 20 + arch/nios2/boards/generic/generic.c | 74 ++++ arch/nios2/boards/generic/nios_sopc.h | 406 +++++++++++++++++++++ arch/nios2/configs/generic_defconfig | 212 +++++++++++ arch/nios2/cpu-nios2/Makefile | 5 + arch/nios2/cpu-nios2/cpu.c | 38 ++ arch/nios2/cpu-nios2/exceptions.S | 160 ++++++++ arch/nios2/cpu-nios2/interrupts.c | 140 +++++++ arch/nios2/cpu-nios2/start.S | 165 +++++++++ arch/nios2/cpu-nios2/traps.c | 48 +++ arch/nios2/include/asm/addrspace.h | 15 + arch/nios2/include/asm/barebox.h | 47 +++ arch/nios2/include/asm/bitops.h | 45 +++ arch/nios2/include/asm/bitsperlong.h | 32 ++ arch/nios2/include/asm/byteorder.h | 36 ++ arch/nios2/include/asm/cache.h | 31 ++ arch/nios2/include/asm/common.h | 5 + arch/nios2/include/asm/dma-mapping.h | 25 ++ arch/nios2/include/asm/early_printf.h | 23 ++ arch/nios2/include/asm/elf.h | 119 ++++++ arch/nios2/include/asm/entry.h | 177 +++++++++ arch/nios2/include/asm/getorder.h | 24 ++ arch/nios2/include/asm/int-ll64.h | 78 ++++ arch/nios2/include/asm/io.h | 130 +++++++ arch/nios2/include/asm/linkage.h | 7 + arch/nios2/include/asm/memory_model.h | 77 ++++ arch/nios2/include/asm/nios2-io.h | 182 +++++++++ arch/nios2/include/asm/nios2.h | 63 ++++ arch/nios2/include/asm/opcodes.h | 131 +++++++ arch/nios2/include/asm/page.h | 129 +++++++ arch/nios2/include/asm/pfn.h | 13 + arch/nios2/include/asm/pgtable-bits.h | 38 ++ arch/nios2/include/asm/posix_types.h | 77 ++++ arch/nios2/include/asm/ptrace.h | 33 ++ arch/nios2/include/asm/sections.h | 1 + arch/nios2/include/asm/segment.h | 6 + arch/nios2/include/asm/spaces.h | 32 ++ arch/nios2/include/asm/string.h | 47 +++ arch/nios2/include/asm/swab.h | 4 + arch/nios2/include/asm/system.h | 64 ++++ arch/nios2/include/asm/types.h | 31 ++ arch/nios2/include/asm/user.h | 136 +++++++ arch/nios2/lib/Makefile | 6 + arch/nios2/lib/board.c | 47 +++ arch/nios2/lib/cache.S | 74 ++++ arch/nios2/lib/clock.c | 57 +++ arch/nios2/lib/early_printf.c | 60 +++ arch/nios2/lib/libgcc.c | 605 +++++++++++++++++++++++++++++++ arch/nios2/lib/longlong.h | 263 ++++++++++++++ 54 files changed, 4500 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/Kconfig create mode 100644 arch/nios2/Makefile create mode 100644 arch/nios2/boards/generic/Makefile create mode 100644 arch/nios2/boards/generic/barebox.lds.S create mode 100644 arch/nios2/boards/generic/config.h create mode 100644 arch/nios2/boards/generic/env/config create mode 100644 arch/nios2/boards/generic/generic.c create mode 100644 arch/nios2/boards/generic/nios_sopc.h create mode 100644 arch/nios2/configs/generic_defconfig create mode 100644 arch/nios2/cpu-nios2/Makefile create mode 100644 arch/nios2/cpu-nios2/cpu.c create mode 100644 arch/nios2/cpu-nios2/exceptions.S create mode 100644 arch/nios2/cpu-nios2/interrupts.c create mode 100644 arch/nios2/cpu-nios2/start.S create mode 100644 arch/nios2/cpu-nios2/traps.c create mode 100644 arch/nios2/include/asm/addrspace.h create mode 100644 arch/nios2/include/asm/barebox.h create mode 100644 arch/nios2/include/asm/bitops.h create mode 100644 arch/nios2/include/asm/bitsperlong.h create mode 100644 arch/nios2/include/asm/byteorder.h create mode 100644 arch/nios2/include/asm/cache.h create mode 100644 arch/nios2/include/asm/common.h create mode 100644 arch/nios2/include/asm/dma-mapping.h create mode 100644 arch/nios2/include/asm/early_printf.h create mode 100644 arch/nios2/include/asm/elf.h create mode 100644 arch/nios2/include/asm/entry.h create mode 100644 arch/nios2/include/asm/getorder.h create mode 100644 arch/nios2/include/asm/int-ll64.h create mode 100644 arch/nios2/include/asm/io.h create mode 100644 arch/nios2/include/asm/linkage.h create mode 100644 arch/nios2/include/asm/memory_model.h create mode 100644 arch/nios2/include/asm/nios2-io.h create mode 100644 arch/nios2/include/asm/nios2.h create mode 100644 arch/nios2/include/asm/opcodes.h create mode 100644 arch/nios2/include/asm/page.h create mode 100644 arch/nios2/include/asm/pfn.h create mode 100644 arch/nios2/include/asm/pgtable-bits.h create mode 100644 arch/nios2/include/asm/posix_types.h create mode 100644 arch/nios2/include/asm/ptrace.h create mode 100644 arch/nios2/include/asm/sections.h create mode 100644 arch/nios2/include/asm/segment.h create mode 100644 arch/nios2/include/asm/spaces.h create mode 100644 arch/nios2/include/asm/string.h create mode 100644 arch/nios2/include/asm/swab.h create mode 100644 arch/nios2/include/asm/system.h create mode 100644 arch/nios2/include/asm/types.h create mode 100644 arch/nios2/include/asm/user.h create mode 100644 arch/nios2/lib/Makefile create mode 100644 arch/nios2/lib/board.c create mode 100644 arch/nios2/lib/cache.S create mode 100644 arch/nios2/lib/clock.c create mode 100644 arch/nios2/lib/early_printf.c create mode 100644 arch/nios2/lib/libgcc.c create mode 100644 arch/nios2/lib/longlong.h
Signature · 7 lines
1.7.3.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Hi Franck,
Quoted 4 lines · On Thu, Mar 03, 2011 at 11:58:14PM +0100, [email protected] wrote:
From: Franck JULLIEN <[email protected]>
This is the base files of the Nios2 port. Almost everything is comming from u-boot. When those files are acked, I'll post drivers and utility commands.
Soo many patches ;). You can safely combine all these into two patches, one for the nios2 support and one for the generic board. The patches are only useful as a whole anyway, so no need to split them up that fine. You will hit the list limit, so give me some time to go to the moderator interface and and it through.
I'm not through all patches, but some remarks here:
There is some whitespace damage all around like spaces which should be tabs. Also, please do not use direct pointer derefs to access registers. You should use readl/writel accessors for them.
Thanks for doing this work. Although I don't have a nios baord, I really appreciate extending barebox to more architectures.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
A message that is not in the archive (sent off-list or not yet received): [email protected]
cover New arch (NIOS2)
---------- Forwarded message ----------
From: Franck JULLIEN <[email protected]>
Date: 2011/3/4
Subject: Re: [PATCH 00/54] New arch (NIOS2)
To: Sascha Hauer <[email protected]>
2011/3/4 Sascha Hauer <[email protected]>
Quoted 15 lines
Hi Franck,
Quoted 3 lines · On Thu, Mar 03, 2011 at 11:58:14PM +0100, [email protected] wrote:
From: Franck JULLIEN <[email protected]>
This is the base files of the Nios2 port. Almost everything is comming
from u-boot.
Quoted 1 line
When those files are acked, I'll post drivers and utility commands.
Soo many patches ;). You can safely combine all these into two patches, one for the nios2 support and one for the generic board. The patches are only useful as a whole anyway, so no need to split them up that fine. You will hit the list limit, so give me some time to go to the moderator interface and and it through.
Quoted 4 lines
I'm not through all patches, but some remarks here:
There is some whitespace damage all around like spaces which should be tabs.
Is that a "Linux rule" ? Is there other ones ? (I always convert tabs to whitespaces....).
Quoted 4 lines
Also, please do not use direct pointer derefs to access registers. You should use readl/writel accessors for them.
Okay I will.
Quoted 3 lines
Thanks for doing this work. Although I don't have a nios baord, I really appreciate extending barebox to more architectures.
Barebox is so much better than Uboot, you guys did a really good job. Barebox
even helped my to understand some Linux concepts.
Quoted 4 lines
Sascha
Hi Sasha,
I didn't how to split the patches so I splitted everything :) I'll fight with git to revert my commits and do it again...
This port is working but it's going to be a long process including it in barebox git because I don't have a lot of time
(my baby boy needs my time) and I'm not a git master at all, I'm just an hardware guy playing with the kernel (why the
hell it is so complicated ? I think it is kind of a filter/test for patchers. If you can't use git you can't send patches ;)).
Souldn't be less complicated if I had a separate branch to work on it ?
Quoted 7 lines
--
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Hi Franck,
Quoted 10 lines · Franck JULLIEN
---------- Forwarded message ----------
From: Franck JULLIEN <[email protected]>
Date: 2011/3/4
Subject: Re: [PATCH 00/54] New arch (NIOS2)
To: Sascha Hauer <[email protected]>
2011/3/4 Sascha Hauer <[email protected]>Quoted 2 lines
There is some whitespace damage all around like spaces which should be tabs.
Is that a "Linux rule" ? Is there other ones ? (I always convert tabs to whitespaces....).
See Documentation/CodingStyle in the Linux kernel source tree.
baruch
Signature · 8 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/bareboxQuoted 1 line · On 3/4/11 7:58 AM, [email protected] wrote:
This is the base files of the Nios2 port. Almost everything is comming from u-boot.
It's always safe bet to divert the decent U-Boot bits to an initial port (and a new architecture support) of Barebox, but at the same time it's a good opportunity to rebase old stuff against the recent Linux kernel.
For instance, if some of nios2 asm header files can be adjusted to recent ones, I'd recommend to do it this time. It won't take so long, and helps you avoid sending small patches later :-)
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox