summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:23 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:11 (GMT)
commit2ec9d171bc5ee8c9bba78d9f35d61d2473467f66 (patch)
tree9e53ff717295f6101804a6ba08f59a25f15cbf89 /include
parente907bf2dfbadc77e92b09b9bdb55284c37140b13 (diff)
downloadu-boot-2ec9d171bc5ee8c9bba78d9f35d61d2473467f66.tar.xz
cros_ec: Convert to support live tree
Convert this driver to support the live device tree and remove the old fdtdec support. The keyboard is not yet converted. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/cros_ec.h7
-rw-r--r--include/fdtdec.h13
2 files changed, 2 insertions, 18 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index 2bd9f22..771a176 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -11,7 +11,6 @@
#include <linux/compiler.h>
#include <ec_commands.h>
-#include <fdtdec.h>
#include <cros_ec_message.h>
#include <asm/gpio.h>
#include <dm/of_extra.h>
@@ -378,12 +377,10 @@ int cros_ec_get_error(void);
/**
* Returns information from the FDT about the Chrome EC flash
*
- * @param blob FDT blob to use
- * @param node Node offset to read from
+ * @param dev Device to read from
* @param config Structure to use to return information
*/
-int cros_ec_decode_ec_flash(const void *blob, int node,
- struct fdt_cros_ec *config);
+int cros_ec_decode_ec_flash(struct udevice *dev, struct fdt_cros_ec *config);
/**
* Check the current keyboard state, in case recovery mode is requested.
diff --git a/include/fdtdec.h b/include/fdtdec.h
index f27fb36..eda2ffa 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -815,19 +815,6 @@ const u8 *fdtdec_locate_byte_array(const void *blob, int node,
int fdtdec_decode_region(const void *blob, int node, const char *prop_name,
fdt_addr_t *basep, fdt_size_t *sizep);
-struct fmap_entry;
-/**
- * Read a flash entry from the fdt
- *
- * @param blob FDT blob
- * @param node Offset of node to read
- * @param name Name of node being read
- * @param entry Place to put offset and size of this node
- * @return 0 if ok, -ve on error
- */
-int fdtdec_read_fmap_entry(const void *blob, int node, const char *name,
- struct fmap_entry *entry);
-
/**
* Obtain an indexed resource from a device property.
*