param: Add dev member to struct param_d

This will make it unnecessary to pass the dev pointer around later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
param: refactor __dev_add_param

Let __dev_add_param take a previously allocated struct param_d. This
helps when later other users wish to embed a struct param_d in a bigger
struct.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Makefile: Create empty <config.h> if this header file is not needed by board

Patch creates empty <config.h> if this header is not needed by board.
This will allow to remove many empty config.h files from boards.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Remove unused config.h

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
ARM/MXS: add more ROM code related documentation

Commit 17176c2e2bba606190d9ae51943acb5701063573 adds a test of a new RTC
register flag to distinguish a system reset and a wake up event. Shame on me,
I have forgotten to define the newly used flag yet.

While already here, I also try to document the other flags the RTC provides.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
commands: i2c: change 0X to 0x

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
highbank: switch to defaultenv-2

this will allow to have boot sequence and later to use PXE

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
param: Add integer and boolean parameter helpers

This adds convenience functions for directly registering integers
and bools as device parameter. This way driver no longer have to
fiddle with string handling. The format used to print the parameter
is passed to the functions to be able to print parameters in a
flexible way.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
nand_base: detect more ONFI flash

if the flash has a known type, the ONFI detection won't occur
and thus we may not detect the right parameters.
By testing both namd and pagesize, as done in the kernel, we
can detect ONFI flash with know IDs.

As an example on an i.MX53 board :
- without the patch :
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3
(Micron NAND 1GiB 3,3V 8-bit), page size: 4096, OOB size: 128

- with the patch :
ONFI flash detected ... ONFI param page 0 valid
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3
(Micron MT29F8G08ABACAWP), page size: 4096, OOB size: 224

in the first case the OOB size is wrong.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
mtd: update NAND manufacturer names from the kernel

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
OMAP4: add command to select next boot device priority

On OMAP4 SoC there is a SAR memory region (Save & Rescue)
where the ROM code reads the device to boot from.
This patch adds a way to set this.

Signed-off-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
param: Add ip address convenience function

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
net: ksz8864: Use dev_add_param_bool for enable parameter

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
net: store ethernet device parameters in device

Rather than storing the parameters globally and trying to keep them
in sync with the device parameters, store the parameters in the ethernet
device directly. Also, update to dev_add_param_ip().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
netconsole: use dev_add_param_* helpers

For shorter code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
param: remove now unused dev_[gs]et_param_ip

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
treewide: Use dev_add_param_int_ro where possible

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
mci: Use dev_add_param_int for probe parameter

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
ata: Use dev_add_param_bool for probe parameter

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
fb: Use dev_add_param_bool for enable parameter

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>