Signed-off-by: Jason Cooper <u-b...@lakedaemon.net> --- common/fdt_decode.c | 14 -------------- include/fdt_decode.h | 32 -------------------------------- 2 files changed, 0 insertions(+), 46 deletions(-)
diff --git a/common/fdt_decode.c b/common/fdt_decode.c index 9e8cf4d..cd7a071 100644 --- a/common/fdt_decode.c +++ b/common/fdt_decode.c @@ -34,7 +34,6 @@ */ #define COMPAT(id, name) name static const char *compat_names[COMPAT_COUNT] = { - COMPAT(NVIDIA_TEGRA250_I2C, "nvidia,tegra250-i2c"), }; /** @@ -162,16 +161,3 @@ int fdt_decode_next_alias(const void *blob, const char *name, return err ? -FDT_ERR_MISSING : node; } -int fdt_decode_i2c(const void *blob, int node, struct fdt_i2c *config) -{ - config->reg = (struct i2c_ctlr *)get_addr(blob, node, "reg"); - config->pinmux = get_int(blob, node, "pinmux", 0); - config->speed = get_int(blob, node, "speed", 0); - config->periph_id = get_int(blob, node, "periph-id", -1); - config->enabled = get_is_enabled(blob, node, 0); - - if (config->periph_id == -1) - return -FDT_ERR_MISSING; - - return 0; -} diff --git a/include/fdt_decode.h b/include/fdt_decode.h index bdcdbba..ba3c15b 100644 --- a/include/fdt_decode.h +++ b/include/fdt_decode.h @@ -28,9 +28,6 @@ * changes to support FDT are minimized. */ -#include <ns16550.h> -#include <asm/arch/clock.h> - /* A typedef for a physical address. We should move it to a generic place */ #ifdef CONFIG_PHYS_64BIT typedef u64 addr_t; @@ -55,36 +52,7 @@ struct fdt_memory { */ enum fdt_compat_id { COMPAT_UNKNOWN, - COMPAT_NVIDIA_TEGRA250_I2C, /* Tegra 250 i2c */ - COMPAT_COUNT, }; -/* Information about i2c controller */ -struct fdt_i2c { - struct i2c_ctlr *reg; /* Address of controller registers */ - int pinmux; /* Which pin mux setting to use */ - u32 speed; /* Speed in KHz */ - enum periph_id periph_id; /* Peripheral ID for clock/pinmux */ - int enabled; /* 1 if enabled, 0 if disabled */ -}; -/** - * Returns information from the FDT about an i2c controler. This function reads - * out the following attributes: - * - * reg - * enabled - * pinmux - * speed - * periph-id - * - * @param blob FDT blob to use - * @param node Node to read from - * @param config structure to use to return information - * @returns 0 on success, -ve on error, in which case config may or may not be - * unchanged. If the node is present but expected data is - * missing then this will generally return - * -FDT_ERR_MISSING. - */ -int fdt_decode_i2c(const void *blob, int node, struct fdt_i2c *config); -- 1.7.0.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot