public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/10] sunxi: Add Machine Support for A83T SOC
Date: Fri, 13 Nov 2015 18:19:18 +0100	[thread overview]
Message-ID: <56461B96.3050700@redhat.com> (raw)
In-Reply-To: <1447351758-10413-2-git-send-email-vishnupatekar0510@gmail.com>

Hi,

On 12-11-15 19:09, Vishnu Patekar wrote:
>   Allwinner A83T is octa-core cortex-a7 SOC.
>
> This enables support for A83T.
>
> Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com>
> ---
>   arch/arm/cpu/armv7/sunxi/cpu_info.c |  2 ++
>   board/sunxi/Kconfig                 | 11 ++++++++++-
>   include/configs/sun8i.h             |  2 ++
>   3 files changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/armv7/sunxi/cpu_info.c b/arch/arm/cpu/armv7/sunxi/cpu_info.c
> index 05fef32..c9b4bc0 100644
> --- a/arch/arm/cpu/armv7/sunxi/cpu_info.c
> +++ b/arch/arm/cpu/armv7/sunxi/cpu_info.c
> @@ -71,6 +71,8 @@ int print_cpuinfo(void)
>   	puts("CPU:   Allwinner A33 (SUN8I)\n");
>   #elif defined CONFIG_MACH_SUN9I
>   	puts("CPU:   Allwinner A80 (SUN9I)\n");
> +#elif defined CONFIG_MACH_SUN8I_A83T
> +	puts("CPU:   Allwinner A83T (SUN8I)\n");
>   #else
>   #warning Please update cpu_info.c with correct CPU information
>   	puts("CPU:   SUNXI Family\n");
> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
> index f6f2a60..ea69bf7 100644
> --- a/board/sunxi/Kconfig
> +++ b/board/sunxi/Kconfig
> @@ -68,6 +68,15 @@ config MACH_SUN8I_A33
>   	select SUPPORT_SPL
>   	select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT
>
> +config MACH_SUN8I_A83T
> +	bool "sun8i (Allwinner A83T)"
> +	select CPU_V7
> +	select CPU_V7_HAS_NONSEC
> +	select CPU_V7_HAS_VIRT
> +	select SUNXI_GEN_SUN6I
> +	select SUPPORT_SPL
> +	select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT

Please remove the CPU_V7_HAS_NONSEC, CPU_V7_HAS_VIRT and ARMV7_BOOT_SEC_DEFAULT
options here, these imply enabling PSCI support and we do not yet have PSCI
code for the A83t. This is also why you need to add RMV7_BOOT_SEC_DEFAULT=y
to your defconfig to get things to work.

We will need to figure out SMP support later for now just leave these out.



> +
>   config MACH_SUN9I
>   	bool "sun9i (Allwinner A80)"
>   	select CPU_V7
> @@ -78,7 +87,7 @@ endchoice
>   # The sun8i SoCs share a lot, this helps to avoid a lot of "if A23 || A33"
>   config MACH_SUN8I
>   	bool
> -	default y if MACH_SUN8I_A23 || MACH_SUN8I_A33
> +	default y if MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_A83T
>
>
>   config DRAM_CLK
> diff --git a/include/configs/sun8i.h b/include/configs/sun8i.h
> index 4fc6365..c139e0a 100644
> --- a/include/configs/sun8i.h
> +++ b/include/configs/sun8i.h
> @@ -25,6 +25,8 @@
>   #define CONFIG_ARMV7_PSCI_NR_CPUS	2
>   #elif defined(CONFIG_MACH_SUN8I_A33)
>   #define CONFIG_ARMV7_PSCI_NR_CPUS	4
> +#elif defined(CONFIG_MACH_SUN8I_A83T)
> +#define CONFIG_ARMV7_PSCI_NR_CPUS	8
>   #else
>   #error Unsupported sun8i variant
>   #endif
>

And this can be dropped too then.

Regards,

Hans

  reply	other threads:[~2015-11-13 17:19 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12 18:09 [U-Boot] [PATCH 00/10] basic support for Allwinner A83T SOC Vishnu Patekar
2015-11-12 18:09 ` [U-Boot] [PATCH 01/10] sunxi: Add Machine Support for " Vishnu Patekar
2015-11-13 17:19   ` Hans de Goede [this message]
2015-11-14 18:35     ` Vishnu Patekar
2015-11-12 18:09 ` [U-Boot] [PATCH 02/10] sunxi: Add support for UART0 in PB pin group on A83T Vishnu Patekar
2015-11-13 17:19   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 03/10] sunxi: power: axp818: add support for axp818 driver Vishnu Patekar
2015-11-13 17:21   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 04/10] sunxi: power: enabled support for axp818 Vishnu Patekar
2015-11-13 17:24   ` Hans de Goede
2015-11-14 18:43     ` Vishnu Patekar
2015-11-12 18:09 ` [U-Boot] [PATCH 05/10] sunxi: do not enable smp for A83T Vishnu Patekar
2015-11-13 17:24   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 06/10] sunxi: clk: add basic clocks " Vishnu Patekar
2015-11-13 17:25   ` Hans de Goede
2015-11-14 18:47     ` Vishnu Patekar
2015-11-15  2:10       ` Chen-Yu Tsai
2015-11-12 18:09 ` [U-Boot] [PATCH 07/10] sunxi: Add support for Allwinner A83T DRAM Vishnu Patekar
2015-11-13 17:25   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 08/10] sunxi: do not include display for A83T Vishnu Patekar
2015-11-13 17:25   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 09/10] sunxi: dts: sun8i: Add Allwinner A83T dtsi Vishnu Patekar
2015-11-13 17:26   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 10/10] sunxi: Add suport for A83T HomletV2 Board by Allwinner Vishnu Patekar
2015-11-13 17:27   ` Hans de Goede
2015-11-13 16:52 ` [U-Boot] [PATCH 00/10] basic support for Allwinner A83T SOC Hans de Goede
2015-11-13 17:05   ` Chen-Yu Tsai
2015-11-14 18:32   ` Vishnu Patekar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56461B96.3050700@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox