summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2015.07.0v2015.07.0Sascha Hauer2015-07-031-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: start: Fix code reordering problemSascha Hauer2015-07-021-0/+2
| | | | | | | | | | | This adds a barrier after setup_c(). This is necessary because otherwise some global variable assignments may be reordered by the compiler to be executed before setup_c which cannot work. This was observed when doing other unrelated changes to the start function, it seems in current mainline state the compiler does not actually reorder the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mx53-qsb: Fix boot hang during reboot stress testFabio Estevam2015-07-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the DDR init sequence the same way as done by aee0013e53b339a5 from U-boot in order to prevent the boot hang under reboot stress test. Quoting this commit log: "Currently by running the following test: => setenv bootcmd reset => save => reset , we observe a hang after approximately 20-30 minutes of stress reboot test. Investigation of this issue revealed that when a single DDR chip select is used, the hang does not happen. It only happens when the two chip selects are active. MX53 reference manual states at "28.6.2 Memory ZQ calibration sequence": "The controller must keep the memory lines quiet (except for CK) for the ZQ calibration time as defined in the Jedec (512 cycles for ZQCL after reset, 256 for other ZQCL and 64 for ZQCS)." According to the SDE_0 and SDE_1 bit descriptions from register ESDCTL_ESDCTL: "Writing 1 to SDE0 or SDE1 will initiate power up delays as JEDEC defines. Power up delays are a function of the configured memory type (DDR2/DDR3/LPDDR2)" So make sure to activate one chip select at time (CS0 first and then CS1 later), so that the required JEDEC delay is respected for each chip select. With this change applied the board has gone through three days of reboot stress test without any hang." Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: m25p80: Fix Kconfig dependenciesSascha Hauer2015-06-291-1/+2
| | | | | | | | | | The m25p80 driver now depends on MTD_SPI_NOR which is disabled in all defconfigs, so this effectively disables the m25p80 driver in all defconfigs. Fix this by selecting MTD_SPI_NOR which is library code without further dependencies. Also let m25p80 depend on SPI because it needs the SPI code and won't link without it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCI: remove bogus host bridge setup skippingLucas Stach2015-06-251-5/+0
| | | | | | | | | | Apparently this was here to fix issues with some QEMU version, but hasn't worked in the intended way for a long time. The probe code should be mature enough by now, so this workaround isn't needed anymore. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCI: rework BAR size calculationLucas Stach2015-06-251-5/+34
| | | | | | | | | The probe code now does a much better job at detecting bad BARs. Also make sure to preserve any previous content of the BAR registers if we don't relocate them. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bmp support: Use unaligned accessorsSascha Hauer2015-06-231-5/+6
| | | | | | | Some fields in the bmp header are unaligned. Use unaligned accessor functions to acces them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devinfo: fix return valueSascha Hauer2015-06-231-5/+2
| | | | | | | | | | | | | | | devinfo on a non existing device prints: no such device: blah devinfo: Operation not permitted The second message comes because devinfo returns -1 which is -EPERM. Just return -ENODEV which will print: devinfo: No such device Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* login: fix broken login commandHubert Feurstein2015-06-181-1/+1
| | | | | | | | | | It was possible to login with ctrl-c or an empty password. This bug was introduced by the recent digest changes in common/password.c (e49a47fb). The function check_passwd returns now also negative error codes which were not correctly handled in do_login. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Documentation: imx: Fix underline lengthSascha Hauer2015-06-181-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: Add mxs-usb-loader to .gitignoreSascha Hauer2015-06-181-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* state: Documentation: fix dts code exampleMarc Kleine-Budde2015-06-171-3/+3
| | | | | | | It's "uint32" not "u32" and we use integers for the "enum32" defaults. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* state: Documentation: the backend properties are not optional (anymore)Marc Kleine-Budde2015-06-171-3/+0
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* state: Documentation: add newly implemented "uint8" types.Marc Kleine-Budde2015-06-171-5/+5
| | | | | | Cc: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/omap_signGP: Fix image size in GP headerWadim Egorov2015-06-171-0/+7
| | | | | | | | | | | | The size field in the GP header has to include its own size. This can be easily misread in the TRM. Sometimes, when the gp_header size is not included, the ROM code will not copy the complete MLO into the SRAM. This happens when the MLO file size is 98823 bytes (and the value of GP header size field is 98303 bytes). Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Documentation: fix typoJuergen Borleis2015-06-161-1/+1
| | | | | | | This change enables Sphinx to resolve the reference. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* memtest: skip memory region smaller than one pageRenaud Barbier2015-06-161-4/+8
| | | | | | | | | If the size between memory regions is smaller than one page, the size is rounded down to 0. This results in a region request failure. This commit skips the memory region whose size is smaller than a page. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: of: fix clk_of_table generationSascha Hauer2015-06-112-2/+3
| | | | | | | | | | | | | | We used to collect all sections beginning with __clk_of_table_ in a single section in the linker using KEEP(*(.__clk_of_table_*)). That the sentinel entry ended up as the last entry was pure luck, but not always the case. Instead of putting all entries in different sections we now put all entries in the same section. Only the sentinel entry gets its own section and is collected by the linker separately. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reported-by: Andreas Willig <andreas.willig@rafi.de> Tested-by: Andreas Willig <andreas.willig@rafi.de>
* Merge branch 'for-next/state'Sascha Hauer2015-06-098-117/+393
|\
| * state: add support for uint8 variablesJan Luebbe2015-06-031-0/+33
| | | | | | | | | | Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: add some more error messagesJan Luebbe2015-06-031-5/+14
| | | | | | | | | | | | | | This helps with finding out why the state cannot be loaded correctly. Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: update documentation of struct state_backend_raw membersMarc Kleine-Budde2015-05-261-2/+2
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: add sanity check of data_len during loadMarc Kleine-Budde2015-05-261-0/+11
| | | | | | | | | | | | | | | | The length of the data must fit into the remaining available space until the next copy of the data. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: rename backend_raw_write_one() -> backend_raw_save_one()Marc Kleine-Budde2015-05-261-5/+5
| | | | | | | | | | | | | | | | Use a consistent naming scheme: backend_raw_save_one() is called from backend_raw_save(). Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: factor out state_backend_raw_file_get_size() into ↵Marc Kleine-Budde2015-05-261-9/+64
| | | | | | | | | | | | | | | | | | | | separate function This patch factors out the state_backend_raw_file_get_size() into a separate function and adds some ifdefs to make this code work under Linux aswell. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: properly align write and erase sizeMarc Kleine-Budde2015-05-261-7/+7
| | | | | | | | | | | | | | | | | | | | This patch makes it easier to share the code with linux, on Linux the ease and write size have to be aligned. Use stride (which is already aligned to erase block size) during erase, align size_full to writesize and use it while writing. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: rename struct state_backend_raw::step -> strideMarc Kleine-Budde2015-05-261-8/+8
| | | | | | | | | | | | | | | | This patch renames the member "step" of the struct state_backend_raw to "stride" and tries to clarifies its meaning. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend_raw: remove hard coded limit of two copiesMarc Kleine-Budde2015-05-261-5/+12
| | | | | | | | | | | | | | | | | | Although there is the define RAW_BACKEND_COPIES, the state_backend_raw_save() function silently assumes exactly two copies. This patch removes that assumtion by looping over all copies, but saving the one we're read from at the end. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: mtd_get_meminfo: make usage of mtd's meminfo compatible to linuxMarc Kleine-Budde2015-05-261-2/+2
| | | | | | | | | | | | | | This patch makes it possible to share the code with linux. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: mtd_get_meminfo: open path readonly instead of readwriteMarc Kleine-Budde2015-05-261-1/+1
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm/crypto: add generated sha256-core.S to gitignoreMarc Kleine-Budde2015-05-261-0/+1
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * habv4: habv4_get_status(): fix warning with no-op static inline functionMarc Kleine-Budde2015-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the following warning: CC arch/arm/boards/foo/board.o In file included from arch/arm/boards/foo/board.c:22:0: include/habv4.h:24:19: warning: function declaration isn't a prototype [-Wstrict-prototypes] static inline int habv4_get_status() ^ Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: add fixup to copy state from barebox to kernel device treeMarc Kleine-Budde2015-05-261-7/+100
| | | | | | | | | | | | | | | | This patch registers a DT fixup, that copies the state nodes from the active to the kernel DT. The backend reference will be a phandles. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: add a function to remove an of_fixupUwe Kleine-König2015-05-182-0/+20
| | | | | | | | | | | | | | | | | | This function is needed when a device that already registered a fixup in the probe routine fails later to probe completely. Without unregistering the fixup the function might later be called with invalid data. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: backend: support phandle and of_path referencesMarc Kleine-Budde2015-05-153-20/+68
| | | | | | | | | | | | | | | | | | | | | | This patch improves the backend property, it can be either a phandle or a of_path. During probe() of the state driver the backend property is dereferenced and the resulting of_path is saved in the state context. In a later patch it will be used to generate a phandle reference to the backend during DT fixup. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: add functionality to export state descriptionMarc Kleine-Budde2015-05-151-23/+38
| | | | | | | | | | | | | | | | | | | | This patch adds the functionality to export the description of the state, but not the contents of the variables to a DT node. This will be used in a later patch to "copy" the state description to the kernel device tree during DT fixup. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: make state_release() non staticMarc Kleine-Budde2015-05-152-1/+2
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: print proper error message, if reg property is not foundMarc Kleine-Budde2015-05-151-1/+4
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: print name of property of size mismatch is detectedMarc Kleine-Budde2015-05-151-2/+2
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: state_new_from_fdt(): remove unused functionMarc Kleine-Budde2015-05-152-22/+0
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: state_uint32_create: use %u to print unsigned variableMarc Kleine-Budde2015-05-151-1/+1
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * state: documentation: add anchor so that state can be referenced laterMarc Kleine-Budde2015-05-151-1/+3
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/spi-nor'Sascha Hauer2015-06-0919-841/+2953
|\ \
| * | mtd: m25p80: use the SPI nor frameworkSteffen Trumtrar2015-05-292-835/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the spi-nor framework for the m25p80 driver to de-duplicate the code base and follow along with the linux kernel version, so bugfixes or features can be easier integrated. Based on the Linux v4.1-rc3 version of m25p80.c. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: socfpga: xload: support qspi bootsourceSteffen Trumtrar2015-05-294-6/+115
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: socfpga: sockit: add qspi flashSteffen Trumtrar2015-05-291-0/+20
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: socfpga: socrates: add qspi flashSteffen Trumtrar2015-05-291-0/+20
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: socfpga: socdk add qspi flashSteffen Trumtrar2015-05-291-0/+20
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: socfpga: add qspi nodeSteffen Trumtrar2015-05-291-0/+14
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: spi-nor: add cadence quadspi driverSteffen Trumtrar2015-05-294-0/+1230
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>