9
0
Fork 0
Commit Graph

14000 Commits

Author SHA1 Message Date
Sascha Hauer 0f1c0c4d30 regmap: Add missing prototype for regmap_exit()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-12 15:36:54 +01:00
Sascha Hauer 4f087defbc commands: of_dump: Add description for -n option
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-12 09:46:02 +01:00
Sascha Hauer f1a2d54cba scripts: make __init__.py nonempty
Otherwise they get removed by make distclean.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-12 08:44:30 +01:00
Sascha Hauer 6656c5ffe3 blspec: ignore lines beginning with '#'
According to the bootloader spec these should be treated as comments.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-11 16:00:34 +01:00
Sascha Hauer 0aae1dc98c blspec: Do not crash on config files without newline on last line
When the last line in a config file has no newline then 'next' is NULL
on the the loop iteration. Check that before derefencing 'next'.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-11 16:00:27 +01:00
Lucas Stach 0fe011b6ff ratp-console: select CRC16 and POLLER, depend on CONSOLE_FULL
RATP console selects RATP, which in turn selects CRC16, but those
chains don't work in Kconfig, so select CRC16 also from the
console option.

Also fix build errors by depending on CONSOLE_FULL and selecting
POLLER.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-11 13:56:00 +01:00
Lucas Stach 9a8563b94f ramoops: allow to build without OFTREE support
Ramoops may be useful even without oftree support, as kernels
booted without a DT may have other means to reserve the
ramoops memory.

