New QorIQ p1020 based board support from Arcturus Networks Inc.
PATCH 1/1 New QorIQ p1020 based board support from Arcturus Networks Inc.
New QorIQ p1020 based board support from Arcturus Networks Inc.
http://www.arcturusnetworks.com/products/ucp1020/
---
arch/powerpc/cpu/mpc85xx/Kconfig | 4 + board/Arcturus/ucp1020/Kconfig | 44 ++ board/Arcturus/ucp1020/MAINTAINERS | 7 + board/Arcturus/ucp1020/Makefile | 33 ++ board/Arcturus/ucp1020/README | 54 ++ board/Arcturus/ucp1020/cmd_arc.c | 215 +++++++ board/Arcturus/ucp1020/ddr.c | 161 ++++++ board/Arcturus/ucp1020/law.c | 25 + board/Arcturus/ucp1020/spl.c | 126 ++++ board/Arcturus/ucp1020/spl_minimal.c | 67 +++ board/Arcturus/ucp1020/tlb.c | 101 ++++ board/Arcturus/ucp1020/ucp1020.c | 383 ++++++++++++ configs/UCP1020_SPIFLASH_defconfig | 6 + configs/UCP1020_defconfig | 5 + include/configs/UCP1020.h | 1058 ++++++++++++++++++++++++++++++++++ 15 files changed, 2289 insertions(+) create mode 100644 board/Arcturus/ucp1020/Kconfig create mode 100644 board/Arcturus/ucp1020/MAINTAINERS create mode 100644 board/Arcturus/ucp1020/Makefile create mode 100644 board/Arcturus/ucp1020/README create mode 100644 board/Arcturus/ucp1020/cmd_arc.c create mode 100644 board/Arcturus/ucp1020/ddr.c create mode 100644 board/Arcturus/ucp1020/law.c create mode 100644 board/Arcturus/ucp1020/spl.c create mode 100644 board/Arcturus/ucp1020/spl_minimal.c create mode 100644 board/Arcturus/ucp1020/tlb.c create mode 100644 board/Arcturus/ucp1020/ucp1020.c create mode 100644 configs/UCP1020_SPIFLASH_defconfig create mode 100644 configs/UCP1020_defconfig create mode 100644 include/configs/UCP1020.h
arch/powerpc/cpu/mpc85xx/Kconfig +4 -0
@@ -153,6 +153,9 @@ config TARGET_XPEDITE537X config TARGET_XPEDITE550X bool "Support xpedite550x" +config TARGET_UCP1020 + bool "Support uCP1020" + endchoice source "board/freescale/b4860qds/Kconfig"
@@ -194,5 +197,6 @@ source "board/stx/stxssa/Kconfig" source "board/xes/xpedite520x/Kconfig" source "board/xes/xpedite537x/Kconfig" source "board/xes/xpedite550x/Kconfig" +source "board/Arcturus/ucp1020/Kconfig" endmenu
board/Arcturus/ucp1020/Kconfig new file +44 -0
44 lines not on this page · raw message
board/Arcturus/ucp1020/MAINTAINERS new file +7 -0
@@ -0,0 +1,7 @@ +UCP1020 BOARD +M: Oleksandr Zhadan and Michael Durrant <[email protected]> +S: Maintained +F: board/Arcturus/ucp1020/ +F: include/configs/UCP1020.h +F: configs/UCP1020_defconfig +F: configs/UCP1020_SPIFLASH_defconfig
board/Arcturus/ucp1020/Makefile new file +33 -0
@@ -0,0 +1,33 @@ +# +# Copyright 2013-2015 Arcturus Networks, Inc. +# based on board/freescale/p1_p2_rdb_pc/Makefile +# original copyright follows: +# Copyright 2010-2011 Freescale Semiconductor, Inc. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +MINIMAL= + +ifdef CONFIG_SPL_BUILD +ifdef CONFIG_SPL_INIT_MINIMAL +MINIMAL=y +endif +endif + +ifdef MINIMAL + +obj-y += spl_minimal.o tlb.o law.o + +else +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +endif + +obj-y += ucp1020.o +obj-y += ddr.o +obj-y += law.o +obj-y += tlb.o +obj-y += cmd_arc.o + +endif
board/Arcturus/ucp1020/README new file +54 -0
54 lines not on this page · raw message
board/Arcturus/ucp1020/cmd_arc.c new file +215 -0
215 lines not on this page · raw message
board/Arcturus/ucp1020/ddr.c new file +161 -0
161 lines not on this page · raw message
board/Arcturus/ucp1020/law.c new file +25 -0
@@ -0,0 +1,25 @@ +/* +* Copyright 2013-2015 Arcturus Networks, Inc. +* http://www.arcturusnetworks.com/products/ucp1020/ +* based on board/freescale/p1_p2_rdb_pc/spl.c +* original copyright follows: +* Copyright 2013 Freescale Semiconductor, Inc. +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> +#include <asm/fsl_law.h> +#include <asm/mmu.h> + +struct law_entry law_table[] = { +#ifdef CONFIG_VSC7385_ENET +SET_LAW (CONFIG_SYS_VSC7385_BASE_PHYS ,LAW_SIZE_1M ,LAW_TRGT_IF_LBC ), +#endif +SET_LAW (CONFIG_SYS_FLASH_BASE_PHYS ,LAW_SIZE_64M ,LAW_TRGT_IF_LBC ), +#ifdef CONFIG_SYS_NAND_BASE_PHYS + SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC), +#endif +}; + +int num_law_entries =ARRAY_SIZE (law_table);
board/Arcturus/ucp1020/spl.c new file +126 -0
126 lines not on this page · raw message
board/Arcturus/ucp1020/spl_minimal.c new file +67 -0
67 lines not on this page · raw message
board/Arcturus/ucp1020/tlb.c new file +101 -0
101 lines not on this page · raw message
board/Arcturus/ucp1020/ucp1020.c new file +383 -0
383 lines not on this page · raw message
configs/UCP1020_SPIFLASH_defconfig new file +6 -0
@@ -0,0 +1,6 @@ +CONFIG_PPC=y +CONFIG_MPC85xx=y +CONFIG_TARGET_UCP1020=y +CONFIG_TARGET_UCP1020_SPIFLASH=y +CONFIG_SPI_FLASH=y +CONFIG_UCP1020=y
configs/UCP1020_defconfig new file +5 -0
@@ -0,0 +1,5 @@ +CONFIG_PPC=y +CONFIG_MPC85xx=y +CONFIG_TARGET_UCP1020=y +CONFIG_SPI_FLASH=y +CONFIG_UCP1020=y
include/configs/UCP1020.h new file +1058 -0
1,058 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 1/1 New QorIQ p1020 based board support from Arcturus Networks Inc.
Oleks,
I suggest to change the subject to "powerpc/mpc85xx: Add board support for ucp1020".
Quoted 6 lines · Oleksandr G Zhadan
New QorIQ p1020 based board support from Arcturus Networks Inc.
http://www.arcturusnetworks.com/products/ucp1020/Signed-off-by Michael Durrant <[email protected]>Signed-off-by Oleksandr G Zhadan <[email protected]>---
<snip>
Quoted 5 lines
board/Arcturus/ucp1020/cmd_arc.c new file +5
-0+int get_arc_info (void ) +{ +int location =1 ; + + flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
board/Arcturus/ucp1020/cmd_arc.c line 118
Quoted 10 lines
board/Arcturus/ucp1020/cmd_arc.c new file +10
-0+ CONFIG_ENV_SPI_MAX_HZ, CONFIG_ENV_SPI_MODE); + +if (spi_flash_read (flash, (0x200 -sizeof (smac)),sizeof (smac), smac)) { + location++; +if (spi_flash_read (flash, (0x400 -sizeof (smac)),sizeof (smac), smac)) { + location++; +if (spi_flash_read (flash, (CONFIG_ENV_SECT_SIZE +0x200 -sizeof (smac)),sizeof (smac), smac)) { + location++; +if (spi_flash_read (flash, (CONFIG_ENV_SECT_SIZE +0x400 -sizeof (smac)),sizeof (smac), smac)) { +printf ("%s: ERROR: Failed to read all %d factory info spi locations\n" , __func__, location);
These lines are way too long. Please wrap them back at or before 80 characters. You can keep printf string in one line, but the arguments should be in next.
There are many lines over 80 characters. Please try to fix all.
York