mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Revert "fdt: translate address if #size-cells = <0>"
This reverts commit d64b9cdcd4.
As pointed by [1] and [2], the reverted patch made every DT 'reg'
property translatable. What the patch was trying to fix was fixed in a
different way from previously submitted patches which instead of
correcting the generic address translation function fixed the issue with
appropriate platform code.
[1] https://patchwork.ozlabs.org/project/uboot/patch/1614324949-61314-1-git-send-email-bmeng.cn@gmail.com/
[2] https://lore.kernel.org/linux-clk/20210402192054.7934-1-dariobin@libero.it/T/
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
committed by
Lokesh Vutla
parent
5a6caf916c
commit
a47abd7bf4
@@ -183,12 +183,6 @@ struct global_data {
|
||||
struct global_data *new_gd;
|
||||
|
||||
#ifdef CONFIG_DM
|
||||
/**
|
||||
* @dm_flags: additional flags for Driver Model
|
||||
*
|
||||
* See &enum gd_dm_flags
|
||||
*/
|
||||
unsigned long dm_flags;
|
||||
/**
|
||||
* @dm_root: root instance for Driver Model
|
||||
*/
|
||||
@@ -519,12 +513,6 @@ struct global_data {
|
||||
#define gd_acpi_ctx() NULL
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(DM)
|
||||
#define gd_size_cells_0() (gd->dm_flags & GD_DM_FLG_SIZE_CELLS_0)
|
||||
#else
|
||||
#define gd_size_cells_0() (0)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* enum gd_flags - global data flags
|
||||
*
|
||||
@@ -609,18 +597,6 @@ enum gd_flags {
|
||||
GD_FLG_SMP_READY = 0x40000,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum gd_dm_flags - global data flags for Driver Model
|
||||
*
|
||||
* See field dm_flags of &struct global_data.
|
||||
*/
|
||||
enum gd_dm_flags {
|
||||
/**
|
||||
* @GD_DM_FLG_SIZE_CELLS_0: Enable #size-cells=<0> translation
|
||||
*/
|
||||
GD_DM_FLG_SIZE_CELLS_0 = 0x00001,
|
||||
};
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* __ASM_GENERIC_GBL_DATA_H */
|
||||
|
||||
Reference in New Issue
Block a user