[U-Boot] [U-Boot, V3, PATCH 2/3] mips: add initial support for qca956x referenced board
Daniel Schwierzeck
daniel.schwierzeck at gmail.com
Thu Mar 7 17:06:53 UTC 2019
Am Do., 7. März 2019 um 02:31 Uhr schrieb <rosysong at rosinson.com>:
>
> From: Rosy Song <rosysong at rosinson.com>
>
> QCA9563 is CPU used on AP152 board :
>
> Clock speed : 750 MHz ,
> Arch : Mips 74Kc,
> Eth : SGMII interface,
> MIMO config : 3 * 3 450M,
> 2 * USB 2.0,
>
> Signed-off-by: Rosy Song <rosysong at rosinson.com>
>
> Changes for v2:
> - coding Style cleanup
> - remove ununsed flash chip in defconfig
> - enable automatic icache / dcache size in defconfig
>
> Changes for v3:
> - add detailed information for qca956x in commit message
> ---
> arch/mips/dts/Makefile | 1 +
> arch/mips/dts/ap152.dts | 48 ++
> arch/mips/dts/qca956x.dtsi | 87 ++++
> arch/mips/mach-ath79/Kconfig | 14 +
> arch/mips/mach-ath79/Makefile | 1 +
> .../mach-ath79/include/mach/ar71xx_regs.h | 73 +++
> arch/mips/mach-ath79/include/mach/ath79.h | 3 +
> arch/mips/mach-ath79/qca956x/Makefile | 5 +
> arch/mips/mach-ath79/qca956x/clk.c | 419 ++++++++++++++++++
> arch/mips/mach-ath79/qca956x/cpu.c | 9 +
> arch/mips/mach-ath79/qca956x/ddr.c | 308 +++++++++++++
> .../mips/mach-ath79/qca956x/qca956x-ddr-tap.S | 193 ++++++++
> arch/mips/mach-ath79/reset.c | 271 +++++++++++
> board/qca/ap152/Kconfig | 15 +
> board/qca/ap152/MAINTAINERS | 6 +
> board/qca/ap152/Makefile | 3 +
> board/qca/ap152/ap152.c | 81 ++++
> configs/ap152_defconfig | 49 ++
> include/configs/ap152.h | 54 +++
> 19 files changed, 1640 insertions(+)
> create mode 100644 arch/mips/dts/ap152.dts
> create mode 100644 arch/mips/dts/qca956x.dtsi
> create mode 100644 arch/mips/mach-ath79/qca956x/Makefile
> create mode 100644 arch/mips/mach-ath79/qca956x/clk.c
> create mode 100644 arch/mips/mach-ath79/qca956x/cpu.c
> create mode 100644 arch/mips/mach-ath79/qca956x/ddr.c
> create mode 100644 arch/mips/mach-ath79/qca956x/qca956x-ddr-tap.S
> create mode 100644 board/qca/ap152/Kconfig
> create mode 100644 board/qca/ap152/MAINTAINERS
> create mode 100644 board/qca/ap152/Makefile
> create mode 100644 board/qca/ap152/ap152.c
> create mode 100644 configs/ap152_defconfig
> create mode 100644 include/configs/ap152.h
>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
(if the following comment is addressed)
...
> diff --git a/include/configs/ap152.h b/include/configs/ap152.h
> new file mode 100644
> index 0000000000..bc88506dff
> --- /dev/null
> +++ b/include/configs/ap152.h
> @@ -0,0 +1,54 @@
> +/* SPDX-License-Identifier: GPL-2.0+ */
> +/*
> + * Copyright (C) 2018 Rosy Song <rosysong at rosinson.com>
> + */
> +
> +#ifndef __CONFIG_H
> +#define __CONFIG_H
> +
> +#define CONFIG_SYS_HZ 1000
> +#define CONFIG_SYS_MHZ 375
> +#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
> +
> +#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
> +
> +#define CONFIG_SYS_MALLOC_LEN 0x40000
> +#define CONFIG_SYS_BOOTPARAMS_LEN 0x20000
> +
> +#define CONFIG_SYS_SDRAM_BASE 0x80000000
> +#define CONFIG_SYS_LOAD_ADDR 0x81000000
> +
> +#define CONFIG_SYS_INIT_RAM_ADDR 0xbd000000
> +#define CONFIG_SYS_INIT_RAM_SIZE 0x2000
> +#define CONFIG_SYS_INIT_SP_ADDR \
> + (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE - 1)
> +
> +/*
> + * Serial Port
> + */
> +#define CONFIG_SYS_NS16550_CLK 25000000
> +#define CONFIG_SYS_BAUDRATE_TABLE \
> + {9600, 19200, 38400, 57600, 115200}
> +
> +#define CONFIG_BOOTCOMMAND "sf probe;" \
> + "mtdparts default;" \
> + "bootm 0x9f060000"
> +
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> + "ipaddr=192.168.1.1\0" \
> + "serverip=192.168.1.10\0" \
boards in mainline must not have any pre-configured network settings.
The user should either use "setenv ipaddr" or dhcp".
> +
> +#define CONFIG_ENV_SPI_MAX_HZ 25000000
> +#define CONFIG_ENV_OFFSET 0x40000
> +#define CONFIG_ENV_SECT_SIZE 0x10000
> +#define CONFIG_ENV_SIZE 0x10000
> +
> +/* Miscellaneous configurable options */
> +
> +/*
> + * Diagnostics
> + */
> +#define CONFIG_SYS_MEMTEST_START 0x80100000
> +#define CONFIG_SYS_MEMTEST_END 0x83f00000
> +
> +#endif /* __CONFIG_H */
> --
> 2.17.1
>
--
- Daniel
More information about the U-Boot
mailing list