9
0
Fork 0
Commit Graph

13037 Commits

Author SHA1 Message Date
Sascha Hauer 021dda6744 Merge branch 'for-next/cfi-flash' 2015-07-03 08:37:29 +02:00
Sascha Hauer 907418af60 Merge branch 'for-next/blspec' 2015-07-03 08:37:29 +02:00
Sascha Hauer 13830db360 Merge branch 'for-next/bbu' 2015-07-03 08:37:29 +02:00
Sascha Hauer 910306c891 Merge branch 'for-next/am335x' 2015-07-03 08:37:29 +02:00
Sascha Hauer 4db5b72d0c usb: musb: Use proper timeout loop
Poll for a well defined time in musb_init. The current counting loop
takes too short for some devices. Tested on OMAP3 with a rather slowish
memory stick.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-07-03 07:06:28 +02:00
Sascha Hauer 69be27c14b Release v2015.07.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-07-03 06:21:31 +02:00
Sascha Hauer a280a92f46 ARM: beagleboard: register update handlers for NAND
To make updating barebox to nand easy. To bootstrap from a SD
card:

barebox_update -t nand-xload /boot/MLO
barebox_update -t nand /boot/barebox.bin

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-07-03 06:20:27 +02:00
Sascha Hauer b8b0a7f199 ARM: start: Fix code reordering problem
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>
2015-07-02 08:20:17 +02:00
Sascha Hauer 6839250041 ARM: AM335x: replace specific barebox update handler with generic one
The AM335x SPI NOR barebox update handlers only writes a file to a device,
so use the generic handler for this purpose.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-07-01 09:10:59 +02:00
Sascha Hauer 74ac4489cf bbu: Add a standard file-to-device-copy handler
The most standard update handler will simply copy a file to a device.
This can be shared across several users, so add a standard handler for
this operation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-07-01 09:04:22 +02:00
Fabio Estevam fc6cb7aeaf mx53-qsb: Fix boot hang during reboot stress test
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>
2015-07-01 07:09:28 +02:00
Sascha Hauer 5f51ca71f6 mtd: m25p80: Fix Kconfig dependencies
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>
2015-06-29 07:13:23 +02:00
Teresa Remmet dfb895cc0d ARM: dts: am33xx-strip: Strip more unused nodes
There are still some nodes not used in barebox. Removed them.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-29 06:51:05 +02:00
Teresa Remmet 6c13f8c86b ARM: dts: am33xx-strip: Keep devices we can boot from
As we can boot from mmc2 don't strip it.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-29 06:51:05 +02:00
Teresa Remmet d3e39b7e2c boards: phytec-som-am335x: Get ready for EMMC boot
Select correct instance when booting from a mmc interface.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-29 06:51:05 +02:00
Lucas Stach b22d27436b PCI: remove bogus host bridge setup skipping
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>
2015-06-25 08:37:42 +02:00
Lucas Stach 0fee6f111f PCI: rework BAR size calculation
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>
2015-06-25 08:37:42 +02:00
Sascha Hauer 8dee3145bf bmp support: Use unaligned accessors
Some fields in the bmp header are unaligned. Use unaligned accessor
functions to acces them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-23 17:00:39 +02:00
Sascha Hauer 636d384ed4 mtd: cfi-flash: Add mtd concat support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-23 16:59:54 +02:00
Sascha Hauer ce72d46f42 mtd: Add mtd concat support
The mtd concat layer supports concatenating several MTD devices
into a single one. This is nearly as-is from the corresponding
Kernel code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-23 16:59:54 +02:00
Sascha Hauer 54d78652c1 devinfo: fix return value
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>
2015-06-23 08:38:31 +02:00
Sascha Hauer 713285ca19 mtd: cfi-flash: remove dead code
CFG_FLASH_PROTECTION is never defined, remove the code. Also
remove code inside #if 0.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 10:38:31 +02:00
Sascha Hauer 9746f02cae mtd: cfi-flash: Coding style cleanup
- use consistent variable types (drop uchar, ushort and friends)
- remove whitespace between functions and opening brace
- Add some blank lines to rectify code
- drop 'rc' and 'retcode' and use 'ret' consistently
- Do not put variable assignment into if()
- drop unncessary braces

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 10:38:31 +02:00
Sascha Hauer 6be93f2fce mtd: cfi-flash: use unaligned accessor functions
Some members in struct cfi_qry are unaligned. Use get_unaligned_*
to access them. Fixes unaligned aborts on busses which don't support
unaligned accesses.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 09:27:59 +02:00
Sascha Hauer 9c48ac000b mtd: cfi-flash: turn some messages into vdbg
Some messages produce a lot of log spam. Turn them into
dev_vdbg to make some more important messages more visible.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 09:27:59 +02:00
Sascha Hauer 81d8fa83b4 mtd: cfi-flash: return 0 for success
Use zero as success return code and negative standard error codes
consistently in the driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 09:26:52 +02:00
Sascha Hauer 0203b33d14 mtd: cfi-flash: make flash_detect_width more readable
Use variables instead of long defines to get the loops into a single
line. Also use goto to move the deeply indented code more to the left.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 09:17:16 +02:00
Sascha Hauer 20a096120a mtd: cfi-flash: remove unnecessary ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 09:17:16 +02:00
Sascha Hauer 25b42d1fe7 mtd: cfi-flash: replace ifdef with IS_ENABLED
TO get rid of some ifdefs. While at it add the vendor code of
the unsupported vendor to the error message.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 09:16:40 +02:00
Sascha Hauer 2ec3921248 mtd: cfi-flash: statically initialize instead of memset
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 08:59:59 +02:00
Sascha Hauer bbc89b5754 mtd: cfi-flash: save indention level
Bail out early in flash_get_size() and save an indention level.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 08:58:56 +02:00
Sascha Hauer 1099bd178e mtd: cfi-flash: We can print longlongs
printf supports printing longlongs, so drop print_longlong.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-22 08:58:15 +02:00
Hubert Feurstein cd09bf8f51 login: fix broken login command
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>
2015-06-18 09:44:37 +02:00
Sascha Hauer 0542ec647e Documentation: imx: Fix underline length
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-18 09:34:22 +02:00
Sascha Hauer e544ffd123 scripts: Add mxs-usb-loader to .gitignore
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-18 07:59:40 +02:00
Sascha Hauer 5e55dec814 blspec: Automatically attach UBI devices
When blspec_scan_cdev finds an UBI device then attach it. This
allows us to boot blspec entries found on the UBIFS images inside
UBI volumes by pointing to the corresponding mtd partition.
With this we can do 'boot nand0.root' or even 'boot=nand0' on the
commandline.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-17 11:39:46 +02:00
Sascha Hauer cc3927d20a blspec: Add missing prototype for blspec_scan_device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-17 11:39:46 +02:00
Marc Kleine-Budde a3a17dfd5a state: Documentation: fix dts code example
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>
2015-06-17 07:51:43 +02:00
Marc Kleine-Budde df1e1f47cb state: Documentation: the backend properties are not optional (anymore)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-17 07:50:46 +02:00
Marc Kleine-Budde f506777003 state: Documentation: add newly implemented "uint8" types.
Cc: Jan Luebbe <jluebbe@debian.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-17 07:50:30 +02:00
Wadim Egorov cb50b4ed51 scripts/omap_signGP: Fix image size in GP header
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>
2015-06-17 07:46:48 +02:00
Juergen Borleis cfadaca395 Documentation: fix typo
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>
2015-06-16 15:59:31 +02:00
Renaud Barbier c83950aa03 memtest: skip memory region smaller than one page
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>
2015-06-16 15:59:04 +02:00
Sascha Hauer dae7498d2c clk: of: fix clk_of_table generation
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>
2015-06-11 07:46:36 +02:00
Wadim Egorov 350b4c37ef image: am335x: Generate SPI MLO images
Generate *.spi.img files for SPI loading on AM335x.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-10 06:24:11 +02:00
Sascha Hauer e349701487 Merge branch 'for-next/state' 2015-06-09 09:26:44 +02:00
Sascha Hauer 3a32e7acd4 Merge branch 'for-next/spi-nor' 2015-06-09 09:26:44 +02:00
Sascha Hauer 61c7946448 Merge branch 'for-next/socfpga' 2015-06-09 09:26:44 +02:00
Sascha Hauer 03510ac4fa Merge branch 'for-next/posix_types' 2015-06-09 09:26:44 +02:00
Sascha Hauer 7a429bfb3b Merge branch 'for-next/misc' 2015-06-09 09:26:44 +02:00