[U-Boot] [PATCH] board: ns2: Add support for Broadcom Northstar 2

Jon Mason jon.mason at broadcom.com
Wed Feb 22 23:51:52 UTC 2017


On Wed, Feb 22, 2017 at 11:10 AM, Tom Rini <trini at konsulko.com> wrote:
> On Fri, Feb 17, 2017 at 04:17:10PM -0500, Jon Mason wrote:
>
>> Add support for the Broadcom Northstar2 SoC and SVK (bcm958712k).  The
>> BCM5871X is a series of quad-core 64-bit 2GHz ARMv8 Cortex-A57
>> processors targeting a broad range of networking applications.
>>
>> Signed-off-by: Jon Mason <jon.mason at broadcom.com>
>> ---
>>  arch/arm/Kconfig                      |  9 ++++++
>>  board/broadcom/bcm958712k/MAINTAINERS |  6 ++++
>>  board/broadcom/bcmns2/Kconfig         | 15 +++++++++
>>  board/broadcom/bcmns2/Makefile        |  7 +++++
>>  board/broadcom/bcmns2/northstar2.c    | 57 +++++++++++++++++++++++++++++++++++
>>  configs/bcm958712k_defconfig          |  9 ++++++
>>  include/configs/bcm_northstar2.h      | 55 +++++++++++++++++++++++++++++++++
>>  7 files changed, 158 insertions(+)
>>  create mode 100644 board/broadcom/bcm958712k/MAINTAINERS
>>  create mode 100644 board/broadcom/bcmns2/Kconfig
>>  create mode 100644 board/broadcom/bcmns2/Makefile
>>  create mode 100644 board/broadcom/bcmns2/northstar2.c
>>  create mode 100644 configs/bcm958712k_defconfig
>>  create mode 100644 include/configs/bcm_northstar2.h
>
> I assume you have some follow up patches to add some code under
> arch/arm/mach-xxxx ?  Or is there just a whole bunch of stuff that's
> done in ATF or similar instead?  Also:

Most/all of the ugliness is being hidden by ATF.  So, I believe there
is no need for arch/arm/mach-iproc for NS2.

I will have more patches coming to add drivers for boot devices.
However, I was going to add those serially.  The side benefit

>> +int dram_init(void)
>> +{
>> +     gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE;
>> +     return 0;
>> +}
>
> You should be using get_ram_size() here.

Will do

> [snip]
>> +CONFIG_BOOTDELAY=30
>
> Having 30 seconds here is huge.  I know in your talk you were mentioning
> how to interrupt boot but I'd really rather not see this exceed 10 and 5
> is usually sufficient.

5 secs is fine

Also, Alexander Graf mentioned needing to add DISTRO_DEFAULTS (IIRC).

I'll make those changes and push a v2.  Thanks for the reviews!

Thanks,
Jon



>
> --
> Tom


More information about the U-Boot mailing list