summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-06-29 09:00:56 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-29 09:00:56 +0200
commitbd0e1e5dde37cb927ad9e5d225d55d0cb636a53d (patch)
tree52390373b797d525e283ada7609b22bdc4fe25d2 /include
parent8828e1226981b6a31b12a643768cac63fae3576e (diff)
parent370f346bca176a93d034af2c0021b5da9a6101ad (diff)
downloadbarebox-bd0e1e5dde37cb927ad9e5d225d55d0cb636a53d.tar.gz
barebox-bd0e1e5dde37cb927ad9e5d225d55d0cb636a53d.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'include')
-rw-r--r--include/block.h9
-rw-r--r--include/environment.h7
-rw-r--r--include/globalvar.h2
-rw-r--r--include/mci.h2
-rw-r--r--include/of.h16
-rw-r--r--include/reset_source.h7
-rw-r--r--include/soc/imx8m/ddr.h1
7 files changed, 35 insertions, 9 deletions
diff --git a/include/block.h b/include/block.h
index d3a154bf73..1fb40e942f 100644
--- a/include/block.h
+++ b/include/block.h
@@ -49,4 +49,13 @@ static inline int block_flush(struct block_device *blk)
return cdev_flush(&blk->cdev);
}
+#ifdef CONFIG_BLOCK
+struct block_device *cdev_get_block_device(struct cdev *cdev);
+#else
+static inline struct block_device *cdev_get_block_device(struct cdev *cdev)
+{
+ return NULL;
+}
+#endif
+
#endif /* __BLOCK_H */
diff --git a/include/environment.h b/include/environment.h
index 19e522cfb6..1557c3a1d7 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -32,6 +32,7 @@ char *var_name(struct variable_d *);
#ifdef CONFIG_ENVIRONMENT_VARIABLES
const char *getenv(const char *);
int setenv(const char *, const char *);
+int pr_setenv(const char *, const char *fmt, ...) __attribute__ ((format(__printf__, 2, 3)));
void export_env_ull(const char *name, unsigned long long val);
int getenv_ull(const char *name, unsigned long long *val);
int getenv_ul(const char *name, unsigned long *val);
@@ -49,6 +50,12 @@ static inline int setenv(const char *var, const char *val)
return 0;
}
+static inline __attribute__ ((format(__printf__, 2, 3))) int pr_setenv(
+ const char *var, const char *fmt, ...)
+{
+ return 0;
+}
+
static inline void export_env_ull(const char *name, unsigned long long val) {}
static inline int getenv_ull(const char *name, unsigned long long *val)
diff --git a/include/globalvar.h b/include/globalvar.h
index 476bb920f3..ff1da6c927 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -101,6 +101,8 @@ static inline char *globalvar_get_match(const char *match, const char *separator
static inline void globalvar_set_match(const char *match, const char *val) {}
+static inline void globalvar_set(const char *name, const char *val) {}
+
static inline int nvvar_load(void)
{
return 0;
diff --git a/include/mci.h b/include/mci.h
index 922aeaecf3..2098b4fbf0 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -463,7 +463,9 @@ struct mci {
u8 *ext_csd;
int probe;
struct param_d *param_boot;
+ struct param_d *param_boot_ack;
int bootpart;
+ int boot_ack_enable;
struct mci_part part[MMC_NUM_PHY_PARTITION];
int nr_parts;
diff --git a/include/of.h b/include/of.h
index 46b96277d5..3c5f14e167 100644
--- a/include/of.h
+++ b/include/of.h
@@ -58,12 +58,12 @@ struct of_reserve_map {
};
int of_add_reserve_entry(resource_size_t start, resource_size_t end);
-struct of_reserve_map *of_get_reserve_map(void);
void of_clean_reserve_map(void);
void fdt_add_reserve_map(void *fdt);
struct device_d;
struct driver_d;
+struct resource;
int of_fix_tree(struct device_node *);
@@ -116,6 +116,7 @@ struct device_node *of_unflatten_dtb_const(const void *infdt, int size);
struct cdev;
#ifdef CONFIG_OFTREE
+extern struct of_reserve_map *of_get_reserve_map(void);
extern int of_bus_n_addr_cells(struct device_node *np);
extern int of_n_addr_cells(struct device_node *np);
extern int of_bus_n_size_cells(struct device_node *np);
@@ -317,7 +318,15 @@ struct device_node *of_find_node_by_path_or_alias(struct device_node *root,
int of_autoenable_device_by_path(char *path);
int of_autoenable_i2c_by_component(char *path);
int of_prepend_machine_compatible(struct device_node *root, const char *compat);
+
+int of_reserved_mem_walk(int (*handler)(const struct resource *res));
+
#else
+static inline struct of_reserve_map *of_get_reserve_map(void)
+{
+ return NULL;
+}
+
static inline bool of_node_name_eq(const struct device_node *np, const char *name)
{
return false;
@@ -841,6 +850,11 @@ static inline int of_prepend_machine_compatible(struct device_node *root,
return -ENODEV;
}
+static inline int of_reserved_mem_walk(int (*handler)(const struct resource *res))
+{
+ return 0;
+}
+
#endif
#define for_each_property_of_node(dn, pp) \
diff --git a/include/reset_source.h b/include/reset_source.h
index 023b1fe4a0..a98c61ae0e 100644
--- a/include/reset_source.h
+++ b/include/reset_source.h
@@ -32,8 +32,6 @@ void reset_source_set_device(struct device_d *dev, enum reset_src_type st);
void reset_source_set_prinst(enum reset_src_type,
unsigned int priority, int instance);
-unsigned int of_get_reset_source_priority(struct device_node *node);
-
#else
static inline enum reset_src_type reset_source_get(void)
@@ -69,11 +67,6 @@ static inline void reset_source_set_prinst(enum reset_src_type type,
static inline void reset_source_set_instance(enum reset_src_type type, int instance)
{
}
-
-static inline unsigned int of_get_reset_source_priority(struct device_node *node)
-{
- return 0;
-}
#endif
#define RESET_SOURCE_DEFAULT_PRIORITY 100
diff --git a/include/soc/imx8m/ddr.h b/include/soc/imx8m/ddr.h
index 147a7d499a..c81c4d82c5 100644
--- a/include/soc/imx8m/ddr.h
+++ b/include/soc/imx8m/ddr.h
@@ -8,7 +8,6 @@
#include <io.h>
#include <asm/types.h>
-#include <soc/imx8m/ddr.h>
#define DDRC_DDR_SS_GPR0 0x3d000000
#define DDRC_IPS_BASE_ADDR_0 0x3f400000