Fixes:
In function `ramoops_probe':
undefined reference to `of_add_reserve_entry'

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-11 13:56:00 +01:00
Sascha Hauer 46989182d5 bootm: Fix resource_size_t format specifier
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-11 11:25:32 +01:00
Sascha Hauer 46bb3a4d84 driver: Fix unregister device after device probe failure
When a device probe fails the device is removed from the active list.
If then the device is unregistered afterwards it is removed from the
active list again resulting in a crash. To fix this initialize the
devices active list entry when removing it from the active list.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-08 11:31:02 +01:00
Antony Pavlov c976b06e16 drivers: video: drop unused of_get_display_timing()
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-08 08:30:02 +01:00
Antony Pavlov 132e226920 drivers: video: fb: make locally used fb_set_shadowfb() static
The patch fixes this compiler's warning:

    drivers/video/fb.c:233:5: warning: no previous prototype for
    'fb_set_shadowfb' [-Wmissing-prototypes]
     int fb_set_shadowfb(struct param_d *p, void *priv)
         ^

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-08 08:28:39 +01:00
Sascha Hauer 7482ab4de1 Merge branch 'for-next/regmap' 2016-02-08 08:27:03 +01:00
Sascha Hauer c073534880 Merge branch 'for-next/ratp' 2016-02-08 08:27:01 +01:00
Sascha Hauer a22f59c178 Merge branch 'for-next/net' 2016-02-08 08:26:45 +01:00
Sascha Hauer 1379a5ef1e Merge branch 'for-next/misc' 2016-02-08 08:26:43 +01:00
Sascha Hauer 79606b51ed Merge branch 'for-next/linux-headers' 2016-02-08 08:26:36 +01:00
Sascha Hauer 05261801e9 Merge branch 'for-next/input' 2016-02-08 08:26:35 +01:00
Sascha Hauer 6435fb09d8 Merge branch 'for-next/hab' 2016-02-08 08:26:35 +01:00
Sascha Hauer 129fb7d893 Merge branch 'for-next/fit' 2016-02-08 08:26:35 +01:00
Sascha Hauer e229ce086c Merge branch 'for-next/dts' 2016-02-08 08:26:32 +01:00
Sascha Hauer 6f04ca2d07 Merge branch 'for-next/arm' 2016-02-08 08:26:31 +01:00
Sascha Hauer 2608e27f6e Release v2016.02.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-08 08:10:15 +01:00
Andrey Smirnov b09ee0358c spi-nor: Port erase timeout fix from Linux
Large SPI-NOR (>2MB) chips reuire more than 40 seconds to perform
all-chip erase. This patch adapts
09b6a377687b885565339e60bc62566433a0406f from Linux kernel, which
implements simple heuristics in order to calculate appropriate wait
time (see orignal commit's description for more details of the fix)

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-08 08:07:08 +01:00
Juergen Borleis b5778f9773 nfs: forward filesystem options to the kernel command line
Using NFS in conjunction with boot spec and the feature to let Barebox
auto generate a kernel command line must keep the options the NFS filesystem
was mounted in Barebox. This patch extends the kernel command line parameter
on demand if something different than the defaults are used.

The command:

barebox:/ boot nfs://myhost//root

expands to the kernel command line:

nfsroot=myhost:/root,v3,tcp

while the command:

barebox:/ boot nfs://myhost:2049//root

expands now to the kernel command line:

nfsroot=myhost:/root,v3,tcp,mountport=2049,port=2049

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-08 08:02:33 +01:00
Sascha Hauer 1db47f7616 i.MX habv4: Fix RVT address for newer SoCs
Newer i.MX SoCs have the RVT at 0x98, not at 0x94 any more.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:51:42 +01:00
Sascha Hauer 2ee6bb3504 ARM: i.MX: ocotp: Switch to regmap support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:13:29 +01:00
Sascha Hauer 09db5f43f9 ARM: i.MX: ocotp: Fix error bit handling
Instead of returning an error when a locked region is read, fill
the result with 0xbadabada to indicate a locked region is read.
This way a md -s /dev/imx-ocotp does not abort when it encounters
locked regions.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:13:28 +01:00
Sascha Hauer 01cf83ba9c ARM: i.MX: ocotp: make priv the first argument of functions
Throughout our codebase the private context pointer is the first
argument to a function. Do this for the ocotp driver aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:13:28 +01:00
Sascha Hauer 07d45903e3 ARM: i.MX: ocotp: Explicitly access control register
Even when the control register has offset 0x0 it's still nice
to use a register define for it. Accessing priv->base directly
just looks wrong.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:13:28 +01:00
Sascha Hauer a17adf3369 ARM: i.MX: ocotp: Fix fusebox size
All i.MX6 SoCs except the i.MX6SL have 4kbit fuses. The i.MX6SL has
2kbit fuses. Fix the device size accordingly.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:13:28 +01:00
Sascha Hauer 9064a935cd ARM: i.MX: iim: Switch to regmap support
To provide consumers easier access to the IIM.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 15:13:28 +01:00
Sascha Hauer 77bfff1cbe mfd: mc13xxx: Switch to regmap support
This moves the mc13xxx driver over to regmap.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 14:32:16 +01:00
Sascha Hauer 7a53e162de Add initial regmap support
This adds initial regmap support. Function prototypes are from
the Kernel, the implemention is mostly rewritten. Currently the
regmap support is limited to the bare minimum to get started.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-05 14:32:16 +01:00
Sascha Hauer 48d74b1ca4 imx: hab: Make hab status functions SoC specific
The HABv4 functions need access a part of the ROM which is
located in the zero page. This must be done early, before the
MMU has been configured and the zero page has been set to faulting.
The HAB functions currently use cpu_is_imxxy(). At the stage where
HAB is called the i.MX CPU type variable is not yet initialized,
so this code only works when only one i.MX type is enabled and
cpu_is_imxxy() are compile time constants.

To fix HAB support when more than one i.MX type is enabled make the
HAB status function SoC specific so that we can drop the use of
cpu_is_imxxy().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 14:38:33 +01:00
Sascha Hauer 610cc35c1e scripts: imx-usb-loader: Do not zero out boot_data_ptr
This shouldn't be necessary. So far it didn't hurt either, but now
this invalidates the signature of the image, so keep the image
unmodified.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 14:38:33 +01:00
Sascha Hauer efd400504c images: imx: Add targets for signed images and signed usb images
Add .simximg target for signed images and .usimximg for signed
images suitable for USB upload

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 14:38:33 +01:00
Sascha Hauer 796694c0b2 Make: i.MX: Allow to pass config file to cmd_imx_image
Pass the config file to cmd_imx_image as arguments to make it more
flexible. Also add the possibility for another arg containing additional
options.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 14:38:29 +01:00
Sascha Hauer 6c57aca60d ubifs: Fix reading holes in files
When a whole block of 4KiB in an ubifs file is zero then the block is
not stored in the filesystem. read_block() returns -ENOENT in this case,
so this return value must be treated as success.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 12:22:41 +01:00
Ulrich Ölmann a6f73ec52f docs: fix typos
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 09:32:32 +01:00
Steffen Trumtrar c07b5e5964 ARM: i.MX25: fixup broken DryIce GPR
Fixup the DryIce Non-Non-Volatile-Memory GPR register.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:45:16 +01:00
Sascha Hauer 0ff58575c9 dts: update to v4.5-rc1
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:40:36 +01:00
Sascha Hauer a0da52f83c dts: update to v4.4
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:40:36 +01:00
Sascha Hauer b9b0a2b095 dts: update to v4.4-rc8
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:40:35 +01:00
Sascha Hauer 3f6f178bb1 dts: update to v4.4-rc7
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:40:35 +01:00
Sascha Hauer 91eaef87b5 dts: update to v4.4-rc6
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:40:35 +01:00
Sascha Hauer d597afe7fb dts: update to v4.4-rc5
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:40:35 +01:00
Sascha Hauer 73b35531b7 ARM: i.MX53: CCXMX53: Move device tree out of dts/
The dts files accidently have been added to dts/. Move them to a proper
place.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:39:47 +01:00
Sascha Hauer 71e399f6f2 scripts: imx-image: Allow to create HAB signed images suitable for USB upload
For USB upload we must execute the DCD table manually and
invalidate the DCD table in the uploaded image afterwards
to prevent the ROM from executing the DCD data again. Doing this
changes the image and thus also invalidates the signature. To
make HAB signed images suitable for USB upload possible we add an
option to create HAB signed images suitable for USB upload. With
this option the image is created like this:

- The image is created like usual, but with already invalidated DCD
  data (DCD length is set to zero)
- This image is then signed using the CST
- After this the DCD data is made valid (Set DCD length to the real
  length)

imx-usb-loader now finds valid DCD data, executes it and by invalidating
the DCD data it restores the state the image had during signing.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:29:17 +01:00
Sascha Hauer 912f66935a scripts: imx-image: Factor out a read_file function
The same code will be used a second time in a followup patch, so
factor out a common function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:29:17 +01:00
Sascha Hauer 7dede160a8 scripts: imx-usb-loader: Use dcd len to invalidate dcd data
We invalidate the dcd data in the uploaded image since we already
processed it manually. To do so we have set the dcd pointer to 0.
Doing it this way prevents the ROM from executing the HAB code in
debug mode. Use the dcd length instead to invalidate the dcd data.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-02-04 08:29:17 +01:00