ipq5332: TINY NOR: disable unused fdt functions

functions disabled
------------------
- arch_fixup_fdt
- boot_setup_fdt, boot_prep_linux
- fdt_getprop_u32_default, fdt_getprop_u32_default_node
  do_fixup_by_path_u32, do_fixup_by_prop, do_fixup_by_prop_u32,
  do_fixup_by_compat, do_fixup_by_compat_u32
- fdt_pci_dma_ranges, __flash_get_bank_size, flash_get_bank_size
- fdt_fixup_nor_flash_size

above functions are disabled as part of image footprint reduction.

Change-Id: Ie7f51a358dc4d9fc10be3a4642883e16621b0916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
This commit is contained in:
Gokul Sriram Palanisamy 2022-07-14 14:56:41 +05:30
parent cdd2ba4fcb
commit 51a8fd3ae4
2 changed files with 10 additions and 0 deletions

View file

@ -24,6 +24,7 @@
DECLARE_GLOBAL_DATA_PTR;
#ifndef CONFIG_REDUCE_FOOTPRINT
int arch_fixup_fdt(void *blob)
{
bd_t *bd = gd->bd;
@ -50,3 +51,4 @@ int arch_fixup_fdt(void *blob)
#endif
return ret;
}
#endif

View file

@ -18,6 +18,7 @@
#include <exports.h>
#include <fdtdec.h>
#ifndef CONFIG_REDUCE_FOOTPRINT
/**
* fdt_getprop_u32_default_node - Return a node's property or a default
*
@ -71,6 +72,7 @@ u32 fdt_getprop_u32_default(const void *fdt, const char *path,
return fdt_getprop_u32_default_node(fdt, off, 0, prop, dflt);
}
#endif
/**
* fdt_find_and_setprop: Find a node and set it's property
@ -333,6 +335,7 @@ void do_fixup_by_path(void *fdt, const char *path, const char *prop,
path, prop, fdt_strerror(rc));
}
#ifndef CONFIG_REDUCE_FOOTPRINT
void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop,
u32 val, int create)
{
@ -394,6 +397,7 @@ void do_fixup_by_compat_u32(void *fdt, const char *compat,
fdt32_t tmp = cpu_to_fdt32(val);
do_fixup_by_compat(fdt, compat, prop, &tmp, 4, create);
}
#endif
/*
* fdt_pack_reg - pack address and size array into the "reg"-suitable stream
@ -570,6 +574,7 @@ int fdt_shrink_to_minimum(void *blob)
return actualsize;
}
#ifndef CONFIG_REDUCE_FOOTPRINT
#ifdef CONFIG_PCI
#define CONFIG_SYS_PCI_NR_INBOUND_WIN 4
@ -716,6 +721,7 @@ int fdt_fixup_nor_flash_size(void *blob)
return 0;
}
#endif
#endif
int fdt_increase_size(void *fdt, int add_len)
{
@ -789,6 +795,7 @@ int fdt_del_partitions(void *blob, int parent_offset)
return 0;
}
#ifndef CONFIG_REDUCE_FOOTPRINT
int fdt_node_set_part_info(void *blob, int parent_offset,
struct mtd_device *dev)
{
@ -1625,3 +1632,4 @@ int fdt_fixup_display(void *blob, const char *path, const char *display)
}
return toff;
}
#endif