diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-01-17 08:25:45 -0600 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-02-05 11:00:17 -0600 |
commit | ed2cf548cac80cd3cf8154dcfe7b2685bef45938 (patch) | |
tree | 6e8e637292d490ae0f3d458cf26014dba4245474 /common/fdt_support.c | |
parent | e56b4b494cd92def577969f9678395aa22d34c9f (diff) | |
download | u-boot-imx-ed2cf548cac80cd3cf8154dcfe7b2685bef45938.zip u-boot-imx-ed2cf548cac80cd3cf8154dcfe7b2685bef45938.tar.gz u-boot-imx-ed2cf548cac80cd3cf8154dcfe7b2685bef45938.tar.bz2 |
QE: Move FDT support into a common file
Move the flat device tree setup for QE related devices into
a common file shared between 83xx & 85xx platforms that have QE's.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r-- | common/fdt_support.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index a13c140..92f1c7f 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -30,9 +30,6 @@ #include <fdt_support.h> #include <exports.h> -#ifdef CONFIG_QE -#include "../drivers/qe/qe.h" -#endif /* * Global data (for the gd->bd) */ @@ -617,49 +614,4 @@ void fdt_fixup_ethernet(void *fdt, bd_t *bd) #endif } } - -#ifdef CONFIG_QE -/* - * If a QE firmware has been uploaded, then add the 'firmware' node under - * the 'qe' node. - */ -void fdt_fixup_qe_firmware(void *fdt) -{ - struct qe_firmware_info *qe_fw_info; - int node, ret; - - qe_fw_info = qe_get_firmware_info(); - if (!qe_fw_info) - return; - - node = fdt_path_offset(fdt, "/qe"); - if (node < 0) - return; - - /* We assume the node doesn't exist yet */ - node = fdt_add_subnode(fdt, node, "firmware"); - if (node < 0) - return; - - ret = fdt_setprop(fdt, node, "extended-modes", - &qe_fw_info->extended_modes, sizeof(u64)); - if (ret < 0) - goto error; - - ret = fdt_setprop_string(fdt, node, "id", qe_fw_info->id); - if (ret < 0) - goto error; - - ret = fdt_setprop(fdt, node, "virtual-traps", qe_fw_info->vtraps, - sizeof(qe_fw_info->vtraps)); - if (ret < 0) - goto error; - - return; - -error: - fdt_del_node(fdt, node); -} -#endif - #endif |