| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
struct variable_type
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
| |
The Linux driver fails on pinctrls that specify 0 as config, so
consequently flag this as error.
|
|
|
|
|
| |
When off_t is a bigger data type than u32 the check (conf_reg ==
(uint32_t)-1) never triggers.
|
|
|
|
|
|
|
|
| |
Since commit 14617d (barebox-state: fix default, so that it works without
an explicid alias node) aliases no longer work at all. This is because "/state"
cannot be interpreted as an alias. Fix this.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
| |
state_find_type can fail in which case it returns NULL. Check the return
value before dereferencing the pointer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
| |
When a enum32 state variable node does not have a "names" property bail
out gracefully instead of crashing.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
If nodepath can directly be translated to a device, the device can also
be a eeprom. Set default size to 0. The real size can be got from the
path.
Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
improve fixed string support, trailing zero is not needed.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
barebox functions
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
src/dtblint.c: In function ‘parse_function’:
src/dtblint.c:1153:12: warning: variable ‘input_val’ set but not used [-Wunused-but-set-variable]
uint32_t input_val;
^
src/dtblint.c:1152:12: warning: variable ‘input_reg’ set but not used [-Wunused-but-set-variable]
uint32_t input_reg;
^
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
src/dtblint.c: At top level:
./src/dt/common.h:324:12: warning: ‘of_register_fixup’ defined but not used [-Wunused-function]
static int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context)
^
Fixes: f2243552be90 ("barebox-state: import from barebox")
|
| |
|
|
|
|
|
| |
Currently it checks iomux nodes on i.MX25 only, but adding other i.MX SoCs
is just a matter of adding the corresponding table
|
|
|
|
|
|
|
|
|
| |
This fixes:
./src/dt/common.h: In function ‘read_file’:
./src/dt/common.h:177:6: warning: unused variable ‘ret’ [-Wunused-variable]
int ret;
^
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
...othweise the shell variable may start with /.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
...not the user supplied name, which may be an of_path and contain a /.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
| |
Reported-by: From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
| |
Reported-by: From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
| |
On Linux the ease and write size have to be aligned. This patch uses step_size
(which is already aligned to erase block size) during erase, aligns full_size
to writesize and uses it while writing.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
| |
- convert "." in variable names to "_"
- use supplied state name instead of hardcoded "STATE_" as prefix
- let OPT_DUMP_SHELL start after all chars
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
| |
This patch changes the -i, --init parameter to initialize the state storage and
_not_ load the contents. The original behaviour was to load and not fail on
error.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
"state"
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
| |
Which is faster than walking over the filesystem representation of the device
tree in /proc or /sys.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/libdt.c:97:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(data);
^~~~
src/libdt.c:2241:5: warning: data argument not used by format string [-Wformat-extra-args]
node->full_name);
^
src/libdt.c:2248:54: warning: more '%' conversions than data arguments [-Wformat]
fprintf(stderr, "%s: no 'label' property found in %s\n", partition_node->full_name);
~^
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
| |
When asked to initialize the state with the --init option
actually store the state, even when no variable is modified.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
We used to describe the backend with a combination of a nodepath
and partname:<name>. This is cumbersome and error prone to parse.
Instead, describe the backend with a phandle that directly points
to the partition. The resulting code is easier to read and the
devicetrees are easier to understand. Tested with both mtd and
EEPROM device, both with partitions with an offset != 0.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
| |
node->phandle was not set when /proc/device-tree was read.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|