summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: am335x: NAND MLO update: always let the user confirm updatingSascha Hauer2014-09-301-4/+4
| | | | | | | Before actually doing something the user should always confirm the update. Move the question out of the if() block. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x Phytec phyCORE: register SPI NOR and NAND update handlersSascha Hauer2014-09-301-0/+2
| | | | | | | Additionally to the MLO update handlers also register the update handlers for the regular barebox image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Add a NAND update handler for the regular bareboxSascha Hauer2014-09-305-8/+54
| | | | | | | | | | To be able to not only update the MLO in NAND but also the regular barebox image. Since this is implemented with help of the corresponding xload handler this also removes the 'xload' from the Kconfig options and the filename. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx update SPI NOR: Ask use before flashingSascha Hauer2014-09-301-0/+4
| | | | | | | Let the user confirm the update process before flashing the new image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx update SPI NOR: Check image size before flashingSascha Hauer2014-09-301-0/+13
| | | | | | | Test if the image fits into the partition before flashing it. Makes the update process more safe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM33xx: Add AFI GF board supportSascha Hauer2014-09-2615-2/+958
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM33xx SPI MLO update handler: detect non CH imagesSascha Hauer2014-09-261-2/+3
| | | | | | | | | | | | The AM3xxx can boot images containing a Configuration Header (generated with omap_signGP) or images with GP Header (simple size/address information in front of raw image). Update the SPI NOR barebox update handler to detect the GP Header images. These have 0x65726162 ('bare') at the offset header[10]. Also automatically swap the endianess for non swapped images so that the regular non swapped images can also be flashed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: mk-am3xxx-spi-image: fix wrong assumptions about SPI imagesSascha Hauer2014-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We assumed that there is a special image format for SPI. This is not the case. The AM33xx can boot either images generated with omap_signGP or raw images which only have the image size and load address in front of the image. Whether these images are booted from SPI or another boot medium doesn't matter. The only special thing about SPI is that the image is in big endian format. - renames mk-am3xxx-spi-image.c to mk-omap-image.c as the image format is not only supported by AM3xxx but also by the OMAP SoCs - removes the option to specify the SoC - introduces -s to build a big endian image - detects if an image already is an image generated with omap_signGP So the behaviour is like this: raw image -> mk-omap-image -> prepend size/address -> image for SD/MMC raw image -> mk-omap-image -s -> prepend size/address, big endian swap -> image for SPI CH image -> mk-omap-image -> nothing, input == output CH image -> mk-omap-image -s -> big endian swap -> image for SPI Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: edmqmx6: free phy-reset gpio pinSilvio Fricke2014-09-221-2/+6
| | | | | | | | | | | | | Since 93a6c6a808("dts: update to v3.17-rc2") we have a correct gpio configuration. This results in a double gpio request what receipted in a error message like this one: gpiolib: _gpio_request: gpio-25 (phy-reset) status -16 Now with this patch the problem is gone. Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: use objcopy with CROSS_COMPILE prefixMichael Olbrich2014-09-191-1/+1
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AT91: Make gpio mux functions inlineSascha Hauer2014-09-092-24/+19
| | | | | | | Otherwise we get a unused function warning each time mach/gpio.h is included. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AT91: Add missing includeSascha Hauer2014-09-091-0/+1
| | | | | | | the gpio mux functions were moved to mach/gpio.h. Add the missing include. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* dts:imx6:pfla02: Fix SPI NOR for phyFLEX-i.MX6Christian Hemp2014-09-081-0/+1
| | | | | | | Add chip-select property to pfla02 devicetree. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/marvell'Sascha Hauer2014-09-057-0/+53
|\
| * ARM: mvebu: Add Plat'home's Kirkwood Openblocks A6 board supportEzequiel Garcia2014-09-017-0/+53
| | | | | | | | | | | | | | | | | | This commit adds a new Marvell Kirkwood-based board, by following the currently supported boards. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/dts'Sascha Hauer2014-09-055-4/+1077
|\ \
| * | ARM: dts: move imx6q-embedsky-e9.dtsi to arch/arm/dts/bootSascha Hauer2014-09-022-1/+396
| | | | | | | | | | | | | | | | | | | | | | | | dts/ is for upstream dts files only. Move barebox specific file to arch/arm/dts/ so that it doesn't get removed by the next dts update. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: Use local version of rk3188-clocks.dtsiSascha Hauer2014-09-023-3/+681
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of 3.17-rc1 the upstream dts sources for the rockchip rk3188 use incompatible clock bindings. We currently do not have the resources to update the clock driver to this new binding, so we use local copies of the Linux 3.16 dtsi files. Due to the incompatible change the internal device tree won't work with kernels newer than 3.17-rc1. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/at91'Sascha Hauer2014-09-0515-819/+162
|\ \ \
| * | | pinctrl: at91: add pinctrl driverRaphaël Poggi2014-09-043-671/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver is based on mach-at91/gpio.c and linux pinctrl driver. The driver contains the gpio and pinctrl parts (like in linux) because the two parts share some structures and logics. Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: mach-at91: move gpio.h to include folderRaphaël Poggi2014-09-033-149/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit add functions from mach-at91/gpio.h in include/mach/gpio.h. This allow to use these functions outside the mach-at91 folder. Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: atmel_nand: retrieve ecc_mode from pdataRaphaël Poggi2014-09-025-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By retrieving the ecc_mode from pdata we can use the same code for device tree and non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to NAND_ECC_SOFT. Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: nand: add has_pmecc memberRaphaël Poggi2014-09-025-0/+5
| |/ / | | | | | | | | | | | | | | | | | | By adding this structure member, we can retrieve the pmecc config, through the device tree. Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / EFI: add missing includeMichael Olbrich2014-09-031-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise building produces these warnings: [...] arch/efi/efi/efi-image.c:48:2: warning: implicit declaration of function 'read_file' [-Wimplicit-function-declaration] arch/efi/efi/efi-image.c:48:6: warning: assignment makes pointer from integer without a cast [enabled by default] [...] And bootm fails for x86_64. The implicit declaration has an int as return value, so half of the returned address is lost. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | openrisc: add barebox.lds to .gitignoreAntony Pavlov2014-09-011-0/+1
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: nitrogen6x: new memory setup from BD u-bootLucas Stach2014-09-017-103/+134
| | | | | | | | | | | | | | | | This fixes various stability issues seen on new boards with the old setup. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: mach-imx: add MMDC and CCM register defines for use in DCDLucas Stach2014-09-014-0/+205
| | | | | | | | | | | | | | Makes .imxcfg files a lot more readable. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX: tqma53: remove cpu_to_be32( from imx scriptSascha Hauer2014-09-011-54/+54
| | | | | | | | | | | | | | Remove leftovers from previous conversion from C code to imxcfg script. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | EFI: fix error handling in efi_get_boot()Michael Olbrich2014-09-011-1/+1
|/ | | | | | | efi_get_global_var() returns an error code, not NULL when it fails. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/usb'Sascha Hauer2014-08-0733-54/+33
|\
| * env: Remove bogus USB vendor/product idsSascha Hauer2014-07-217-28/+7
| | | | | | | | | | | | | | | | Many boards use a USB vendor id of 0x4321. This doesn't exist and shouldn't be used. Remove this and also the bogus product id of 0x1234. The boards will use the barebox default vendor/product id then. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * USB: Kconfig: introduce USB_HOST symbolSascha Hauer2014-07-1826-26/+26
| | | | | | | | | | | | | | | | | | This renames USB to USB_HOST since this is what the symbol really means. Introduce a USB symbol which is selected by both USB_GADGET and USB_HOST. This gives us a symbol to let common USB code depend on. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rtc'Sascha Hauer2014-08-073-0/+10
|\ \ | | | | | | | | | | | | | | | Conflicts: arch/mips/dts/jz4755.dtsi commands/Makefile
| * | MIPS: ritmix-rzx50_defconfig: enable RTC supportAntony Pavlov2014-08-021-0/+3
| | | | | | | | | | | | | | | | | | | | | Also enable CONFIG_LONGHELP. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: dts: jz4755.dtsi: add jz4740-rtcAntony Pavlov2014-08-021-0/+5
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: versatilepb_defconfig: enable RTC supportAntony Pavlov2014-08-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use this qemu cmdline to test hwclock $ qemu-system-arm -M versatilepb -nographic \ -monitor null -kernel barebox -serial stdio Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/ppc'Sascha Hauer2014-08-0723-58/+1108
|\ \ \
| * | | ppc: DA923RC: 16-bit Product Data EEPROM read accessRenaud Barbier2014-08-011-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change Product Data validity checking to ensure that support can be provided for 8-bit and 16-bit EEPROM devices. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: minimal Freescale P1010RDB board supportRenaud Barbier2014-07-2810-0/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a limited board support for the Freescale P1010RDB. The board boots from NOR and output the prompt to the serial port at 115200 bauds. All 3 Ethernet ports are supported by the gianfar driver. I2C devices are accessible on both bus and the memory is initialised by the 85xx DDR driver. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: Freescale P1010 SoC supportRenaud Barbier2014-07-286-34/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the Freescale P1010 including errata for this CPU, SoC frequency calculation and GPIO settings. The mpc85xx configuration options file is re-ordered to facilitate board option selection. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: Freescale P1010 headersRenaud Barbier2014-07-285-3/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a minimal Integrated Flash Controller header file and new definitions to support the P1010 SOC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: 85xx: CCSRBAR mapping moved to start-up code.Renaud Barbier2014-07-282-26/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the configuration, control and status register base address (CCSRBAR) relocation to the start-up processing. This addresses TLB faults found during testing on the Freescale P1010RDB and also matches the current U-Boot functionality. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2014-08-0720-472/+149
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: lib/Makefile
| * | | | watchdog: add minimal jz4740 driverAntony Pavlov2014-08-014-40/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also move reset_cpu() for jz4755 SoC from platform code into the new driver code. At the moment mach-xburst lacks clk support so jz4740 watchdog driver looks like a template. We can improve jz4740 watchdog driver later after adding clk support. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | sandbox: allow "make ARCH=sandbox allyesconfig"Holger Schurig2014-07-224-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compiling the tree with allyesconfig is helpful because different compilers (gcc, clang) or static checkers (e.g. clang's scan-build) can then process and check more code. This patch introduces two new configuration symbols that Kconfig files can depend on. That way, code that is only working where a cache or DMA implementation exists can be opted out. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | lib: Add bitmap functions from kernelSascha Hauer2014-07-171-0/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ppc: Use generic find_*_bit functionsSascha Hauer2014-07-172-43/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ppc implementation is identical to the generic implementation, so use the generic one instead. Also add the missing __ffs function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | consistently use the same bitops.h fileSascha Hauer2014-07-179-387/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have many variants of the same bitops.h file. Consistently use the same file for all architectures which completely use the generic bitops versions. Some architectures had static inline versions of functions identically to the generic versions, these are removed and the generic versions are used directly now. Also several architectures depend on the generic find_*_bit functions but didn't have the GENERIC_FIND_NEXT_BIT Kconfig option selected. This is added where needed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | X86: Move BITS_PER_LONG definition to types.hSascha Hauer2014-07-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because that's where it belongs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/metadata'Sascha Hauer2014-08-0721-100/+90
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile common/Makefile lib/Makefile