MIPS: add support for Broadcom MIPS BCM3380 SoC family

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Álvaro Fernández Rojas
2017-05-16 18:42:42 +02:00
committed by Daniel Schwierzeck
parent 603058f4ab
commit 23a2168398
5 changed files with 230 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/*
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __CONFIG_BMIPS_BCM3380_H
#define __CONFIG_BMIPS_BCM3380_H
/* CPU */
#define CONFIG_SYS_MIPS_TIMER_FREQ 166500000
/* RAM */
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_SYS_SDRAM_BASE 0x80000000
/* U-Boot */
#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE + 0x100000
#if defined(CONFIG_BMIPS_BOOT_RAM)
#define CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_SYS_INIT_SP_OFFSET 0x2000
#endif
#endif /* __CONFIG_BMIPS_BCM3380_H */

View File

@@ -0,0 +1,23 @@
/*
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*
* Derived from Broadcom GPL Source Code:
* Copyright (C) Broadcom Corporation
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __DT_BINDINGS_CLOCK_BCM3380_H
#define __DT_BINDINGS_CLOCK_BCM3380_H
#define BCM3380_CLK0_DDR 0
#define BCM3380_CLK0_FPM 1
#define BCM3380_CLK0_CRYPTO 2
#define BCM3380_CLK0_EPHY 3
#define BCM3380_CLK0_PCIE 16
#define BCM3380_CLK0_SPI 17
#define BCM3380_CLK0_ENET0 18
#define BCM3380_CLK0_ENET1 19
#define BCM3380_CLK0_PCM 27
#endif /* __DT_BINDINGS_CLOCK_BCM3380_H */

View File

@@ -0,0 +1,16 @@
/*
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*
* Derived from Broadcom GPL Source Code:
* Copyright (C) Broadcom Corporation
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __DT_BINDINGS_RESET_BCM3380_H
#define __DT_BINDINGS_RESET_BCM3380_H
#define BCM3380_RST0_SPI 0
#define BCM3380_RST0_PCM 13
#endif /* __DT_BINDINGS_RESET_BCM3380_H */