summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2015-06-0926-74/+105
|\
| * crc16: Make buffer argument constSascha Hauer2015-06-082-2/+2
| | | | | | | | | | | | The buffer is not modified by crc16, so make the argument const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * .mailmap: add more Juergen Borleis' e-mail addressesAntony Pavlov2015-06-041-0/+5
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: asm/debug_ll_ns16550.h: use plain inline instead of __inline__Antony Pavlov2015-06-041-1/+1
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * crypto: digest: mark signature argument as constMarc Kleine-Budde2015-05-262-10/+10
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tlsf malloc: enable 64bit support on 64bit architecturesSascha Hauer2015-05-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | On 64bit architectures TLSF_64BIT should be defined. Decide that depending on the CONFIG_64BIT symbol. When 64bit support is enabled all allocations will be aligned to 8 byte boundaries which is necessary for architectures that do not support unaligned accesses or have a performance penalty for unaligned accesses. Also changes the undefined tlsf_decl to 'static'. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ubiformat: fix argument parserAlexander Richter2015-05-201-1/+1
| | | | | | | | | | | | | | | | - remove duplicate 'y' option - add missing 'Q' option Signed-off-by: Alexander Richter <alexander.richter@atsonline.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Abolish cpu_read* and cpu_write* accessorsMasahiro Yamada2015-05-206-22/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 2e6a88f2101d (add cpu native ordered io accessors) introduced these macros and then commit be57f20cdd7d (Fix big endian MMIO primitives) figured out they are equivalent to __raw_{read,write}*. They turned out unnecessary after all. Anyway, most source files use __raw_read* and __raw_write*. Let's replace a few remaining references and abolish them. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mtd: nand: Fix format specifierSascha Hauer2015-05-151-2/+2
| | | | | | | | | | | | 'count' is of type size_t, so use %zx. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mtd: Fix function prototypeSascha Hauer2015-05-151-1/+1
| | | | | | | | | | | | mtd_op_protect must return int instead of size_t. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mem: Fix memcpy_sz variable typesSascha Hauer2015-05-151-8/+5
| | | | | | | | | | | | | | | | - Drop usage of 'ulong', use unsigned long - remove unnecessary intermediate casting to unsigned long - Use proper u8/u16/u32 types. Fixes 64bit systems on which ulong is 64bit Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i2c: Use correct format specifierSascha Hauer2015-05-151-1/+1
| | | | | | | | | | | | 'count' is of type u16, not size_t. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * xfuncs: remove debugging outputSascha Hauer2015-05-151-4/+0
| | | | | | | | | | | | | | Adding debug statements to this code path does not make much sense since when enabled it will massively spam the console. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * console: use regular malloc for log messagesSascha Hauer2015-05-151-3/+11
| | | | | | | | | | | | | | | | Using xfunctions to allocate log messages is not a good idea. Should we be out of memory the xfunctions will panic which will cause another allocation, so we deadlock the system with no message going out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Documentation: booting linux: improve doc textRobert Schwebel2015-05-151-6/+7
| | | | | | | | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * startup: introduce postenvironment_initcallSascha Hauer2015-05-153-11/+23
| | | | | | | | | | | | | | | | To allow init code that depends on the environment being loaded. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: add static inline no-ops if WD is disabledMarc Kleine-Budde2015-05-151-0/+17
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * fdt: of_unflatten_dtb(): remove left over "root" argument from inline docMarc Kleine-Budde2015-05-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | In commit d384b5639fc1 of: Drop devicetree merge support the signature of of_unflatten_dtb() was changed, but the inline documentation was forgotten to adjust. This patch removes the left over "root" argument from the doc. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips'Sascha Hauer2015-06-096-33/+149
|\ \
| * | update dlink-dir-320_defconfigAntony Pavlov2015-05-131-2/+1
| | | | | | | | | | | | | | | | | | | | | Just 'make defconfig && mv defconfig arch/mips/configs/dlink-dir-320_defconfig'. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: bcm47xx: use PUTC_LL() from common debug_ll_ns16550.h headerAntony Pavlov2015-05-131-9/+5
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: img-ci20_defconfig: enable network stuffAntony Pavlov2015-05-121-4/+7
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: img-ci20: enable dm9000 ethernet controllerAntony Pavlov2015-05-122-0/+16
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: dm9k: fix reset routineAntony Pavlov2015-05-121-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on Linux's commit: commit 09ee9f87d02e779e4fc3f5c29212c733d6d6e349 Author: Michael Abbott <michael.abbott@diamond.ac.uk> Date: Wed Oct 16 11:41:33 2013 +0300 dm9000: Implement full reset of DM9000 network device A Davicom application note for the DM9000 network device recommends performing software reset twice to correctly initialise the device. Without this reset some devices fail to initialise correctly on system startup. N.B. DM9000B on MIPS Creator CI20 board needs additional workaround (see the 'Make all GPIO pins outputs' and 'Power internal PHY' lines). This workaround was taken from this U-boot's commit: commit fbcb7ece0ea1e364180f1cf963e0fa0ce7f6560d Author: Remy Bohmer <linux@bohmer.net> Date: Tue Jun 3 15:26:24 2008 +0200 DM9000: Improve eth_reset() routine According to the application notes of the DM9000 v1.22 chapter 5.2 bullet 2, the reset procedure must be done twice to properly reset the DM9000 by means of software. This errata is not needed anymore for the DM9000A, but it does not bother it. This change has been tested with DM9000A, DM9000E, DM9000EP. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: dm9k: add device tree supportAntony Pavlov2015-05-121-16/+87
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: dm9k: show only one phy on miibusAntony Pavlov2015-05-121-0/+10
| |/ | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/memtest'Sascha Hauer2015-06-091-64/+112
|\ \
| * | common/memtest.c: Distil common error reporting codeAndrey Smirnov2015-05-151-25/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Move all of the common code for error message output into a new function mem_test_report_failure() and convert the rest of the code to use it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | common/memtest.c: Refactor mem_test() into three surbroutinesAndrey Smirnov2015-05-151-37/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original mem_test() was rather long an contained code to perform two distinct operations. This patch moves that code into two separate subroutines and converts mem_test into a high level interface that calls the subroutines. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | common/memtest.c: Do not omit offset of 0 from testsAndrey Smirnov2015-05-151-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ommiting offset 0 from address line tests allows certain corner cases of faults to be undetected. For the "stuck high" case, consider scenario in which all of the tested address lines are stuck high. In original code first data filling loop would execute writing data to a single cell multiple times and second loop would just read data from that cell over and over again. Adding a write to start[0] should prevent this since it would cause the second loop to read incorrect data on its first iteration. For the "stuck low" case, having any of the tested bits of the address shorted would effectively "remap" that memory cell to start[0] in this case excluding start[0] during the verification phase would result in a false positive result. Note that both of the changes are present in Michael Barr's code here: http://www.esacademy.com/en/library/technical-articles-and-documents/miscellaneous/software-based-memory-testing.html and the code in barebox is based on that code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | common/memtest.c: Fix incorrect array boundary checkAndrey Smirnov2015-05-151-2/+1
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mem64'Sascha Hauer2015-06-0910-24/+69
|\ \ \
| * | | mw command: Add 64bit supportSascha Hauer2015-05-281-1/+9
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mm command: Add 64bit supportSascha Hauer2015-05-281-4/+16
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memset command: Add 64bit supportSascha Hauer2015-05-281-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memcpy command: Add 64bit supportSascha Hauer2015-05-281-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memcmp command: Add 64bit supportSascha Hauer2015-05-281-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | md command: Add 64bit supportSascha Hauer2015-05-281-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mem commands: suppport parsing 'q' optionSascha Hauer2015-05-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Add 64bit ('q', for quad) support to mem_parse_options Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fs: Add O_RWSIZE_8Sascha Hauer2015-05-282-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | To support native 64bit accesses in memcpy_sz. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memory_display: Add 64bit supportSascha Hauer2015-05-281-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | Add support for showing hexdumps in 64bit width. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | memory_display: Use consistent typesSascha Hauer2015-05-281-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | memory_display uses three different types for 32bit variables, three types for 16bit variables and three types for 8bit variables. Clean up this mess and use one type per variable width. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mci'Sascha Hauer2015-06-091-63/+78
|\ \ \ \
| * | | | mci: imx-esdhc: Replace printf with dev_*Sascha Hauer2015-05-131-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces printf with dev_* since a struct device_d * is available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mci: imx-esdhc: Check for errors in esdhc_pio_read_writeSascha Hauer2015-05-131-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | esdhc_pio_read_write can fail, so let it return an error code rather than void. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mci: imx-esdhc: Use IS_ENABLED() instead of #ifdefSascha Hauer2015-05-131-55/+69
| | |_|/ | |/| | | | | | | | | | | | | | | | | | To get rid of some #ifdefery. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2015-06-0933-376/+669
|\ \ \ \
| * | | | serial: i.MX: Write settings to a correct registerAndrey Smirnov2015-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix what looks like a copy and past error, where settings for USR1 register were being written to USR2. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | imx6: lowlevel_init: Fix workaround for new i.MX6s chipsMarkus Pargmann2015-05-111-23/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This errata workaround was introduced for i.MX6Q, i.MX6D and i.MX6SL. Old revisions of i.MX6s chips had no problems with the PFD resets. In a newer i.MX6s revision I had issues with this code when booting in internal boot mode from NAND or in serial downloader mode. FUSE mode worked fine although it jumped directly to serial downloader mode. This patch executes the PFD workaround only for i.MX6Q and i.MX6D which fixes the issues I saw. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | bootstrap: Warn if image size in BB header is zeroAndrey Smirnov2015-05-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>