When to create a SoC directory for ARM
Quoted 41 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 19 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 17 lines · Scott Wood
Quoted 15 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case like this in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.Quoted 6 lines
Quoted 2 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying it.
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 4 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.
Quoted 7 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).-Scott
all SOC specific include file should be in arch/arm/include/asm/arch-SOC/ or
some common directory(like include/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch a mmu.h file in arch/arm/include/asm/arch-ls2/ and include arch/arm/include/asm/arch-armv8/mmu.h.
or move arch-armv8/mmu.h to arch/arm/include/asm/ to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC
specific include directory.
-David
Quoted 51 lines · FengHua
Quoted 43 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 19 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 17 lines · Scott Wood
Quoted 15 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case like this in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.Quoted 6 lines
Quoted 2 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying it.
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 4 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 7 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).-Scott
Quoted 7 lines
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or
some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC
specific include directory.
I was thinking to change the include in start.S to
#include <asm/arch-armv8/mmu.h>
York
Quoted 74 lines
-----????-----
???: "sun york-R58495" <[email protected]>
????: 2013?9?26? ???
???: FengHua <[email protected]>
??: "albert.u.boot" <[email protected]>, trini <[email protected]>, "Wood
Scott-B07421" <[email protected]>, u-boot <[email protected]>
??: Re: [U-Boot] When to create a SoC directory for ARMQuoted 51 lines · FengHua
Quoted 43 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 19 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 17 lines · Scott Wood
Quoted 15 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case like this in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.Quoted 6 lines
Quoted 2 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying it.
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 4 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 7 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).-Scott
Quoted 7 lines
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or
some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC
specific include directory.
Quoted 4 lines
I was thinking to change the include in
start.Sto#include <
asm/arch-armv8/mmu.h>
The current arch-armv8/mum.h is based on armv8 architecture. Maybe just maybe some armv8 processor will not implement some features of it for example 64K page size, then it do not works.
So, maybe it's better to touch a mmu.h file in include/asm/arch_SOC and include arch-armv8/mmu.h or make different implementation.
Regards,
David
Quoted 76 lines · FengHua
Quoted 76 lines
-----????-----
???: "sun york-R58495" <[email protected]>
????: 2013?9?26? ???
???: FengHua <[email protected]>
??: "albert.u.boot" <[email protected]>, trini <[email protected]>, "Wood
Scott-B07421" <[email protected]>, u-boot <[email protected]>
??: Re: [U-Boot] When to create a SoC directory for ARMQuoted 51 lines · FengHua
Quoted 43 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 19 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 17 lines · Scott Wood
Quoted 15 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case like this in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.Quoted 6 lines
Quoted 2 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying it.
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 4 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 7 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).-Scott
Quoted 7 lines
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or
some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC
specific include directory.I was thinking to change the include in
start.Sto
Quoted 9 lines
Quoted 2 lines
#include <
asm/arch-armv8/mmu.h>The current
arch-armv8/mum.his based on armv8 architecture. Maybe just maybe some armv8 processor will not implement some features of it for example 64K page size, then it do not works.
So, maybe it's better to touch ammu.hfile ininclude/asm/arch_SOCand includearch-armv8/mmu.hor make different implementation.
I think it is OK right now. It can be a subset or superset, as far as there is no conflict. We will see when we have more SoCs.
York
Quoted 76 lines · FengHua
Quoted 76 lines
-----????-----
???: "sun york-R58495" <[email protected]>
????: 2013?9?26? ???
???: FengHua <[email protected]>
??: "albert.u.boot" <[email protected]>, trini <[email protected]>, "Wood
Scott-B07421" <[email protected]>, u-boot <[email protected]>
??: Re: [U-Boot] When to create a SoC directory for ARMQuoted 51 lines · FengHua
Quoted 43 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 19 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 17 lines · Scott Wood
Quoted 15 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case like this in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.Quoted 6 lines
Quoted 2 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying it.
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 4 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 7 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).-Scott
Quoted 7 lines
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or
some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC
specific include directory.I was thinking to change the include in
start.Sto
Quoted 8 lines
Quoted 2 lines
#include <
asm/arch-armv8/mmu.h>The current
arch-armv8/mum.his based on armv8 architecture. Maybe just maybe some armv8 processor will not implement some features of it for example 64K page size, then it do not works.
So, maybe it's better to touch ammu.hfile ininclude/asm/arch_SOCand includearch-armv8/mmu.hor make different implementation.
How does the arch-xxx work in general? I found no example to use header files from both asm/arch-xxx and asm/arch directories.
York
Quoted 48 lines · FengHua
Quoted 41 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 19 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 17 lines · Scott Wood
Quoted 15 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case like this in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.Quoted 6 lines
Quoted 2 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying it.
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 4 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 7 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).-Scott
Quoted 12 lines
all SOC specific include file should be
inarch/arm/include/asm/arch-SOC/or
some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC
specific include directory.
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
-Scott
Quoted 74 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 17 lines · FengHua
Quoted 17 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 8 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 6 lines · Scott Wood
Quoted 5 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case likethis in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying
it.
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 5 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other
ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 5 lines
Quoted 5 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).
Quoted 12 lines
Quoted 2 lines
-Scott
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.
Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Usually in 'arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)
We should have something similar for LayerScape.
Regards,
Bhupesh
Quoted 78 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 74 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 17 lines · FengHua
Quoted 17 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 8 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 6 lines · Scott Wood
Quoted 5 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case likethis in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying
it.
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 5 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other
ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 5 lines
Quoted 5 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).
Quoted 12 lines
Quoted 2 lines
-Scott
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 7 lines
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)We should have something similar for LayerScape.
If you look closely, you will find arch-armv7 and its sub-arch including am33xx, at91, exynos, etc.
York
Quoted 75 lines · York Sun
Quoted 74 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 74 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 17 lines · FengHua
Quoted 17 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 8 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 6 lines · Scott Wood
Quoted 5 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case likethis in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying
it.
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 5 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other
ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 5 lines
Quoted 5 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).
Quoted 12 lines
Quoted 2 lines
-Scott
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)
Which one does "#inculde <asm/arch/foo.h>" refer to?
-Scott
Quoted 80 lines · Scott Wood
Quoted 79 lines · York Sun
Quoted 78 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 77 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 17 lines · FengHua
Quoted 17 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 8 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 6 lines · Scott Wood
Quoted 5 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case likethis in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying
it.
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 5 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other
ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 5 lines
Quoted 5 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).
Quoted 12 lines
Quoted 2 lines
-Scott
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?
arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
York
Quoted 32 lines · York Sun
Quoted 31 lines · Scott Wood
Quoted 29 lines · York Sun
Quoted 28 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 21 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 10 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)
Quoted 6 lines
Quoted 2 lines
Which one does "#inculde <
asm/arch/foo.h>" refer to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
-Scott
Quoted 36 lines · Scott Wood
Quoted 35 lines · York Sun
Quoted 33 lines · Scott Wood
Quoted 22 lines · York Sun
Quoted 21 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 21 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 10 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?
Quoted 7 lines
Quoted 3 lines
arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
It can't. That's why I am struggling. My temporary workaround is to include those headers in sub-arch headers.
York
Quoted 41 lines · York Sun
Quoted 40 lines · Scott Wood
Quoted 38 lines · York Sun
Quoted 27 lines · Scott Wood
Quoted 26 lines · York Sun
Quoted 25 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 24 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 10 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
Quoted 6 lines
Quoted 3 lines
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
It can't. That's why I am struggling. My temporary workaround is to include those headers in sub-arch headers.
My question is, more specifically, what is happening today on armv7 relative to this problem?
-Scott
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 37 lines · Scott Wood
Quoted 36 lines · York Sun
Quoted 34 lines · Scott Wood
Quoted 22 lines · York Sun
Quoted 21 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 21 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM To:
FengHua Cc: trini; sun york-R58495; u-boot Subject: Re:
[U-Boot] When to create a SoC directory for ARMQuoted 11 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h. or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file. Maybe we should distinguish architecture specific include directory and SOC specific include directory.Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Usually in '
arch/arm/include/asm' we have both: - arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..) - arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?
Quoted 6 lines
Quoted 3 lines
arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ? Or do we have a volunteer for a big re-jiggering of includes? Adding a <plat/> like the kernel has would be helpful in some cases, like this.
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJSRJ3CAAoJENk4IS6UOR1WA7UQALKfEQBWv6KC9poxU5FWy0fF zcoT8i1YB1jsPsEnSa/QZPZJ0XLeJmJicPbctNImj1WuljMVO8cu50RTfcXgEKuX g7fLczioupYCV+2fd7FMKsG3JXG0vbLkkDTzSuFNdd4uE2awcoiKCK9LO6XK56gs /a8oS5fsPJlVPaKnvxy0xI1h2w56FtKScqUOxb4l8JpCBo/5B3FzNQ1tL1ZcG/hn Lfg09WYNUJOe0axuHE1VGIQOM8KN1d/qwZXwsPcZ8wYH+pF4kwAcg/A9TwWmvJHu VS+jz0I9wDAXyYPJEcvlDXNWOUKHjRfWLTnh4BKGPVa6jXmuq1UL1KnLBnhntxik OOsAt45mKru1VTihjqk1+1K2W7zNl100/bX1d3R902mQz/5n4t/H47DRhUa+uLOz CEdjglOASmZjnLkk8PLKOM3ZoKgJtrrePQO7xX5LPOkFytQ2AphBd1hrFLE3DG2S r3Bskj5g+FWt+c+jU+pw+P6Ct2tZFAk4uZHjnYI2sE5j0cd7P9OnR2hvEpILDUXo /Tz5sGuyBaERKKNW3965SrydetMiZZuPfQzxYczIF0ZpQaoOuHaAApyfq8VJbU4q b7frLpyvO8G/yoh4Wid6i7dQNm8FDnGWz+z+lNub9EIqSAIavIb9otFl2O6T4MvF b2sHtCcEIdjZH8SIoe/v
=ETM5
-----END PGP SIGNATURE-----
Quoted 42 lines · Tom Rini
Quoted 41 lines · Scott Wood
Quoted 39 lines · York Sun
Quoted 27 lines · Scott Wood
Quoted 26 lines · York Sun
Quoted 25 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 24 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM To:
FengHua Cc: trini; sun york-R58495; u-boot Subject: Re:
[U-Boot] When to create a SoC directory for ARMQuoted 11 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h. or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file. Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Usually in '
arch/arm/include/asm' we have both: - arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..) - arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
Quoted 5 lines
Quoted 2 lines
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ?
Hmm, the only relevant <asm/arch/mmu.h> are in armv8-specific files, so I suppose we could do that. Why not just rename it asm/armv[78], though? There are only a handful of files in both armv7 and armv8, so it shouldn't be too much of a problem. Then there's no question of where the symlink points.
-Scott
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 53 lines · Scott Wood
Quoted 44 lines · Tom Rini
Quoted 43 lines · Scott Wood
Quoted 41 lines · York Sun
Quoted 28 lines · Scott Wood
Quoted 27 lines · York Sun
Quoted 26 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 25 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM
To: FengHua Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 11 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h. or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file. Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Usually in '
arch/arm/include/asm' we have both: - arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..) - arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
Quoted 7 lines
Quoted 3 lines
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ?
Quoted 5 lines
Hmm, the only relevant <
asm/arch/mmu.h> are in armv8-specific files, so I suppose we could do that. Why not just rename it asm/armv[78], though? There are only a handful of files in both armv7 and armv8, so it shouldn't be too much of a problem. Then there's no question of where the symlink points.
That should also be fine, after a quick git grep around..
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJSRKEdAAoJENk4IS6UOR1WPEQP/1FtxXn3AgEFS/Sz0MCRb6ZK YCm1gum5DUHY7kHZfF1+jFYdUP5sFSD4mzH/V90UVPqW8atubA5jggbwC8vk4E+j HWZuv+fZJRDfMZQjs4b47EdgYh1ErTe3Xq8I5rnrgz+9+EuL5wo8Q88+7Lk9ftBd 9dIxHIRzPqixiZZy3rAbqvzrsGHzpnA1Qk9qyZwVow8PcW7bJ9B4yfOkZdxPvXVQ MEAbxhph7Z8O9E5LqI7gjjr3mCQAFNhChKBDxBxF07SurDyyf1bjnzI39HFdZJAy hWL6p+dBRVG3Jxhew6E9pEKHqvlvd5A76qaP7R9FssvaxRO777peLiP2JSHpPJoi WwwZT6p8i8+xr92PQkDYCoOrO4gAVrco1e5cOC/0Qw3eaOMyFl8HqPnPGud6t66z wgDjmsc3gBrX9rfXEMMBDk1Ef+rajJGYBcxOLhHqTM5iFhAJVNYgKPu70f/JioVW 4XpjV9r4x9pKF00ULM9Qh0bk63P0eS8oIwPjnKNS80mpBAD/awZu6wYclTgsdik6 hT0+TY/nNyu9Mr4zvUJMHAclZ+wwYmGrVaqkfREIrO9FBuiGP2Z0Pq/a5T+1KIWw 0gZx9S+vG9RquVcvkJSo0w3ieh+cBHgKLPtOOpKE726zvTNmXDodstBARQB3TauA uG8hvetIlDgJabGhu2Xk
=zmTf
-----END PGP SIGNATURE-----
Quoted 54 lines · Tom Rini
Quoted 52 lines · Scott Wood
Quoted 51 lines · Tom Rini
Quoted 39 lines · Scott Wood
Quoted 38 lines · York Sun
Quoted 36 lines · Scott Wood
Quoted 27 lines · York Sun
Quoted 26 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 25 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM
To: FengHua Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 11 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h. or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file. Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 5 lines
Quoted 5 lines
Usually in '
arch/arm/include/asm' we have both: - arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..) - arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?Quoted 7 lines
Quoted 3 lines
arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ?
Quoted 8 lines
Quoted 5 lines
Hmm, the only relevant <
asm/arch/mmu.h> are in armv8-specific files, so I suppose we could do that. Why not just rename it asm/armv[78], though? There are only a handful of files in both armv7 and armv8, so it shouldn't be too much of a problem. Then there's no question of where the symlink points.That should also be fine, after a quick git grep around..
How about arch/arm/include/asm/gpio.h? it includes <asm/arch/gpio.h>.
York
Quoted 61 lines · York Sun
Quoted 60 lines · Tom Rini
Quoted 58 lines · Scott Wood
Quoted 44 lines · Tom Rini
Quoted 43 lines · Scott Wood
Quoted 41 lines · York Sun
Quoted 28 lines · Scott Wood
Quoted 27 lines · York Sun
Quoted 26 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 25 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM
To: FengHua Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 11 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h. or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file. Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Usually in '
arch/arm/include/asm' we have both: - arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..) - arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
Quoted 7 lines
Quoted 3 lines
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ?
Hmm, the only relevant <
asm/arch/mmu.h> are in armv8-specific files, so I suppose we could do that. Why not just rename it asm/armv[78], though? There are only a handful of files in both armv7 and armv8, so it shouldn't be too much of a problem. Then there's no question of where the symlink points.
Quoted 3 lines
Quoted 2 lines
That should also be fine, after a quick git grep around..
How about
arch/arm/include/asm/gpio.h? it includes <asm/arch/gpio.h>.
gpio.h doesn't belong in the armv8 directory.
-Scott
Quoted 62 lines · Scott Wood
Quoted 61 lines · York Sun
Quoted 60 lines · Tom Rini
Quoted 58 lines · Scott Wood
Quoted 44 lines · Tom Rini
Quoted 43 lines · Scott Wood
Quoted 41 lines · York Sun
Quoted 28 lines · Scott Wood
Quoted 27 lines · York Sun
Quoted 26 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 25 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM
To: FengHua Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 11 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory. You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h. or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file. Maybe we should distinguish architecture specific include directory and SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Usually in '
arch/arm/include/asm' we have both: - arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..) - arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
Quoted 7 lines
Quoted 3 lines
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ?
Hmm, the only relevant <
asm/arch/mmu.h> are in armv8-specific files, so I suppose we could do that. Why not just rename it asm/armv[78], though? There are only a handful of files in both armv7 and armv8, so it shouldn't be too much of a problem. Then there's no question of where the symlink points.
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines
That should also be fine, after a quick git grep around..
How about
arch/arm/include/asm/gpio.h? it includes <asm/arch/gpio.h>.
gpio.hdoesn't belong in the armv8 directory.
No, it doesn't. But oddly we have a lot of them. And since it is including <asm/arch/gpio.h>, we have to make it happy.
$ find arch/arm/include/ -name gpio.h arch/arm/include/asm/arch-spear/gpio.h arch/arm/include/asm/arch-am33xx/gpio.h arch/arm/include/asm/arch-omap3/gpio.h arch/arm/include/asm/imx-common/gpio.h arch/arm/include/asm/arch-mx5/gpio.h arch/arm/include/asm/arch-tegra20/gpio.h arch/arm/include/asm/arch-rmobile/gpio.h arch/arm/include/asm/arch-tegra/gpio.h arch/arm/include/asm/gpio.h arch/arm/include/asm/arch-bcm2835/gpio.h arch/arm/include/asm/arch-mxs/gpio.h arch/arm/include/asm/arch-s3c24x0/gpio.h arch/arm/include/asm/arch-davinci/gpio.h arch/arm/include/asm/arch-nomadik/gpio.h arch/arm/include/asm/arch-armada100/gpio.h arch/arm/include/asm/arch-tegra114/gpio.h arch/arm/include/asm/arch-armv8/gpio.h arch/arm/include/asm/arch-mx6/gpio.h arch/arm/include/asm/arch-exynos/gpio.h arch/arm/include/asm/arch-omap4/gpio.h arch/arm/include/asm/arch-mx27/gpio.h arch/arm/include/asm/arch-mx35/gpio.h arch/arm/include/asm/arch-u8500/gpio.h arch/arm/include/asm/arch-mx25/gpio.h arch/arm/include/asm/arch-kirkwood/gpio.h arch/arm/include/asm/arch-omap5/gpio.h arch/arm/include/asm/arch-tegra30/gpio.h arch/arm/include/asm/arch-at91/gpio.h arch/arm/include/asm/arch-s5pc1xx/gpio.h arch/arm/include/asm/arch-mx31/gpio.h
York
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 72 lines · York Sun
Quoted 71 lines · Scott Wood
Quoted 70 lines · York Sun
Quoted 69 lines · Tom Rini
Quoted 59 lines · Scott Wood
Quoted 50 lines · Tom Rini
Quoted 49 lines · Scott Wood
Quoted 47 lines · York Sun
Quoted 32 lines · Scott Wood
Quoted 31 lines · York Sun
Quoted 29 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 28 lines
-----Original Message----- From:
u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Scott Wood Sent: Friday, September 27, 2013 12:53 AM To: FengHua Cc: trini; sun york-R58495; u-boot Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 13 lines · FengHua
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/ or some
common directory(like
include/asm/imx-common). Currently, u-boot
only link SOC specific(arch-SOC) include
directory. You could touch a mmu.h file in
arch/arm/include/asm/arch-ls2/ and include
arch/arm/include/asm/arch-armv8/mmu.h. or
move arch-armv8/mmu.h to
arch/arm/include/asm/ to make it as a
generic file. Maybe we should distinguish
architecture specific include directory and
SOC specific include directory.Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff
common to ARMv7 CPU, e.g. Global timer, SP805
WDT..) - arch-mx6 (SoC family specific. Houses
stuff like SoC specific IOMUX pads..)Which one does "#inculde <
asm/arch/foo.h>" refer
to?arm/arch is a symbolic link created at compiling time. It points to arm/arch-$(soc), if $(soc) is not defined, then it points to asm/arch-$(arch). That's my understanding.
Quoted 7 lines
Quoted 3 lines
How is that supposed to work when both arch-$(soc) and arch-$(arch) are present? Why are SoC and CPU arch confused in this way?
Primarily because it hasn't been an issue until now really. What's wrong with just saying <asm/arch-armv[78]/foo.h> as needed ?
Quoted 6 lines
Hmm, the only relevant <
asm/arch/mmu.h> are in armv8-specific files, so I suppose we could do that. Why not just rename it asm/armv[78], though? There are only a handful of files in both armv7 and armv8, so it shouldn't be too much of a problem. Then there's no question of where the symlink points.That should also be fine, after a quick git grep around..
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
How about
arch/arm/include/asm/gpio.h? it includes <asm/arch/gpio.h>.
gpio.hdoesn't belong in the armv8 directory.No, it doesn't. But oddly we have a lot of them. And since it is including <
asm/arch/gpio.h>, we have to make it happy.
No, we have to move it from asm/arch-armv8/gpio.h to asm/arch-soc/gpio.h for that family.
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJSRKmaAAoJENk4IS6UOR1WHWsQAJFfQLT7zDAQ/QODxKFecwZH yJyXQaENoHtyF3Rvbzxt6mbupjJ3gviVJrhFQUSZ9jmTokbeLRC+26g7FPqtGeWh EfpfcRHaEJ5hMkZxa/V97357DOrfitX68uCXpBMmzQcj2l1DF6SPJ3CcV8+XjoCO 5ZjKQpahBC2Pxd++cH3oPEGvy00DH55giOpVxwdBHKZGP3X/ySqoY5C54Nojg6+P r7d33vceIKLBVh4kln8bZPjFNR3BqoYfRBphgNRP6AyhEBDvuTbF0JjT107Ym1yX awo3wcmm+oGl3/ptUZh9nk8rsIbLkirhx84UZJUrb812QZnO5ORwxgExp5IRgO9T Y0ofH9bLFy2jBZwyNVzp0QPi5bhBPe8ehYTW0aFIK9eydhbNTIuxMjDXdp8TaSjC w3pq+iE13clfoFL51iI/gm09RDH4/vpb2G5VRO9tCwVCzPIxO5hG3NJ0FE3S0sJR SItirnxs+ekH/vCCC5elJRrI89kAK8OJwe0KyhQAZJYfY9R6jwmrwJxcFEvw6qwU rRrc3u6yiHUgbgnuNwUZQKoGLmVh4/5TFpE8h12zzMlI7XZmq5QnEPbSfOeiR1Np vCZZKbyMbsdc/+UNiQYABGvpOJV8OIO7fkGhhS3+LChehWYsYnff23E522QPnKn6 Kcnvd4U5EP3erixNFWc7
=A+o+
-----END PGP SIGNATURE-----
Quoted 94 lines
-----Original Message-----
From: sun york-R58495
Sent: Friday, September 27, 2013 1:19 AM
To: Sharma Bhupesh-B45370; Wood Scott-B07421; 'FengHua'
Cc: 'trini'; sun york-R58495; 'u-boot'
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 85 lines · On 09/26/2013 12:46 PM, Sharma Bhupesh-B45370 wrote:
Quoted 75 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
On Behalf Of Scott Wood
Sent: Friday, September 27, 2013 12:53 AM
To: FengHua
Cc: trini; sun york-R58495; u-boot
Subject: Re: [U-Boot] When to create a SoC directory for ARMQuoted 17 lines · FengHua
Quoted 17 lines
Date: Wed, 25 Sep 2013 20:10:13 -0500
From: Scott Wood <[email protected]>
Subject: Re: [U-Boot] When to create a SoC directory for ARM
To: sun york-R58495 <[email protected]>
Cc: Rini <[email protected]>, Wood Scott-B07421 <[email protected]>,
"u-boot at lists.denx.de" <[email protected]>, Tom
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"Quoted 8 lines · On Wed, 2013-09-25 at 20:04 -0500, sun york-R58495 wrote:
Quoted 6 lines · Scott Wood
Quoted 5 lines · York Sun
Dear Wolfgang,
I failed to find the guideline, here is my question. Pardon me if this is a dump question as I am still new to ARM.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
As David Feng post his patch set to add ARMv8 support, I am trying to enable it for Freescale implementation. Let's name it as LS2 for this discussion. I am thinking to reuse as much as possible for existing codes, which include copying some header files from powerpc partially. I noticed the SoC field in boards.cfg file and I am wondering how to use it effectively. I want to put LS2 specific headers to
arch/arm/include/asm/arch-ls2. Do I need to copy all files fromarch/arm/include/asm/arch-armv8/? There aren't many but I seemmu.his included instart.S. I have been searching case likethis in ARMv7 but didn't see shared header file (maybe I missed it). Please advise.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
LS2 is (or perhaps more accurately, contains) an implementation of ARMv8, so you should be using arch-armv8 rather than copying
it.
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
True. But I guess LS2 won't be the only "LS" Freescale is going to make. Where is the best place to put the header file for chassis related registers, like CCSR we have for mpc8xxx.
Anything that isn't deeply tied to the ARM architecture should probably just go in
include/.Quoted 5 lines
I am thinking the
best place isarch/arm/include/asm/ls2(or a better name). Like other
ARMv7 variants, I am thinking to put ls2 underarch/arm/cpu/armv8/as well, to host LS-specific code.Quoted 5 lines
Quoted 5 lines
Likewise, if it's specifically tied to armv8 it should go in
arch/arm/include/asm/arch-armv8, but I'm not sure what would be tied to both armv8 and ls2. Most likely anything LS-specific that needs to go underarch/arm/should go somewhere likearch/arm/include/asm/ls/(similar toarch/arm/include/asm/imx-common).
Quoted 12 lines
Quoted 2 lines
-Scott
all SOC specific include file should be in
arch/arm/include/asm/arch-SOC/or some common directory(likeinclude/asm/imx-common). Currently, u-boot only link SOC specific(arch-SOC) include directory.
You could touch ammu.hfile inarch/arm/include/asm/arch-ls2/and includearch/arm/include/asm/arch-armv8/mmu.h.
or movearch-armv8/mmu.htoarch/arm/include/asm/to make it as a generic file.
Maybe we should distinguish architecture specific include directory and SOC specific include directory.Quoted 3 lines
Is the XXX arch-XXX supposed to be an SoC family or a CPU family/architectutre?
Usually in '
arch/arm/include/asm' we have both:
- arch-armv7 (Arch specific. Houses stuff common to ARMv7 CPU, e.g. Global timer, SP805 WDT..)
- arch-mx6 (SoC family specific. Houses stuff like SoC specific IOMUX pads..)
Quoted 6 lines
Quoted 3 lines
We should have something similar for LayerScape.
If you look closely, you will find arch-armv7 and its sub-arch including am33xx, at91, exynos, etc.
I cannot find any sub-arch inside 'arch/arm/include/asm/arch-armv7' (I am referring to reference [1]) I think you are talking about 'arch/arm/cpu/arch-armv7'. That's not what I was referring to my original mail.
I believe David was mentioning the same in his mail (mmu.h inside 'arch/arm/include/asm/arch-armv8') .
References:
[1] http://git.denx.de/?p=u-boot.git;a=tree;f=arch/arm/include/asm/arch-armv7;h=cc9d1ccedcba6881922b12ae8377627cb8632c46;hb=HEAD
Regards,
Bhupesh