U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
@ 2024-10-05 23:31 alice.guo
  2024-10-06 21:23 ` Tom Rini
  2024-10-07 11:48 ` Fabio Estevam
  0 siblings, 2 replies; 12+ messages in thread
From: alice.guo @ 2024-10-05 23:31 UTC (permalink / raw)
  To: u-boot
  Cc: sbabic, festevam, uboot-imx, trini, marek.vasut+renesas, peng.fan,
	fedor.ross, ye.li, seanga2, Alice Guo

From: Peng Fan <peng.fan@nxp.com>

Make CONFIG_IMX8_ROMAPI could be configured in defconfig.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
---
 arch/arm/mach-imx/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 134e42028c..9d3aafd2f8 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
 	  the ddrmc_cr_setting on relevant board file.
 
 config IMX8_ROMAPI
-	def_bool y
+	bool "Enable i.MX ROMAPI"
+	default y
 	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
 
 config SPL_IMX_ROMAPI_LOADADDR
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-05 23:31 [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable alice.guo
@ 2024-10-06 21:23 ` Tom Rini
  2024-10-06 22:28   ` Marek Vasut
  2024-10-07 11:48 ` Fabio Estevam
  1 sibling, 1 reply; 12+ messages in thread
From: Tom Rini @ 2024-10-06 21:23 UTC (permalink / raw)
  To: alice.guo
  Cc: u-boot, sbabic, festevam, uboot-imx, marek.vasut+renesas,
	peng.fan, fedor.ross, ye.li, seanga2, Alice Guo

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

On Sun, Oct 06, 2024 at 07:31:16AM +0800, alice.guo@oss.nxp.com wrote:

> From: Peng Fan <peng.fan@nxp.com>
> 
> Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Signed-off-by: Alice Guo <alice.guo@nxp.com>
> Reviewed-by: Ye Li <ye.li@nxp.com>
> ---
>  arch/arm/mach-imx/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 134e42028c..9d3aafd2f8 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
>  	  the ddrmc_cr_setting on relevant board file.
>  
>  config IMX8_ROMAPI
> -	def_bool y
> +	bool "Enable i.MX ROMAPI"
> +	default y
>  	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9

Since there's no help here, is this truly configurable, or is this
something that should be select'd based on the SoC and presumably some
of the newer IMX9 parts cannot use this?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-06 21:23 ` Tom Rini
@ 2024-10-06 22:28   ` Marek Vasut
  2024-10-06 22:50     ` Tom Rini
  2024-10-07 11:23     ` Peng Fan
  0 siblings, 2 replies; 12+ messages in thread
From: Marek Vasut @ 2024-10-06 22:28 UTC (permalink / raw)
  To: Tom Rini, alice.guo
  Cc: u-boot, sbabic, festevam, uboot-imx, peng.fan, fedor.ross, ye.li,
	seanga2, Alice Guo

On 10/6/24 11:23 PM, Tom Rini wrote:
> On Sun, Oct 06, 2024 at 07:31:16AM +0800, alice.guo@oss.nxp.com wrote:
> 
>> From: Peng Fan <peng.fan@nxp.com>
>>
>> Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
>>
>> Signed-off-by: Peng Fan <peng.fan@nxp.com>
>> Signed-off-by: Alice Guo <alice.guo@nxp.com>
>> Reviewed-by: Ye Li <ye.li@nxp.com>
>> ---
>>   arch/arm/mach-imx/Kconfig | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
>> index 134e42028c..9d3aafd2f8 100644
>> --- a/arch/arm/mach-imx/Kconfig
>> +++ b/arch/arm/mach-imx/Kconfig
>> @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
>>   	  the ddrmc_cr_setting on relevant board file.
>>   
>>   config IMX8_ROMAPI
>> -	def_bool y
>> +	bool "Enable i.MX ROMAPI"
>> +	default y
>>   	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
> 
> Since there's no help here, is this truly configurable, or is this
> something that should be select'd based on the SoC and presumably some
> of the newer IMX9 parts cannot use this?
I can imagine the MX95 calls into this custom ELE firmware stuff instead 
of ROMAPI ?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-06 22:28   ` Marek Vasut
@ 2024-10-06 22:50     ` Tom Rini
  2024-10-07 11:46       ` Peng Fan
  2024-10-07 11:23     ` Peng Fan
  1 sibling, 1 reply; 12+ messages in thread
From: Tom Rini @ 2024-10-06 22:50 UTC (permalink / raw)
  To: Marek Vasut
  Cc: alice.guo, u-boot, sbabic, festevam, uboot-imx, peng.fan,
	fedor.ross, ye.li, seanga2, Alice Guo

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

On Mon, Oct 07, 2024 at 12:28:44AM +0200, Marek Vasut wrote:
> On 10/6/24 11:23 PM, Tom Rini wrote:
> > On Sun, Oct 06, 2024 at 07:31:16AM +0800, alice.guo@oss.nxp.com wrote:
> > 
> > > From: Peng Fan <peng.fan@nxp.com>
> > > 
> > > Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
> > > 
> > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > Signed-off-by: Alice Guo <alice.guo@nxp.com>
> > > Reviewed-by: Ye Li <ye.li@nxp.com>
> > > ---
> > >   arch/arm/mach-imx/Kconfig | 3 ++-
> > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> > > index 134e42028c..9d3aafd2f8 100644
> > > --- a/arch/arm/mach-imx/Kconfig
> > > +++ b/arch/arm/mach-imx/Kconfig
> > > @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
> > >   	  the ddrmc_cr_setting on relevant board file.
> > >   config IMX8_ROMAPI
> > > -	def_bool y
> > > +	bool "Enable i.MX ROMAPI"
> > > +	default y
> > >   	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
> > 
> > Since there's no help here, is this truly configurable, or is this
> > something that should be select'd based on the SoC and presumably some
> > of the newer IMX9 parts cannot use this?
> I can imagine the MX95 calls into this custom ELE firmware stuff instead of
> ROMAPI ?

Alright. Perhaps this should be depending on the above and
!main-ELE-symbol instead.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-06 22:28   ` Marek Vasut
  2024-10-06 22:50     ` Tom Rini
@ 2024-10-07 11:23     ` Peng Fan
  2024-10-07 11:32       ` Marek Vasut
  1 sibling, 1 reply; 12+ messages in thread
From: Peng Fan @ 2024-10-07 11:23 UTC (permalink / raw)
  To: Marek Vasut, Tom Rini, Alice Guo (OSS)
  Cc: u-boot@lists.denx.de, sbabic@denx.de, festevam@gmail.com,
	dl-uboot-imx, Ross, Fedor, Ye Li, seanga2@gmail.com, Alice Guo

Hi Marek,

> Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> configurable
> 
> On 10/6/24 11:23 PM, Tom Rini wrote:
> > On Sun, Oct 06, 2024 at 07:31:16AM +0800, alice.guo@oss.nxp.com
> wrote:
> >
> >> From: Peng Fan <peng.fan@nxp.com>
> >>
> >> Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
> >>
> >> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> >> Signed-off-by: Alice Guo <alice.guo@nxp.com>
> >> Reviewed-by: Ye Li <ye.li@nxp.com>
> >> ---
> >>   arch/arm/mach-imx/Kconfig | 3 ++-
> >>   1 file changed, 2 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
> imx/Kconfig
> >> index 134e42028c..9d3aafd2f8 100644
> >> --- a/arch/arm/mach-imx/Kconfig
> >> +++ b/arch/arm/mach-imx/Kconfig
> >> @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
> >>   	  the ddrmc_cr_setting on relevant board file.
> >>
> >>   config IMX8_ROMAPI
> >> -	def_bool y
> >> +	bool "Enable i.MX ROMAPI"
> >> +	default y
> >>   	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
> >
> > Since there's no help here, is this truly configurable, or is this
> > something that should be select'd based on the SoC and presumably
> some
> > of the newer IMX9 parts cannot use this?
> I can imagine the MX95 calls into this custom ELE firmware stuff
> instead of ROMAPI ?

True. i.MX95 A55 code no need ROMAPI.

But it is still good to make this option configurable, because there
is case that people no need romapi.

Regards,
Peng.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-07 11:23     ` Peng Fan
@ 2024-10-07 11:32       ` Marek Vasut
  0 siblings, 0 replies; 12+ messages in thread
From: Marek Vasut @ 2024-10-07 11:32 UTC (permalink / raw)
  To: Peng Fan, Tom Rini, Alice Guo (OSS)
  Cc: u-boot@lists.denx.de, sbabic@denx.de, festevam@gmail.com,
	dl-uboot-imx, Ross, Fedor, Ye Li, seanga2@gmail.com, Alice Guo

On 10/7/24 1:23 PM, Peng Fan wrote:
> Hi Marek,

Hi,

>> Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
>> configurable
>>
>> On 10/6/24 11:23 PM, Tom Rini wrote:
>>> On Sun, Oct 06, 2024 at 07:31:16AM +0800, alice.guo@oss.nxp.com
>> wrote:
>>>
>>>> From: Peng Fan <peng.fan@nxp.com>
>>>>
>>>> Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
>>>>
>>>> Signed-off-by: Peng Fan <peng.fan@nxp.com>
>>>> Signed-off-by: Alice Guo <alice.guo@nxp.com>
>>>> Reviewed-by: Ye Li <ye.li@nxp.com>
>>>> ---
>>>>    arch/arm/mach-imx/Kconfig | 3 ++-
>>>>    1 file changed, 2 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
>> imx/Kconfig
>>>> index 134e42028c..9d3aafd2f8 100644
>>>> --- a/arch/arm/mach-imx/Kconfig
>>>> +++ b/arch/arm/mach-imx/Kconfig
>>>> @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
>>>>    	  the ddrmc_cr_setting on relevant board file.
>>>>
>>>>    config IMX8_ROMAPI
>>>> -	def_bool y
>>>> +	bool "Enable i.MX ROMAPI"
>>>> +	default y
>>>>    	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
>>>
>>> Since there's no help here, is this truly configurable, or is this
>>> something that should be select'd based on the SoC and presumably
>> some
>>> of the newer IMX9 parts cannot use this?
>> I can imagine the MX95 calls into this custom ELE firmware stuff
>> instead of ROMAPI ?
> 
> True. i.MX95 A55 code no need ROMAPI.
> 
> But it is still good to make this option configurable, because there
> is case that people no need romapi.
I have a bit of a design question instead -- does U-Boot have to make 
use of SCMI and ELE firmware at all ? Can this dependency be avoided?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-06 22:50     ` Tom Rini
@ 2024-10-07 11:46       ` Peng Fan
  2024-10-07 14:17         ` Tom Rini
  0 siblings, 1 reply; 12+ messages in thread
From: Peng Fan @ 2024-10-07 11:46 UTC (permalink / raw)
  To: Tom Rini, Marek Vasut
  Cc: Alice Guo (OSS), u-boot@lists.denx.de, sbabic@denx.de,
	festevam@gmail.com, dl-uboot-imx, Ross, Fedor, Ye Li,
	seanga2@gmail.com, Alice Guo



> -----Original Message-----
> From: Tom Rini <trini@konsulko.com>
> Sent: Monday, October 7, 2024 6:51 AM
> To: Marek Vasut <marex@denx.de>
> Cc: Alice Guo (OSS) <alice.guo@oss.nxp.com>; u-boot@lists.denx.de;
> sbabic@denx.de; festevam@gmail.com; dl-uboot-imx <uboot-
> imx@nxp.com>; Peng Fan <peng.fan@nxp.com>; Ross, Fedor
> <fedor.ross@ifm.com>; Ye Li <ye.li@nxp.com>; seanga2@gmail.com;
> Alice Guo <alice.guo@nxp.com>
> Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> configurable
> 
> On Mon, Oct 07, 2024 at 12:28:44AM +0200, Marek Vasut wrote:
> > On 10/6/24 11:23 PM, Tom Rini wrote:
> > > On Sun, Oct 06, 2024 at 07:31:16AM +0800,
> alice.guo@oss.nxp.com wrote:
> > >
> > > > From: Peng Fan <peng.fan@nxp.com>
> > > >
> > > > Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
> > > >
> > > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > > Signed-off-by: Alice Guo <alice.guo@nxp.com>
> > > > Reviewed-by: Ye Li <ye.li@nxp.com>
> > > > ---
> > > >   arch/arm/mach-imx/Kconfig | 3 ++-
> > > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
> imx/Kconfig
> > > > index 134e42028c..9d3aafd2f8 100644
> > > > --- a/arch/arm/mach-imx/Kconfig
> > > > +++ b/arch/arm/mach-imx/Kconfig
> > > > @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
> > > >   	  the ddrmc_cr_setting on relevant board file.
> > > >   config IMX8_ROMAPI
> > > > -	def_bool y
> > > > +	bool "Enable i.MX ROMAPI"
> > > > +	default y
> > > >   	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
> > >
> > > Since there's no help here, is this truly configurable, or is this
> > > something that should be select'd based on the SoC and
> presumably
> > > some of the newer IMX9 parts cannot use this?
> > I can imagine the MX95 calls into this custom ELE firmware stuff
> > instead of ROMAPI ?
> 
> Alright. Perhaps this should be depending on the above and !main-ELE-
> symbol instead.

Nope. To i.MX93, ELE and ROMAPI are both valid. There is case that
ROMAPI needs to be false while ELE is still true.

Thanks
Peng.

> 
> --
> Tom

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-05 23:31 [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable alice.guo
  2024-10-06 21:23 ` Tom Rini
@ 2024-10-07 11:48 ` Fabio Estevam
  1 sibling, 0 replies; 12+ messages in thread
From: Fabio Estevam @ 2024-10-07 11:48 UTC (permalink / raw)
  To: alice.guo
  Cc: u-boot, sbabic, uboot-imx, trini, marek.vasut+renesas, peng.fan,
	fedor.ross, ye.li, seanga2, Alice Guo

On Sat, Oct 5, 2024 at 8:32 PM <alice.guo@oss.nxp.com> wrote:
>
> From: Peng Fan <peng.fan@nxp.com>
>
> Make CONFIG_IMX8_ROMAPI could be configured in defconfig.

Please state a clear motivation for doing this and send a v2.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-07 11:46       ` Peng Fan
@ 2024-10-07 14:17         ` Tom Rini
  2024-10-08  8:54           ` Peng Fan
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2024-10-07 14:17 UTC (permalink / raw)
  To: Peng Fan
  Cc: Marek Vasut, Alice Guo (OSS), u-boot@lists.denx.de,
	sbabic@denx.de, festevam@gmail.com, dl-uboot-imx, Ross, Fedor,
	Ye Li, seanga2@gmail.com, Alice Guo

[-- Attachment #1: Type: text/plain, Size: 2522 bytes --]

On Mon, Oct 07, 2024 at 11:46:03AM +0000, Peng Fan wrote:
> 
> 
> > -----Original Message-----
> > From: Tom Rini <trini@konsulko.com>
> > Sent: Monday, October 7, 2024 6:51 AM
> > To: Marek Vasut <marex@denx.de>
> > Cc: Alice Guo (OSS) <alice.guo@oss.nxp.com>; u-boot@lists.denx.de;
> > sbabic@denx.de; festevam@gmail.com; dl-uboot-imx <uboot-
> > imx@nxp.com>; Peng Fan <peng.fan@nxp.com>; Ross, Fedor
> > <fedor.ross@ifm.com>; Ye Li <ye.li@nxp.com>; seanga2@gmail.com;
> > Alice Guo <alice.guo@nxp.com>
> > Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> > configurable
> > 
> > On Mon, Oct 07, 2024 at 12:28:44AM +0200, Marek Vasut wrote:
> > > On 10/6/24 11:23 PM, Tom Rini wrote:
> > > > On Sun, Oct 06, 2024 at 07:31:16AM +0800,
> > alice.guo@oss.nxp.com wrote:
> > > >
> > > > > From: Peng Fan <peng.fan@nxp.com>
> > > > >
> > > > > Make CONFIG_IMX8_ROMAPI could be configured in defconfig.
> > > > >
> > > > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > > > Signed-off-by: Alice Guo <alice.guo@nxp.com>
> > > > > Reviewed-by: Ye Li <ye.li@nxp.com>
> > > > > ---
> > > > >   arch/arm/mach-imx/Kconfig | 3 ++-
> > > > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
> > imx/Kconfig
> > > > > index 134e42028c..9d3aafd2f8 100644
> > > > > --- a/arch/arm/mach-imx/Kconfig
> > > > > +++ b/arch/arm/mach-imx/Kconfig
> > > > > @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
> > > > >   	  the ddrmc_cr_setting on relevant board file.
> > > > >   config IMX8_ROMAPI
> > > > > -	def_bool y
> > > > > +	bool "Enable i.MX ROMAPI"
> > > > > +	default y
> > > > >   	depends on IMX8MN || IMX8MP || IMX8ULP || IMX9
> > > >
> > > > Since there's no help here, is this truly configurable, or is this
> > > > something that should be select'd based on the SoC and
> > presumably
> > > > some of the newer IMX9 parts cannot use this?
> > > I can imagine the MX95 calls into this custom ELE firmware stuff
> > > instead of ROMAPI ?
> > 
> > Alright. Perhaps this should be depending on the above and !main-ELE-
> > symbol instead.
> 
> Nope. To i.MX93, ELE and ROMAPI are both valid. There is case that
> ROMAPI needs to be false while ELE is still true.

Alright, but where is the choice made? As in, can a normal i.MX93 board
use one or the other, or will it depend on specific SoCs in the family?
And is disabling this option even valid on the i.MX8 families?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-07 14:17         ` Tom Rini
@ 2024-10-08  8:54           ` Peng Fan
  2024-10-08 13:41             ` Tom Rini
  0 siblings, 1 reply; 12+ messages in thread
From: Peng Fan @ 2024-10-08  8:54 UTC (permalink / raw)
  To: Tom Rini
  Cc: Marek Vasut, Alice Guo (OSS), u-boot@lists.denx.de,
	sbabic@denx.de, festevam@gmail.com, dl-uboot-imx, Ross, Fedor,
	Ye Li, seanga2@gmail.com, Alice Guo

> Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> configurable
> 
> On Mon, Oct 07, 2024 at 11:46:03AM +0000, Peng Fan wrote:
> >
> >
> > > -----Original Message-----
> > > From: Tom Rini <trini@konsulko.com>
> > > Sent: Monday, October 7, 2024 6:51 AM
> > > To: Marek Vasut <marex@denx.de>
> > > Cc: Alice Guo (OSS) <alice.guo@oss.nxp.com>; u-
> boot@lists.denx.de;
> > > sbabic@denx.de; festevam@gmail.com; dl-uboot-imx <uboot-
> > > imx@nxp.com>; Peng Fan <peng.fan@nxp.com>; Ross, Fedor
> > > <fedor.ross@ifm.com>; Ye Li <ye.li@nxp.com>;
> seanga2@gmail.com;
> > > Alice Guo <alice.guo@nxp.com>
> > > Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> configurable
> > >
> > > On Mon, Oct 07, 2024 at 12:28:44AM +0200, Marek Vasut wrote:
> > > > On 10/6/24 11:23 PM, Tom Rini wrote:
> > > > > On Sun, Oct 06, 2024 at 07:31:16AM +0800,
> > > alice.guo@oss.nxp.com wrote:
> > > > >
> > > > > > From: Peng Fan <peng.fan@nxp.com>
> > > > > >
> > > > > > Make CONFIG_IMX8_ROMAPI could be configured in
> defconfig.
> > > > > >
> > > > > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > > > > Signed-off-by: Alice Guo <alice.guo@nxp.com>
> > > > > > Reviewed-by: Ye Li <ye.li@nxp.com>
> > > > > > ---
> > > > > >   arch/arm/mach-imx/Kconfig | 3 ++-
> > > > > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > > > >
> > > > > > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
> > > imx/Kconfig
> > > > > > index 134e42028c..9d3aafd2f8 100644
> > > > > > --- a/arch/arm/mach-imx/Kconfig
> > > > > > +++ b/arch/arm/mach-imx/Kconfig
> > > > > > @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
> > > > > >   	  the ddrmc_cr_setting on relevant board file.
> > > > > >   config IMX8_ROMAPI
> > > > > > -	def_bool y
> > > > > > +	bool "Enable i.MX ROMAPI"
> > > > > > +	default y
> > > > > >   	depends on IMX8MN || IMX8MP || IMX8ULP ||
> IMX9
> > > > >
> > > > > Since there's no help here, is this truly configurable, or is
> > > > > this something that should be select'd based on the SoC and
> > > presumably
> > > > > some of the newer IMX9 parts cannot use this?
> > > > I can imagine the MX95 calls into this custom ELE firmware stuff
> > > > instead of ROMAPI ?
> > >
> > > Alright. Perhaps this should be depending on the above and
> > > !main-ELE- symbol instead.
> >
> > Nope. To i.MX93, ELE and ROMAPI are both valid. There is case that
> > ROMAPI needs to be false while ELE is still true.
> 
> Alright, but where is the choice made? As in, can a normal i.MX93
> board use one or the other, or will it depend on specific SoCs in the
> family?
> And is disabling this option even valid on the i.MX8 families?

Sorry, my last statement was wrong. This is only to disable ROMAPI for
i.MX95. Downstream only has below:
./configs/imx95_19x19_evk_lvds_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_verdin_android_trusty_defconfig:221:CONFIG_IMX8_ROMAPI=n
./configs/imx95_15x15_evk_android_dual_defconfig:217:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_uuu_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_verdin_fspi_defconfig:226:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_dual_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_15x15_evk_defconfig:217:CONFIG_IMX8_ROMAPI=n
./configs/imx95_15x15_evk_android_uuu_defconfig:217:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_trusty_secure_unlock_dual_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_verdin_android_uuu_defconfig:221:CONFIG_IMX8_ROMAPI=n
./configs/imx95_15x15_evk_lvds_defconfig:218:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_verdin_android_trusty_dual_defconfig:221:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_verdin_defconfig:221:CONFIG_IMX8_ROMAPI=n
./configs/imx95_15x15_evk_android_trusty_dual_defconfig:217:CONFIG_IMX8_ROMAPI=n
./configs/imx95_15x15_evk_android_defconfig:217:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_rpmsg_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_trusty_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_fspi_defconfig:227:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_evk_android_trusty_dual_defconfig:222:CONFIG_IMX8_ROMAPI=n
./configs/imx95_19x19_verdin_android_defconfig:221:CONFIG_IMX8_ROMAPI=n

Regards,
Peng.

> 
> --
> Tom

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-08  8:54           ` Peng Fan
@ 2024-10-08 13:41             ` Tom Rini
  2024-10-08 15:32               ` Peng Fan
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Rini @ 2024-10-08 13:41 UTC (permalink / raw)
  To: Peng Fan
  Cc: Marek Vasut, Alice Guo (OSS), u-boot@lists.denx.de,
	sbabic@denx.de, festevam@gmail.com, dl-uboot-imx, Ross, Fedor,
	Ye Li, seanga2@gmail.com, Alice Guo

[-- Attachment #1: Type: text/plain, Size: 4820 bytes --]

On Tue, Oct 08, 2024 at 08:54:38AM +0000, Peng Fan wrote:
> > Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> > configurable
> > 
> > On Mon, Oct 07, 2024 at 11:46:03AM +0000, Peng Fan wrote:
> > >
> > >
> > > > -----Original Message-----
> > > > From: Tom Rini <trini@konsulko.com>
> > > > Sent: Monday, October 7, 2024 6:51 AM
> > > > To: Marek Vasut <marex@denx.de>
> > > > Cc: Alice Guo (OSS) <alice.guo@oss.nxp.com>; u-
> > boot@lists.denx.de;
> > > > sbabic@denx.de; festevam@gmail.com; dl-uboot-imx <uboot-
> > > > imx@nxp.com>; Peng Fan <peng.fan@nxp.com>; Ross, Fedor
> > > > <fedor.ross@ifm.com>; Ye Li <ye.li@nxp.com>;
> > seanga2@gmail.com;
> > > > Alice Guo <alice.guo@nxp.com>
> > > > Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> > configurable
> > > >
> > > > On Mon, Oct 07, 2024 at 12:28:44AM +0200, Marek Vasut wrote:
> > > > > On 10/6/24 11:23 PM, Tom Rini wrote:
> > > > > > On Sun, Oct 06, 2024 at 07:31:16AM +0800,
> > > > alice.guo@oss.nxp.com wrote:
> > > > > >
> > > > > > > From: Peng Fan <peng.fan@nxp.com>
> > > > > > >
> > > > > > > Make CONFIG_IMX8_ROMAPI could be configured in
> > defconfig.
> > > > > > >
> > > > > > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > > > > > Signed-off-by: Alice Guo <alice.guo@nxp.com>
> > > > > > > Reviewed-by: Ye Li <ye.li@nxp.com>
> > > > > > > ---
> > > > > > >   arch/arm/mach-imx/Kconfig | 3 ++-
> > > > > > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > > > > >
> > > > > > > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
> > > > imx/Kconfig
> > > > > > > index 134e42028c..9d3aafd2f8 100644
> > > > > > > --- a/arch/arm/mach-imx/Kconfig
> > > > > > > +++ b/arch/arm/mach-imx/Kconfig
> > > > > > > @@ -179,7 +179,8 @@ config DDRMC_VF610_CALIBRATION
> > > > > > >   	  the ddrmc_cr_setting on relevant board file.
> > > > > > >   config IMX8_ROMAPI
> > > > > > > -	def_bool y
> > > > > > > +	bool "Enable i.MX ROMAPI"
> > > > > > > +	default y
> > > > > > >   	depends on IMX8MN || IMX8MP || IMX8ULP ||
> > IMX9
> > > > > >
> > > > > > Since there's no help here, is this truly configurable, or is
> > > > > > this something that should be select'd based on the SoC and
> > > > presumably
> > > > > > some of the newer IMX9 parts cannot use this?
> > > > > I can imagine the MX95 calls into this custom ELE firmware stuff
> > > > > instead of ROMAPI ?
> > > >
> > > > Alright. Perhaps this should be depending on the above and
> > > > !main-ELE- symbol instead.
> > >
> > > Nope. To i.MX93, ELE and ROMAPI are both valid. There is case that
> > > ROMAPI needs to be false while ELE is still true.
> > 
> > Alright, but where is the choice made? As in, can a normal i.MX93
> > board use one or the other, or will it depend on specific SoCs in the
> > family?
> > And is disabling this option even valid on the i.MX8 families?
> 
> Sorry, my last statement was wrong. This is only to disable ROMAPI for
> i.MX95. Downstream only has below:
> ./configs/imx95_19x19_evk_lvds_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_verdin_android_trusty_defconfig:221:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_15x15_evk_android_dual_defconfig:217:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_uuu_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_verdin_fspi_defconfig:226:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_dual_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_15x15_evk_defconfig:217:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_15x15_evk_android_uuu_defconfig:217:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_trusty_secure_unlock_dual_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_verdin_android_uuu_defconfig:221:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_15x15_evk_lvds_defconfig:218:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_verdin_android_trusty_dual_defconfig:221:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_verdin_defconfig:221:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_15x15_evk_android_trusty_dual_defconfig:217:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_15x15_evk_android_defconfig:217:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_rpmsg_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_trusty_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_fspi_defconfig:227:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_evk_android_trusty_dual_defconfig:222:CONFIG_IMX8_ROMAPI=n
> ./configs/imx95_19x19_verdin_android_defconfig:221:CONFIG_IMX8_ROMAPI=n

So it sounds like this is not something to be prompted for and must be
selected / def_bool'd appropriately.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable
  2024-10-08 13:41             ` Tom Rini
@ 2024-10-08 15:32               ` Peng Fan
  0 siblings, 0 replies; 12+ messages in thread
From: Peng Fan @ 2024-10-08 15:32 UTC (permalink / raw)
  To: Tom Rini
  Cc: Marek Vasut, Alice Guo (OSS), u-boot@lists.denx.de,
	sbabic@denx.de, festevam@gmail.com, dl-uboot-imx, Ross, Fedor,
	Ye Li, seanga2@gmail.com, Alice Guo

> Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> configurable
> 
> On Tue, Oct 08, 2024 at 08:54:38AM +0000, Peng Fan wrote:
> > > Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> configurable
> > >
> > > On Mon, Oct 07, 2024 at 11:46:03AM +0000, Peng Fan wrote:
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Tom Rini <trini@konsulko.com>
> > > > > Sent: Monday, October 7, 2024 6:51 AM
> > > > > To: Marek Vasut <marex@denx.de>
> > > > > Cc: Alice Guo (OSS) <alice.guo@oss.nxp.com>; u-
> > > boot@lists.denx.de;
> > > > > sbabic@denx.de; festevam@gmail.com; dl-uboot-imx <uboot-
> > > > > imx@nxp.com>; Peng Fan <peng.fan@nxp.com>; Ross, Fedor
> > > > > <fedor.ross@ifm.com>; Ye Li <ye.li@nxp.com>;
> > > seanga2@gmail.com;
> > > > > Alice Guo <alice.guo@nxp.com>
> > > > > Subject: Re: [PATCH v1] imx: Kconfig: make IMX8_ROMAPI
> > > configurable
> > > > >
> > > > > On Mon, Oct 07, 2024 at 12:28:44AM +0200, Marek Vasut
> wrote:
> > > > > > On 10/6/24 11:23 PM, Tom Rini wrote:
> > > > > > > On Sun, Oct 06, 2024 at 07:31:16AM +0800,
> > > > > alice.guo@oss.nxp.com wrote:
> > > > > > >
> > > > > > > > From: Peng Fan <peng.fan@nxp.com>
> > > > > > > >
> > > > > > > > Make CONFIG_IMX8_ROMAPI could be configured in
> > > defconfig.
> > > > > > > >
> > > > > > > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > > > > > > > Signed-off-by: Alice Guo <alice.guo@nxp.com>
> > > > > > > > Reviewed-by: Ye Li <ye.li@nxp.com>
> > > > > > > > ---
> > > > > > > >   arch/arm/mach-imx/Kconfig | 3 ++-
> > > > > > > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > > > > > >
> > > > > > > > diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-
> > > > > imx/Kconfig
> > > > > > > > index 134e42028c..9d3aafd2f8 100644
> > > > > > > > --- a/arch/arm/mach-imx/Kconfig
> > > > > > > > +++ b/arch/arm/mach-imx/Kconfig
> > > > > > > > @@ -179,7 +179,8 @@ config
> DDRMC_VF610_CALIBRATION
> > > > > > > >   	  the ddrmc_cr_setting on relevant board file.
> > > > > > > >   config IMX8_ROMAPI
> > > > > > > > -	def_bool y
> > > > > > > > +	bool "Enable i.MX ROMAPI"
> > > > > > > > +	default y
> > > > > > > >   	depends on IMX8MN || IMX8MP || IMX8ULP ||
> > > IMX9
> > > > > > >
> > > > > > > Since there's no help here, is this truly configurable, or
> > > > > > > is this something that should be select'd based on the SoC
> > > > > > > and
> > > > > presumably
> > > > > > > some of the newer IMX9 parts cannot use this?
> > > > > > I can imagine the MX95 calls into this custom ELE firmware
> > > > > > stuff instead of ROMAPI ?
> > > > >
> > > > > Alright. Perhaps this should be depending on the above and
> > > > > !main-ELE- symbol instead.
> > > >
> > > > Nope. To i.MX93, ELE and ROMAPI are both valid. There is case
> that
> > > > ROMAPI needs to be false while ELE is still true.
> > >
> > > Alright, but where is the choice made? As in, can a normal i.MX93
> > > board use one or the other, or will it depend on specific SoCs in
> > > the family?
> > > And is disabling this option even valid on the i.MX8 families?
> >
> > Sorry, my last statement was wrong. This is only to disable ROMAPI
> for
> > i.MX95. Downstream only has below:
> > ./configs/imx95_19x19_evk_lvds_defconfig:222:CONFIG_IMX8_ROM
> API=n
> > ./configs/imx95_19x19_verdin_android_trusty_defconfig:221:CONFI
> G_IMX8_
> > ROMAPI=n
> > ./configs/imx95_15x15_evk_android_dual_defconfig:217:CONFIG_IM
> X8_ROMAP
> >
> I=n ./configs/imx95_19x19_evk_defconfig:222:CONFIG_IMX8_ROMAPI
> =n
> > ./configs/imx95_19x19_evk_android_uuu_defconfig:222:CONFIG_IM
> X8_ROMAPI
> > =n
> > ./configs/imx95_19x19_verdin_fspi_defconfig:226:CONFIG_IMX8_RO
> MAPI=n
> > ./configs/imx95_19x19_evk_android_dual_defconfig:222:CONFIG_IM
> X8_ROMAP
> >
> I=n ./configs/imx95_15x15_evk_defconfig:217:CONFIG_IMX8_ROMAPI
> =n
> > ./configs/imx95_15x15_evk_android_uuu_defconfig:217:CONFIG_IM
> X8_ROMAPI
> > =n
> > ./configs/imx95_19x19_evk_android_trusty_secure_unlock_dual_def
> config:
> > 222:CONFIG_IMX8_ROMAPI=n
> > ./configs/imx95_19x19_verdin_android_uuu_defconfig:221:CONFIG_
> IMX8_ROM
> > API=n
> > ./configs/imx95_15x15_evk_lvds_defconfig:218:CONFIG_IMX8_ROM
> API=n
> > ./configs/imx95_19x19_verdin_android_trusty_dual_defconfig:221:C
> ONFIG_
> > IMX8_ROMAPI=n
> > ./configs/imx95_19x19_verdin_defconfig:221:CONFIG_IMX8_ROMAP
> I=n
> > ./configs/imx95_15x15_evk_android_trusty_dual_defconfig:217:CON
> FIG_IMX
> > 8_ROMAPI=n
> > ./configs/imx95_15x15_evk_android_defconfig:217:CONFIG_IMX8_R
> OMAPI=n
> > ./configs/imx95_19x19_evk_android_rpmsg_defconfig:222:CONFIG_I
> MX8_ROMA
> > PI=n
> > ./configs/imx95_19x19_evk_android_trusty_defconfig:222:CONFIG_I
> MX8_ROM
> > API=n
> > ./configs/imx95_19x19_evk_fspi_defconfig:227:CONFIG_IMX8_ROM
> API=n
> > ./configs/imx95_19x19_evk_android_defconfig:222:CONFIG_IMX8_R
> OMAPI=n
> > ./configs/imx95_19x19_evk_android_trusty_dual_defconfig:222:CON
> FIG_IMX
> > 8_ROMAPI=n
> > ./configs/imx95_19x19_verdin_android_defconfig:221:CONFIG_IMX8
> _ROMAPI=
> > n
> 
> So it sounds like this is not something to be prompted for and must be
> selected / def_bool'd appropriately.

Yeah, change to the following should be fine as of now and put this
into the i.MX95 patchset.

config IMX8_ROMAPI
-       def_bool y
+       def_bool y if (!IMX95)

Thanks,
Peng.

> 
> --
> Tom

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-10-08 15:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 23:31 [PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable alice.guo
2024-10-06 21:23 ` Tom Rini
2024-10-06 22:28   ` Marek Vasut
2024-10-06 22:50     ` Tom Rini
2024-10-07 11:46       ` Peng Fan
2024-10-07 14:17         ` Tom Rini
2024-10-08  8:54           ` Peng Fan
2024-10-08 13:41             ` Tom Rini
2024-10-08 15:32               ` Peng Fan
2024-10-07 11:23     ` Peng Fan
2024-10-07 11:32       ` Marek Vasut
2024-10-07 11:48 ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox