summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* S5P boot header and image generatorAlexey Galakhov2012-05-215-1/+151
| | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add support for Samsung S5P architecture (S5PV210)Alexey Galakhov2012-05-2111-0/+1161
| | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Split S3C generic and S3C24xx specific codeAlexey Galakhov2012-05-2110-180/+258
| | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make S3C24xx config options available for all S3CsAlexey Galakhov2012-05-2118-41/+41
| | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* panda: update defconfig for i2c and led supportAnand Gadiyar2012-05-211-1/+7
| | | | | | | Enable I2C and LED support in defconfig. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* panda: add LED supportAnand Gadiyar2012-05-211-0/+19
| | | | | | | Register GPIO7 as heartbeat LED, same as in the linux kernel. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* panda: add i2c and twlcore to pandaAnand Gadiyar2012-05-211-0/+13
| | | | | | | | Add i2c-omap and twlcore driver to panda board. (Based on similar patch for pcm049). Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/defenv-2' into nextSascha Hauer2012-05-2143-76/+670
|\
| * ARM pcm038: Switch to new environmentSascha Hauer2012-05-188-59/+56
| | | | | | | | | | | | | | | | | | This switches the pcm038 board to the new environment template and does the necessary defaultconfig adjustments. Additionally it disables UBI support as the pcm038 image is getting bigger and bigger and UBI seems to be the most unused big (in size) feature. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add next generation default environment templateSascha Hauer2012-05-1833-3/+561
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new environment template which aims to be more flexible and configurable. Instead of having mainly two scripts (a config script and a boot script) this template uses initscripts which control the startup behaviour and configuration. Also we have boot scripts in /env/boot which configure a single boot configuration. Additional boot entries can be added by board specific entries or during runtime by copying and editing a template entry. Some more helpers handle for example network interfaces which can now be brought up with 'ifup'. We use the automount feature to configure mountpoints together with the commands to bring up the devices behind these mountpoints. Optionally menu support is available which hides many details behind a nice looking interface. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: Add default images variablesSascha Hauer2012-05-182-14/+53
| | | | | | | | | | | | | | | | | | | | It turns out useful to be able to configure bootm before its usage. This allows us to overwrite bootm settings on an individual base. This patch adds global variables to configure the kernel image, the initrd image and the devicetree image. These values will be used unless overwritten explicitely with command line switches. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'ppc' into nextSascha Hauer2012-05-2136-0/+3404
|\ \ | |/ |/|
| * Minimal P2020RDB platform support and configuration fileRenaud Barbier2012-05-178-0/+593
| | | | | | | | | | | | | | | | | | | | | | | | | | This is limited board support for the Freescale P2020RDB in single CPU mode. The DDR is configured for a memory bus running at 667Mhz. The system boots from NOR flash and provides the console at 115200 bauds, no other drivers are included. Finally, the PPC Kconfig and make file make the building of the P2020RDB platform firmware possible. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * 85xx core support build filesRenaud Barbier2012-05-172-0/+10
| | | | | | | | | | | | | | | | Kconfig and Makefile allow to include the 85xx cpu support in the compilation process. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Set _text_base to the firmware relocation addressRenaud Barbier2012-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | _text_base assignment has been removed earlier from lib/board.c for the mpc5xxx. For the 85xx, _text_base is set to where the firmware relocates in memory as passed by the function input variable. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MPC85xx start-up support codeRenaud Barbier2012-05-175-0/+334
| | | | | | | | | | | | | | | | | | | | This patch adds initialization functions used by the e500v2 start-up code and board specific code (L2 cache initialization). Other functions help identify the CPU or return the programmed memory size. Finally, the Makefile and Kconfig file are added. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * 85xx clocking supportRenaud Barbier2012-05-172-0/+157
| | | | | | | | | | | | | | | | | | This patch contains functions that returns information on the CPU and buses frequency (LBC, DDR, system). It also includes the clock source driver. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * 85xx: LAW and LBC initializationRenaud Barbier2012-05-172-0/+177
| | | | | | | | | | | | | | | | This patch includes functions to initialize LAW registers and the chip select 0 of the CPU. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * e500v2 traps and TLB support codeRenaud Barbier2012-05-174-0/+512
| | | | | | | | | | | | | | | | | | | | This patch defines functions to set interrupt vector registers and functions to handle hardware exceptions. It also defines support functions to set and search TLBs. Finally, the Makefile is added. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Initial e500v2 start up codeRenaud Barbier2012-05-173-0/+1089
| | | | | | | | | | | | | | | | | | | | | | This is the first part of the start-up code. The source code origin is U-boot and is slightly modified to have e500v2 CPU support in 32-bit mode only. It includes the power-up entry point, CPU initialization code and exports definition for D-cache flush and I-cache invalidate. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Initial Freescale 85xx Headers.Renaud Barbier2012-05-1710-0/+528
| | | | | | | | | | | | | | | | These header files are added to provide a minimal support to the Freescale 85xx cpu to boot on a P2020RDB platform. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx35: fix PHY address and clean codeEric Bénard2012-05-181-45/+45
| | | | | | | | | | | | | | | | | | this patch also cleans the source by putting in device_init the code which is actually in console_init and has nothing to see with the console. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx25: fix PHY addressEric Bénard2012-05-181-1/+1
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | iim: fix compilation when NET is not selectedEric Bénard2012-05-181-1/+6
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx25&35: use switch action to launch usbserial or dfuEric Bénard2012-05-184-2/+57
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx25/35/51: update defconfigEric Bénard2012-05-183-12/+43
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx51: updated envEric Bénard2012-05-181-7/+3
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx35: add display choice in environmentEric Bénard2012-05-181-1/+3
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx25: add display choice in environmentEric Bénard2012-05-181-1/+3
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | eukrea_cpuimx25: workaround ENGcm09152Eric Bénard2012-05-181-0/+2
| | | | | | | | | | | | | | | | else USB device doesn't work as the hardware fix is present on the boards Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | lseek: return -1 instead of -errnoSascha Hauer2012-05-183-5/+5
|/ | | | | | | | | | The patch making errno a positive value has another bug: lseek was switched to return -errno instead of -1. This does not work since we can lseek we can address the whole 4G address space, have of which has a negative offset when interpreted as a signed integer. Let lseek return -1 on failure again instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add defconfig for Ritmix RZX-50 boardAntony Pavlov2012-05-171-0/+29
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: XBurst: add Ritmix RZX-50 board supportAntony Pavlov2012-05-1710-1/+158
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: XBurst: add JZ4755 CPU supportAntony Pavlov2012-05-176-0/+220
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add XBurst processor family supportAntony Pavlov2012-05-176-0/+55
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51: Added helper for SDHC3 registration.Alexander Shiyan2012-05-171-0/+5
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51: Changed naming registers and procedures for SPIAlexander Shiyan2012-05-172-7/+7
| | | | | | | | This patch reflects real naming of SPI by Freescale. We have two ECSPI channels and one CSPI. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2012-05-1622-102/+68
|\
| * mfd mc13xxxx: Set mc_dev to NULL on failureSascha Hauer2012-05-161-3/+1
| | | | | | | | | | | | | | | | | | The mc13xxx driver correctly bails out on failure, but leaves mc_dev initialized, so a later mc13xxx_get won't fail but returns an invalid pointer. Fix this. While at it, remove some superfluous code from mc13xxx_get. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM i.MX51 babbage: use dedicated chipselect for PMIC spiSascha Hauer2012-05-161-1/+1
| | | | | | | | | | | | | | This got broken while updating the iomux definitions from the kernel. Since then the PMIC did not work anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * dns: fix recursive loopSascha Hauer2012-05-161-2/+9
| | | | | | | | | | | | | | resolv() uses getenv_ip() which in turn calls resolv(). Fix this inifinite loop by not using getenv_ip directly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * echo: Fix helpSascha Hauer2012-05-141-3/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i2c: Fix barebox crash when 'count' is not set for i2c_read commandAlexander Shiyan2012-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | Running i2c_read without the 'count' setting causes an error and reboots. barebox@Phytec phyCORE-i.MX27:/ i2c_read -b 1 -a 0x4a -r 0x00 ERROR: out of memory no stack data available Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * README: fix some typosAntony Pavlov2012-05-071-3/+3
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * complete: fix duplicate env eval listJean-Christophe PLAGNIOL-VILLARD2012-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this can be reproductable by this sequence barebox:/ <TAB> . ? [ addpart bootm cat cd clear cp cpuinfo crc32 delpart devinfo dhcp echo edit erase ethact exit export false getopt go help host loadb loadenv loady login ls md md5sum memcmp memcpy meminfo memset menu mkdir mount mtest mw nfs passwd ping printenv protect pwd readline reset rm rmdir saveenv sedit sh sha1sum sha256sum sleep source test tftp time timeout true umount uncompress unprotect version net.nameserver= net.domainname= cs0.baudrate= cs0.active= cs1.active= cs1.ip= cs1.port= barebox:/ $<TAB> $net.nameserver $net.domainname $cs0.baudrate $cs0.active $cs1.active $cs1.ip $cs1.port $net.nameserver $net.domainname $cs0.baudrate $cs0.active $cs1.active $cs1.ip $cs1.port barebox:/ $ Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'next'Sascha Hauer2012-05-03274-5587/+13810
| |\ | | | | | | | | | | | | | | | | | | Conflicts: common/hush.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Release v2012.05.0v2012.05.0Sascha Hauer2012-05-031-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | uimage/file_to_sdram: fix resource allocationSascha Hauer2012-05-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | file_to_sdram is used to load an initrd. The resource size is then used to pass the initrd size to Linux. This means that the resource size must exactly match the initrd size. Currently this is not the case since we request the sdram region in chunks of 8 Kbytes. Fix this by adjusting the resource size when the file is loaded. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | hush: bail out of scripts on syntax errorSascha Hauer2012-05-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On a systax error we have to bail out of the shell instead of setting inp->p to NULL and crash barebox with a NULL pointer deref. This only happened in scripts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> This fixes the problem I had (i.e. a boot loop caused by a stray fi in /env/bin/init). Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
| * | bootm: fix initrd handlingSascha Hauer2012-05-021-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | bootm_initrd tests for data->initrd, but this never becomes true because the setting of data->initrd is inside a if(bootm_initrd()). Fix this. Also, do not support the initrd options when initrd is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>