[U-Boot] [PATCHv2 09/13] arm: add Cortex A9 support
Nishanth Menon
menon.nishanth at gmail.com
Fri Apr 9 13:29:51 CEST 2010
On 04/08/2010 08:43 AM, Rabin Vincent wrote:
> Add Cortex A9 support by copying the code for Cortex A8. The only
> change is a removal of some OMAP3 specific code.
Thanks :), I was hoping to help in the near future by adding OMAP4 code
in cortex a9.. ;)
>
> Acked-by: Michael Brandt<michael.brandt at stericsson.com>
> Signed-off-by: Rabin Vincent<rabin.vincent at stericsson.com>
> ---
> cpu/{arm_cortexa8 => arm_cortexa9}/Makefile | 0
> cpu/{arm_cortexa8 => arm_cortexa9}/config.mk | 0
> cpu/{arm_cortexa8 => arm_cortexa9}/cpu.c | 0
> cpu/{arm_cortexa8 => arm_cortexa9}/start.S | 26 +------------------------
> cpu/{arm_cortexa8 => arm_cortexa9}/u-boot.lds | 2 +-
> 5 files changed, 2 insertions(+), 26 deletions(-)
> copy cpu/{arm_cortexa8 => arm_cortexa9}/Makefile (100%)
> copy cpu/{arm_cortexa8 => arm_cortexa9}/config.mk (100%)
> copy cpu/{arm_cortexa8 => arm_cortexa9}/cpu.c (100%)
> copy cpu/{arm_cortexa8 => arm_cortexa9}/start.S (91%)
> copy cpu/{arm_cortexa8 => arm_cortexa9}/u-boot.lds (97%)
looking at the % of reuse.. for a9, cant we avoid a copy? since a9 and
a8 are both v7 instruction set anyways,
how about cpu/arm_cortexa8,a9 etc replaced by cpu/armv7 and have cortex
and soc specific code within it?
option a:
cpu/armv7/
common code.[cS..]
/cortex_a8/
/cortex_a9/
soc specific code:
option 1:
cpu/armv7/cortex_a[89]/soc
or option 2:
cpu/armv7/soc
option b:
cpu/armv7_common/
cpu/cortex_a8/
cpu/cortex_a9/
(socs thier usual place cpu/cortex_a[89]/socx
option c:
cpu/armv7
cpu/armv7/soc1
cpu/armv7/soc2
etc..
v7 has both a8 and a9 codebases..
Regards,
Nishanth Menon
More information about the U-Boot
mailing list