arm: am57xx: reintroduce the CONFIG_AM57XX symbol
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
The SOC family symbol CONFIG_AM57XX was removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX".
The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.
---
V1 -> V2: Replace the commit "fix XHCI registers base address".
include/configs/am57xx_evm.h | 1 + include/configs/cl-som-am57x.h | 1 + include/linux/usb/xhci-omap.h | 2 +- scripts/config_whitelist.txt | 1 + 4 files changed, 4 insertions(+), 1 deletion(-)
include/configs/am57xx_evm.h +1 -0
@@ -15,6 +15,7 @@#include <environment/ti/dfu.h> #define CONFIG_DRA7XX +#define CONFIG_AM57XX #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION
include/configs/cl-som-am57x.h +1 -0
@@ -12,6 +12,7 @@#define __CONFIG_CL_SOM_AM57X_H#define CONFIG_DRA7XX +#define CONFIG_AM57XX #define CONFIG_NR_DRAM_BANKS 2
include/linux/usb/xhci-omap.h +1 -1
@@ -14,7 +14,7 @@#define OMAP_XHCI_BASE 0x488d0000#define OMAP_OCP1_SCP_BASE 0x4A081000#define OMAP_OTG_WRAPPER_BASE 0x488c0000 -#elif definedCONFIG_TARGET_AM57XX_EVM +#elif definedCONFIG_AM57XX #define OMAP_XHCI_BASE 0x48890000#define OMAP_OCP1_SCP_BASE 0x4A084c00#define OMAP_OTG_WRAPPER_BASE 0x48880000
scripts/config_whitelist.txt +1 -0
@@ -85,6 +85,7 @@ CONFIG_AM335X_USB0_MODE CONFIG_AM335X_USB1 CONFIG_AM335X_USB1_MODE CONFIG_AM437X_USB2PHY2_HOST +CONFIG_AM57XX CONFIG_AMBAPP_IOAREA CONFIG_AMCC_DEF_ENV CONFIG_AMCC_DEF_ENV_NOR_UPD
Signature · 1 line
2.7.4
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 8 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Signed-off-by Uri Mashiach <[email protected]>
We need to introduce it into Kconfig files now, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170213/f86515e4/attachment.sig>
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 5 lines · Tom Rini
Quoted 3 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".
Quoted 7 lines
Quoted 5 lines
The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!
DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Regards,
Nishanth Menon
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 10 lines · menon.nishanth at gmail.com
Quoted 9 lines · Tom Rini
Quoted 7 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Yes, agreed. And we need to solve this, and introduce some Kconfig CONFIG symbol to deal with it. Maybe the better way to look at this is, can we have DRA7xx boards configured in the way Uri wants to be able to configure the AM57xx board he's working with? And vice versa? The answer to that will help drive what the right CONFIG_xxx name is.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170214/dc5284df/attachment.sig>
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 19 lines · Tom Rini
Quoted 10 lines · menon.nishanth at gmail.com
Quoted 9 lines · Tom Rini
Quoted 7 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Quoted 5 lines
Yes, agreed. And we need to solve this, and introduce some
KconfigCONFIG symbol to deal with it. Maybe the better way to look at this is, can we have DRA7xx boards configured in the way Uri wants to be able to configure the AM57xx board he's working with? And vice versa? The answer to that will help drive what the rightCONFIG_xxxname is.
Should'nt be ideally done via DM model instead? I have no understanding of USB integration done in u-boot to comment better.
Signature · 2 lines
Regards, Nishanth Menon
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 20 lines · Nishanth Menon
Quoted 19 lines · Tom Rini
Quoted 17 lines · menon.nishanth at gmail.com
Quoted 5 lines · Tom Rini
Quoted 3 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".Quoted 7 lines
Quoted 5 lines
The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Quoted 8 lines
Quoted 5 lines
Yes, agreed. And we need to solve this, and introduce some
KconfigCONFIG symbol to deal with it. Maybe the better way to look at this is, can we have DRA7xx boards configured in the way Uri wants to be able to configure the AM57xx board he's working with? And vice versa? The answer to that will help drive what the rightCONFIG_xxxname is.Should'nt be ideally done via DM model instead? I have no understanding of USB integration done in u-boot to comment better.
That's also something that could be explored.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170214/c8561e9b/attachment.sig>
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 27 lines · Tom Rini
Quoted 26 lines · Nishanth Menon
Quoted 24 lines · Tom Rini
Quoted 10 lines · menon.nishanth at gmail.com
Quoted 9 lines · Tom Rini
Quoted 7 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Yes, agreed. And we need to solve this, and introduce some
KconfigCONFIG symbol to deal with it. Maybe the better way to look at this is, can we have DRA7xx boards configured in the way Uri wants to be able to configure the AM57xx board he's working with? And vice versa? The answer to that will help drive what the rightCONFIG_xxxname is.
Quoted 5 lines
Quoted 2 lines
Should'nt be ideally done via DM model instead? I have no understanding of USB integration done in u-boot to comment better.
That's also something that could be explored.
Yes, ideally this should be taken care of by DM.
Till that migration is complete I'm fine with fixing this temporarily.
OMAP5, DRA7, AM57 and AM43 use different XHCI_BASE address.
Signature · 2 lines
cheers, -roger
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 31 lines · Roger Quadros
Quoted 30 lines · Tom Rini
Quoted 28 lines · Nishanth Menon
Quoted 19 lines · Tom Rini
Quoted 10 lines · menon.nishanth at gmail.com
Quoted 9 lines · Tom Rini
Quoted 7 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Quoted 5 lines
Yes, agreed. And we need to solve this, and introduce some
KconfigCONFIG symbol to deal with it. Maybe the better way to look at this is, can we have DRA7xx boards configured in the way Uri wants to be able to configure the AM57xx board he's working with? And vice versa? The answer to that will help drive what the rightCONFIG_xxxname is.Should'nt be ideally done via DM model instead? I have no understanding of USB integration done in u-boot to comment better.
Quoted 8 lines
Quoted 2 lines
That's also something that could be explored.
Yes, ideally this should be taken care of by DM.
Till that migration is complete I'm fine with fixing this temporarily.OMAP5, DRA7, AM57 and AM43 use different
XHCI_BASEaddress.
Just to clarify further on this
DRA7 and AM57 are identical SoCs but the EVMs are using different instances of the USB as host so the difference in XHCI_BASE.
DRA7-evm uses USB1 instance whereas AM57x-EVM uses USB0 instance as host.
Signature · 2 lines
cheers, -roger
PATCH v2 1/6 arm: am57xx: reintroduce the CONFIG_AM57XX symbol
Quoted 38 lines · Roger Quadros
Quoted 37 lines · Roger Quadros
Quoted 27 lines · Tom Rini
Quoted 26 lines · Nishanth Menon
Quoted 24 lines · Tom Rini
Quoted 10 lines · menon.nishanth at gmail.com
Quoted 9 lines · Tom Rini
Quoted 7 lines · Uri Mashiach
The SOC family symbol
CONFIG_AM57XXwas removed by the commit 3891a54: "ARM: DRA7x/AM57xx: Get rid ofCONFIG_AM57XX".The symbol is needed by the XHCI OMAP USB driver.
Without the symbol all the AM57x targets symbols should be ored in the ifdef'ery.Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Uri Mashiach <[email protected]>We need to introduce it into
Kconfigfiles now, thanks!DRA7 and AM57xx are literally the same. the #ifdeffery in USB is more to do which port to use rather than having anything to do with DRA7 Vs AM57xx.
Yes, agreed. And we need to solve this, and introduce some
KconfigCONFIG symbol to deal with it. Maybe the better way to look at this is, can we have DRA7xx boards configured in the way Uri wants to be able to configure the AM57xx board he's working with? And vice versa? The answer to that will help drive what the rightCONFIG_xxxname is.Quoted 5 lines
Quoted 2 lines
Should'nt be ideally done via DM model instead? I have no understanding of USB integration done in u-boot to comment better.
That's also something that could be explored.
Yes, ideally this should be taken care of by DM.
Till that migration is complete I'm fine with fixing this temporarily.
Quoted 8 lines
Quoted 2 lines
OMAP5, DRA7, AM57 and AM43 use different
XHCI_BASEaddress.Just to clarify further on this
DRA7 and AM57 are identical SoCs but the EVMs are using different instances of the USB as host so the difference inXHCI_BASE.DRA7-evm uses USB1 instance whereas AM57x-EVM uses USB0 instance as host.
Alternative solution:
* Definition of registers base groups for USB0 and USB1.
* Target based definition of XHCI_USB0 or XHCI_USB1.
* Selection of register base group based on the definition of XHCI_USB0 or XHCI_USB1.