Change DM_SEQ_ALIAS to be configurable for SPL
cover Change DM_SEQ_ALIAS to be configurable for SPL
Add a config option for SPL_DM_SEQ_ALIAS and enable it for the Zynq targets which require it for SPI flash support in SPL.
Nathan Rossi (2):
spl: dm: Add SPL_DM_SEQ_ALIAS config option
arm: zynq: Enable SPL_DM_SEQ_ALIAS for all Zynq configs
configs/zynq_microzed_defconfig | 1 + configs/zynq_picozed_defconfig | 1 + configs/zynq_zc702_defconfig | 1 + configs/zynq_zc706_defconfig | 1 + configs/zynq_zc770_xm010_defconfig | 1 + configs/zynq_zc770_xm011_defconfig | 1 + configs/zynq_zc770_xm012_defconfig | 1 + configs/zynq_zc770_xm013_defconfig | 1 + configs/zynq_zed_defconfig | 1 + configs/zynq_zybo_defconfig | 1 + drivers/core/Kconfig | 9 +++++++++ drivers/core/device.c | 2 +- include/config_uncmd_spl.h | 1 - 13 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.6.2
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature.
---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.
Also on a side note, this might affect the socfpga target as it forcibly overrides the #undef from config_uncmd_spl.h in its common header. I have Cc'd the respective maintainer for this reason.
--- drivers/core/Kconfig | 9 +++++++++ drivers/core/device.c | 2 +- include/config_uncmd_spl.h | 1 - 3 files changed, 10 insertions(+), 2 deletions(-)
drivers/core/Kconfig +9 -0
@@ -60,6 +60,15 @@ config DM_SEQ_ALIAS help Most boards will have a '/aliases' node containing the path to numbered devices (e.g. serial0 = &serial0). This feature can be + disabled if it is not required. + +config SPL_DM_SEQ_ALIAS + bool "Support numbered aliases in device tree in SPL" + depends on DM + default n + help + Most boards will have a '/aliases' node containing the path to + numbered devices (e.g. serial0 = &serial0). This feature can be disabled if it is not required, to save code space in SPL. config REGMAP
drivers/core/device.c +1 -1
@@ -64,7 +64,7 @@ int device_bind(struct udevice *parent, const struct driver *drv, dev->seq =-1 ; dev->req_seq =-1 ; -if (CONFIG_IS_ENABLED (OF_CONTROL ) &&IS_ENABLED (CONFIG_DM_SEQ_ALIAS )) { +if (CONFIG_IS_ENABLED (OF_CONTROL ) &&CONFIG_IS_ENABLED (DM_SEQ_ALIAS )) {/* * Some devices, such as a SPI bus, I2C bus and serial ports * are numbered using aliases.
include/config_uncmd_spl.h +0 -1
@@ -29,7 +29,6 @@#endif #undef CONFIG_DM_WARN -#undef CONFIG_DM_SEQ_ALIAS#undef CONFIG_DM_STDIO#endif /* CONFIG_SPL_BUILD */
Signature · 1 line
2.6.2
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 13 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature.
Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>
Quoted 7 lines
---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.Also on a side note, this might affect the socfpga target as it forcibly overrides the #undef from
config_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.
The fix for SoCFPGA is easy -- enable the SPL_DM_SEQ_ALIAS in configs/socfpga*. It is needed for booting from QSPI NOR.
Quoted 52 lines
--- drivers/core/Kconfig | 9 +++++++++ drivers/core/device.c | 2 +- include/config_uncmd_spl.h | 1 - 3 files changed, 10 insertions(+), 2 deletions(-)drivers/core/Kconfig +9
-0@@ -60,6 +60,15 @@ config DM_SEQ_ALIAS help Most boards will have a '/aliases' node containing the path to numbered devices (e.g. serial0 = &serial0). This feature can be + disabled if it is not required. + +config SPL_DM_SEQ_ALIAS + bool "Support numbered aliases in device tree in SPL" + depends on DM + default n + help + Most boards will have a '/aliases' node containing the path to + numbered devices (e.g. serial0 = &serial0). This feature can be disabled if it is not required, to save code space in SPL. config REGMAPdrivers/core/device.c +1
-1@@ -64,7 +64,7 @@ int device_bind(struct udevice *parent, const struct driver *drv, dev->seq =-1 ; dev->req_seq =-1 ; -if (CONFIG_IS_ENABLED (OF_CONTROL ) &&IS_ENABLED (CONFIG_DM_SEQ_ALIAS )) { +if (CONFIG_IS_ENABLED (OF_CONTROL ) &&CONFIG_IS_ENABLED (DM_SEQ_ALIAS )) {/* * Some devices, such as a SPI bus, I2C bus and serial ports drivers/core/device.c +0
-0* are numbered using aliases. include/config_uncmd_spl.h +0
-1@@ -29,7 +29,6 @@#endif #undef CONFIG_DM_WARN -#undef CONFIG_DM_SEQ_ALIAS#undef CONFIG_DM_STDIO#endif /* CONFIG_SPL_BUILD */
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 18 lines · Marek Vasut
Quoted 17 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature.
Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.
Quoted 6 lines
Quoted 3 lines
Also on a side note, this might affect the socfpga target as it forcibly overrides the #undef from
config_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.
That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
Thanks,
Michal
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 23 lines · Michal Simek
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature.
Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.Also on a side note, this might affect the socfpga target as it forcibly overrides the #undef from
config_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.
Quoted 5 lines
Quoted 2 lines
The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
So what is the solution ?
Best regards,
Marek Vasut
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 24 lines · Marek Vasut
Quoted 23 lines · Michal Simek
Quoted 22 lines · Marek Vasut
Quoted 20 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature.
Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.Also on a side note, this might affect the socfpga target as it forcibly overrides the #undef from
config_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
So what is the solution ?
I added
#define CONFIG_DM_SEQ_ALIAS 1
to the common config header for MVEBU. If its possible to set this via Kconfig in a way where its not #undef'ed by config_uncmd_spl.h, that would be even better.
Thanks,
Stefan
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 26 lines · Stefan Roese
Quoted 25 lines · Marek Vasut
Quoted 23 lines · Michal Simek
Quoted 21 lines · Marek Vasut
Quoted 19 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets
that are not interested or do not require this feature.Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Also on a side note, this might affect the socfpga target as it forcibly
overrides the #undef fromconfig_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.
I will add a patch to this series, depending on how it is agreed to enable this option.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
So would a better solution be to force the ARCH_ZYNQ config (and others ARCH_SOCFPGA/ARCH_MVEBU) to 'select SPL_DM_SEQ_ALIAS' instead of enabling them separately for each defconfig? like is done for SPL_OF_CONTROL/etc.
Quoted 5 lines
Quoted 3 lines
So what is the solution ?
Quoted 7 lines
I added
#define
CONFIG_DM_SEQ_ALIAS1to the common config header for MVEBU. If its possible to set this via
Kconfigin a way where its not #undef'ed byconfig_uncmd_spl.h, that would be even better.
As with socfpga, would you like me to do the same for MVEBU, add a patch to this series to enable it for MVEBU?
Regards,
Nathan
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 34 lines · Nathan Rossi
Quoted 22 lines · Stefan Roese
Quoted 21 lines · Marek Vasut
Quoted 20 lines · Michal Simek
Quoted 19 lines · Marek Vasut
Quoted 18 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets
that are not interested or do not require this feature.Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Also on a side note, this might affect the socfpga target as it forcibly
overrides the #undef fromconfig_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.I will add a patch to this series, depending on how it is agreed to enable this option.
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
So would a better solution be to force the
ARCH_ZYNQconfig (and others ARCH_SOCFPGA/ARCH_MVEBU) to 'selectSPL_DM_SEQ_ALIAS' instead of enabling them separately for each defconfig? like is done for SPL_OF_CONTROL/etc.
That might make sense, yes.
But, I wonder if we can do without DM_SEQ_ALIAS altogether for the SPI NOR boot?
Quoted 10 lines
Quoted 9 lines
Quoted 1 line
So what is the solution ?
I added
#define
CONFIG_DM_SEQ_ALIAS1to the common config header for MVEBU. If its possible to set this via
Kconfigin a way where its not #undef'ed byconfig_uncmd_spl.h, that would be even better.
Quoted 5 lines
As with socfpga, would you like me to do the same for MVEBU, add a patch to this series to enable it for MVEBU?
Regards,
Nathan
Best regards,
Marek Vasut
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
In reply to Nathan RossiQuoted 41 lines · Nathan Rossi
Quoted 26 lines · Stefan Roese
Quoted 25 lines · Marek Vasut
Quoted 23 lines · Michal Simek
Quoted 21 lines · Marek Vasut
Quoted 19 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets
that are not interested or do not require this feature.Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Also on a side note, this might affect the socfpga target as it forcibly
overrides the #undef fromconfig_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.I will add a patch to this series, depending on how it is agreed to enable this option.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
So would a better solution be to force the
ARCH_ZYNQconfig (and others ARCH_SOCFPGA/ARCH_MVEBU) to 'selectSPL_DM_SEQ_ALIAS' instead of enabling them separately for each defconfig? like is done for SPL_OF_CONTROL/etc.
Yes, please. Autoselecting this option is definitely better.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
So what is the solution ?
I added
Quoted 8 lines
Quoted 5 lines
#define
CONFIG_DM_SEQ_ALIAS1to the common config header for MVEBU. If its possible to set this via
Kconfigin a way where its not #undef'ed byconfig_uncmd_spl.h, that would be even better.As with socfpga, would you like me to do the same for MVEBU, add a patch to this series to enable it for MVEBU?
Yes, please do so.
Thanks,
Stefan
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 47 lines · Stefan Roese
Quoted 46 lines · Nathan Rossi
Quoted 28 lines · Stefan Roese
Quoted 27 lines · Marek Vasut
Quoted 25 lines · Michal Simek
Quoted 23 lines · Marek Vasut
Quoted 21 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses.
Instead of disabling the feature for all SPL targets allow it to be configured.The config option is disabled by default to reduce code size for targets
that are not interested or do not require this feature.Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling
this config option adds ~1KB of code size.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Also on a side note, this might affect the socfpga target as it forcibly
overrides the #undef fromconfig_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.I will add a patch to this series, depending on how it is agreed to enable this option.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
Quoted 6 lines
Quoted 4 lines
So would a better solution be to force the
ARCH_ZYNQconfig (and others ARCH_SOCFPGA/ARCH_MVEBU) to 'selectSPL_DM_SEQ_ALIAS' instead of enabling them separately for each defconfig? like is done for SPL_OF_CONTROL/etc.Yes, please. Autoselecting this option is definitely better.
TBH I don't think this is the best solution. We should select things which are required all the time. For zynq case this selection is necessary just for qspi boot mode. There are other boot modes which doesn't require it that's why for these mods this is just additional code. If you think that this is need/good to select by default for your SoC then this can be done separately.
Note: Agree with Marek that will be good to check where exactly the problem is that this config option is necessary to enable even for case where only on qspi is in the system.
Thanks,
Michal
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
Quoted 53 lines · Michal Simek
Quoted 52 lines · Stefan Roese
Quoted 50 lines · Nathan Rossi
Quoted 28 lines · Stefan Roese
Quoted 27 lines · Marek Vasut
Quoted 25 lines · Michal Simek
Quoted 23 lines · Marek Vasut
Quoted 21 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses.
Instead of disabling the feature for all SPL targets allow it to be configured.The config option is disabled by default to reduce code size for targets
that are not interested or do not require this feature.Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling
this config option adds ~1KB of code size.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Also on a side note, this might affect the socfpga target as it forcibly
overrides the #undef fromconfig_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.The fix for SoCFPGA is easy -- enable the
SPL_DM_SEQ_ALIASin configs/socfpga*. It is needed for booting from QSPI NOR.I will add a patch to this series, depending on how it is agreed to enable this option.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
That's probably not the best solution. But of course we can use it. IRC Stefan had the same problem.
So would a better solution be to force the
ARCH_ZYNQconfig (and others ARCH_SOCFPGA/ARCH_MVEBU) to 'selectSPL_DM_SEQ_ALIAS' instead of enabling them separately for each defconfig? like is done for SPL_OF_CONTROL/etc.
Quoted 8 lines
Quoted 1 line
Yes, please. Autoselecting this option is definitely better.
TBH I don't think this is the best solution. We should select things which are required all the time. For zynq case this selection is necessary just for qspi boot mode. There are other boot modes which doesn't require it that's why for these mods this is just additional code. If you think that this is need/good to select by default for your SoC then this can be done separately.
Sorry for the slow response/follow up on this.
So as I understand it makes sense for this to be configured slightly differently depending on when the boot options that need this are available. I guess this also makes sense as SPI is not the only user of the seq alias feature.
I am sorting out v2 of this series for the additional patches to add the config for socfpga and mvebu, just want to clarify that this would be the preferred way (given recent comments) to enable it for the corresponding platforms:
* socfpga -> enable in each defconfig
* mvebu -> enable in arch/arm/Kconfig for ARCH_MVEBU (aka auto selecting)
Quoted 4 lines
Note: Agree with Marek that will be good to check where exactly the problem is that this config option is necessary to enable even for case where only on qspi is in the system.
I had a bit of a look into this, it would require changes to allow for it to fall-back to finding and using the first device which is matched for the uclass (instead of relying on just CONFIG_SF_DEFAULT_BUS), it would probably be an intrusive change to sf-uclass. A simpler solution might be to just default seq numbers to 0 when seq alias is not enabled? would allow for the change to work with other uclasses that use seq alias.
Regards,
Nathan
Quoted 5 lines
Acked-by Michal Simek <[email protected]>Thanks,
Michal
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
On Wednesday, December 30, 2015 at 06:52:24 AM, Nathan Rossi wrote:
[...]
Quoted 14 lines
Quoted 6 lines
TBH I don't think this is the best solution. We should select things which are required all the time. For zynq case this selection is necessary just for qspi boot mode. There are other boot modes which doesn't require it that's why for these mods this is just additional code. If you think that this is need/good to select by default for your SoC then this can be done separately.
Sorry for the slow response/follow up on this.
So as I understand it makes sense for this to be configured slightly differently depending on when the boot options that need this are available. I guess this also makes sense as SPI is not the only user of the seq alias feature.
Quoted 5 lines
I am sorting out v2 of this series for the additional patches to add the config for socfpga and mvebu, just want to clarify that this would be the preferred way (given recent comments) to enable it for the corresponding platforms:
* socfpga -> enable in each defconfig
If the feature is imperative for the platform to work, just enable it in Kconfig too, just like on mvebu.
Quoted 14 lines
* mvebu -> enable in
arch/arm/KconfigforARCH_MVEBU(aka auto selecting)Quoted 3 lines
Note: Agree with Marek that will be good to check where exactly the problem is that this config option is necessary to enable even for case where only on qspi is in the system.
I had a bit of a look into this, it would require changes to allow for it to fall-back to finding and using the first device which is matched for the uclass (instead of relying on just
CONFIG_SF_DEFAULT_BUS), it would probably be an intrusive change to sf-uclass. A simpler solution might be to just default seq numbers to 0 when seq alias is not enabled? would allow for the change to work with other uclasses that use seq alias.
Quoted 7 lines
Regards,
NathanQuoted 4 lines
Acked-by Michal Simek <[email protected]>Thanks,
Michal
Best regards,
Marek Vasut
PATCH 1/2 spl: dm: Add SPL_DM_SEQ_ALIAS config option
In reply to Nathan RossiQuoted 18 lines · Nathan Rossi
The Device Model sequence alias feature is required by some Uclasses. Instead of disabling the feature for all SPL targets allow it to be configured.
The config option is disabled by default to reduce code size for targets that are not interested or do not require this feature.
Signed-off-by Nathan Rossi <[email protected]>Cc Simon Glass <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Linus Walleij <[email protected]>Cc Marek Vasut <[email protected]>Cc Michal Simek <[email protected]>---
Based on a small amount of inspection for the Zynq platform, enabling this config option adds ~1KB of code size.
Quoted 8 lines
Also on a side note, this might affect the socfpga target as it forcibly overrides the #undef from
config_uncmd_spl.hin its common header. I have Cc'd the respective maintainer for this reason.--- drivers/core/Kconfig | 9 +++++++++ drivers/core/device.c | 2 +- include/config_uncmd_spl.h | 1 - 3 files changed, 10 insertions(+), 2 deletions(-)
PATCH 2/2 arm: zynq: Enable SPL_DM_SEQ_ALIAS for all Zynq configs
In reply to Nathan RossiThis feature is required in SPL to enable support for loading from SPI flash when the device is booted from QSPI.
--- configs/zynq_microzed_defconfig | 1 + configs/zynq_picozed_defconfig | 1 + configs/zynq_zc702_defconfig | 1 + configs/zynq_zc706_defconfig | 1 + configs/zynq_zc770_xm010_defconfig | 1 + configs/zynq_zc770_xm011_defconfig | 1 + configs/zynq_zc770_xm012_defconfig | 1 + configs/zynq_zc770_xm013_defconfig | 1 + configs/zynq_zed_defconfig | 1 + configs/zynq_zybo_defconfig | 1 + 10 files changed, 10 insertions(+)
configs/zynq_microzed_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_MICROZED=y CONFIG_DEFAULT_DEVICE_TREE="zynq-microzed" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_picozed_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_PICOZED=y CONFIG_DEFAULT_DEVICE_TREE="zynq-picozed" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set CONFIG_CMD_GPIO=y
configs/zynq_zc702_defconfig +1 -0
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_ZYNQ=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zc702" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zc706_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZC706=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zc706" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zc770_xm010_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZC770=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm010" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zc770_xm011_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZC770=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm011" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zc770_xm012_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZC770=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm012" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zc770_xm013_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZC770=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm013" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zed_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZED=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zed" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
configs/zynq_zybo_defconfig +1 -0
@@ -3,6 +3,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_TARGET_ZYNQ_ZYBO=y CONFIG_DEFAULT_DEVICE_TREE="zynq-zybo" CONFIG_SPL=y +CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y CONFIG_FIT_SIGNATURE=y
Signature · 1 line
2.6.2