summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: some cleanup in interrupts.cSascha Hauer2011-08-071-22/+21
| | | | | | | | | | - Don't call panic with "resetting CPU...". Depending on the configuration the system might also hang. - panic does not return, so no need to call reset_cpu afterwards - bundle show_regs and panic into a seperate functions to not have to call both functions from each exception handler Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: fix comments in interrupts.cSascha Hauer2011-08-071-6/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove unused irq enable/disable functionsSascha Hauer2011-08-071-31/+0
| | | | | | | We do not have irq support in barebox, so remove the unused interrupt functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: exceptions: remove unnecessary function declarationsSascha Hauer2011-08-071-8/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove unused exceptionSascha Hauer2011-08-073-19/+1
| | | | | | | | The exception vector at 0x14 is not used on arm, so no need to bind this address to a exception handler. Remove the corresponding code Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM mmu: use high vectors if possibleSascha Hauer2011-08-071-6/+31
| | | | | | | Using high vectors allows us to map a faulting zero page to catch NULL pointer dereferences. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM mmu: fix arm_create_pteSascha Hauer2011-08-071-1/+1
| | | | | | | Each section is 1MiB, so we have to shift by 20 to get the ttb entry corresponding to a section. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: add missing volatile in get_cr()Sascha Hauer2011-08-071-1/+1
| | | | | | | Without it, the compiler optimizes away subsequent reads of the control register. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add draft cpuinfo commandAntony Pavlov2011-08-053-0/+51
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add D-Link DIR-320 documentationAntony Pavlov2011-08-053-0/+49
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add initial D-Link DIR-320 wireless router supportAntony Pavlov2011-08-057-0/+133
| | | | | | | | | | Can be started from CFE using tftp, e.g.: CFE> ifconfig eth0 -addr=192.168.0.99 CFE> boot -tftp -addr=a0800000 -raw 192.168.0.1:barebox.bin Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add initial BCM47xx-based boards supportAntony Pavlov2011-08-057-0/+133
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add qemu-malta documentationAntony Pavlov2011-08-053-0/+25
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add qemu malta board support to bareboxAntony Pavlov2011-08-057-0/+132
| | | | | | | The only supported peripheral is ns16550 serial port. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add Malta machine support to bareboxAntony Pavlov2011-08-057-0/+145
| | | | | | | | | The machine uses only big-endian mode. Only supported peripheral is serial port. The machine supports only MIPS32 CPUs. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add documentationAntony Pavlov2011-08-052-0/+55
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add common MIPS stuffAntony Pavlov2011-08-059-0/+590
| | | | | | | | | Add start.S, CP0 clocksource, Makefile, linker script and memory layout function. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: import header filesAntony Pavlov2011-08-0513-0/+1945
| | | | | | | | | | | | from linux-2.6.39: * arch/mips/include/asm/* * include/asm-generic/int-ll64.h from barebox-2011.07.0 arch/x86: * arch/mips/include/asm/sections.h Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: import libgcc-related files from linux-2.6.39Antony Pavlov2011-08-054-0/+111
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: initial commit: add empty but required header filesAntony Pavlov2011-08-055-0/+140
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu-defconfig' into nextSascha Hauer2011-08-049-11/+92
|\
| * ARM scb9328: update defconfigSascha Hauer2011-08-031-1/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM pcm043: update defconfigSascha Hauer2011-08-031-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM pcm038: update defconfigSascha Hauer2011-08-031-2/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM pcm037: update defconfigSascha Hauer2011-08-031-0/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM pca100: update defconfigSascha Hauer2011-08-031-1/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM cupid: update defconfigSascha Hauer2011-08-031-3/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM babbage: update defconfigSascha Hauer2011-08-031-2/+7
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM cupid: update defconfigSascha Hauer2011-08-031-2/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM scb9328: Add missing envSascha Hauer2011-08-031-0/+56
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu-mmu' into nextSascha Hauer2011-08-0422-258/+209
|\ \ | |/ |/|
| * remove now unnecessary HAVE_MMU from KconfigSascha Hauer2011-08-033-25/+7
| | | | | | | | | | | | | | MMU now can be enabled on every ARM board, so remove the dependency. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM mmu: Fix arm_create_pteSascha Hauer2011-08-031-1/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM boards: remove now unnecessary mmu callsSascha Hauer2011-08-0319-198/+30
| | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * ARM: rework MMU supportSascha Hauer2011-08-032-37/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In barebox we used 1MiB sections to map our SDRAM cachable. This has the drawback that we have to map our sdram twice: cached for normal sdram and uncached for DMA operations. As address space gets sparse on newer systems we are sometines unable to find a suitably big enough area for the dma coherent space. This patch changes the MMU code to use second level page tables. With it we can implement dma_alloc_coherent as normal malloc, we just have to remap the allocated area uncached afterwards and map it cached again after free(). This makes arm_create_section(), setup_dma_coherent() and mmu_enable() noops. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu-remove-gd_t' into nextSascha Hauer2011-08-037-204/+0
|\ \ | |/ |/|
| * remove unused global_data.hSascha Hauer2011-08-016-203/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * remove unused DECLARE_GLOBAL_DATA_PTRSascha Hauer2011-08-011-1/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM boards: move sdram setup before mmu setupSascha Hauer2011-08-0142-229/+352
| | | | | | | | | | | | | | | | | | | | | | | | The new MMU setup will need SDRAM base addresses and sizes. For this reason convert the MMU enabled ARM boards: - move mem setup to mem_initcall. This is early but still makes sure that we already have the console available - move MMU setup in this initcall temporary as after the mmu_init will generic Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | ARM: pass size to dma_free_coherentSascha Hauer2011-08-012-3/+8
| | | | | | | | | | | | We'll need it later once we remap dma memory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM l2x0: make init function static inline if l2 is not availableSascha Hauer2011-08-011-0/+6
| | | | | | | | | | | | So that the ifdeffery can be moved out of the board code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: move armlinux_add_dram to location which is always compiledSascha Hauer2011-08-014-33/+31
| | | | | | | | | | | | | | | | | | | | | | We want to use the memory banks later in the MMU which is independent of Linux, so move this to a location which is always compiled. Also, make the memory bank list global and add an iterator for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM cache l2x0: depend on MMUSascha Hauer2011-08-011-1/+1
| | | | | | | | | | | | | | l2x0 cache support does not work without MMU, so depend on it in Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: introduce arm_add_mem_device to register dram deviceJean-Christophe PLAGNIOL-VILLARD2011-08-0139-199/+53
| | | | | | | | | | | | this will automaticaly register the device to armlinux_add_dram Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | ns16550: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-0110-78/+12
| | | | | | | | | | | | | | use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | nios2: remove dead code in generic boardJean-Christophe PLAGNIOL-VILLARD2011-08-011-8/+0
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | imx: switch remaing board to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-306-93/+28
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | sandbox: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-304-15/+5
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | netx: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-301-22/+4
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | edb93xx: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-301-18/+7
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>