mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
a09fea1d28
- In ARMv8 NXP Layerscape platforms we also need to make use of CONFIG_SYS_RELOC_GD_ENV_ADDR now, do so. - On ENV_IS_IN_REMOTE, CONFIG_ENV_OFFSET is never used, drop the define to 0. - Add Kconfig entry for ENV_ADDR. - Make ENV_ADDR / ENV_OFFSET depend on the env locations that use it. - Add ENV_xxx_REDUND options that depend on their primary option and SYS_REDUNDAND_ENVIRONMENT - On a number of PowerPC platforms, use SPL_ENV_ADDR not CONFIG_ENV_ADDR for the pre-main-U-Boot environment location. - On ENV_IS_IN_SPI_FLASH, check not for CONFIG_ENV_ADDR being set but rather it being non-zero, as it will now be zero by default. - Rework the env_offset absolute in env/embedded.o to not use CONFIG_ENV_OFFSET as it was the only use of ENV_OFFSET within ENV_IS_IN_FLASH. - Migrate all platforms. Cc: Wolfgang Denk <wd@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: uboot-stm32@st-md-mailman.stormreply.com Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
98 lines
2.6 KiB
C
98 lines
2.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2013 Broadcom Corporation.
|
|
*/
|
|
|
|
#ifndef __BCM28155_AP_H
|
|
#define __BCM28155_AP_H
|
|
|
|
#include <linux/sizes.h>
|
|
#include <asm/arch/sysmap.h>
|
|
|
|
/* CPU, chip, mach, etc */
|
|
#define CONFIG_KONA
|
|
#define CONFIG_SKIP_LOWLEVEL_INIT
|
|
|
|
/*
|
|
* Memory configuration
|
|
*/
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
|
#define CONFIG_SYS_SDRAM_SIZE 0x80000000
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN SZ_4M /* see armv7/start.S. */
|
|
|
|
/* GPIO Driver */
|
|
#define CONFIG_KONA_GPIO
|
|
|
|
/* MMC/SD Driver */
|
|
#define CONFIG_SYS_SDIO_BASE0 SDIO1_BASE_ADDR
|
|
#define CONFIG_SYS_SDIO_BASE1 SDIO2_BASE_ADDR
|
|
#define CONFIG_SYS_SDIO_BASE2 SDIO3_BASE_ADDR
|
|
#define CONFIG_SYS_SDIO_BASE3 SDIO4_BASE_ADDR
|
|
#define CONFIG_SYS_SDIO0_MAX_CLK 48000000
|
|
#define CONFIG_SYS_SDIO1_MAX_CLK 48000000
|
|
#define CONFIG_SYS_SDIO2_MAX_CLK 48000000
|
|
#define CONFIG_SYS_SDIO3_MAX_CLK 48000000
|
|
#define CONFIG_SYS_SDIO0 "sdio1"
|
|
#define CONFIG_SYS_SDIO1 "sdio2"
|
|
#define CONFIG_SYS_SDIO2 "sdio3"
|
|
#define CONFIG_SYS_SDIO3 "sdio4"
|
|
|
|
/* I2C Driver */
|
|
#define CONFIG_SYS_I2C
|
|
#define CONFIG_SYS_I2C_KONA
|
|
#define CONFIG_SYS_SPD_BUS_NUM 3 /* Start with PMU bus */
|
|
#define CONFIG_SYS_MAX_I2C_BUS 4
|
|
#define CONFIG_SYS_I2C_BASE0 BSC1_BASE_ADDR
|
|
#define CONFIG_SYS_I2C_BASE1 BSC2_BASE_ADDR
|
|
#define CONFIG_SYS_I2C_BASE2 BSC3_BASE_ADDR
|
|
#define CONFIG_SYS_I2C_BASE3 PMU_BSC_BASE_ADDR
|
|
|
|
/* Timer Driver */
|
|
#define CONFIG_SYS_TIMER_RATE 32000
|
|
#define CONFIG_SYS_TIMER_COUNTER (TIMER_BASE_ADDR + 4) /* STCLO offset */
|
|
|
|
/* Init functions */
|
|
|
|
/* Some commands use this as the default load address */
|
|
#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
|
|
|
|
/* No mtest functions as recommended */
|
|
|
|
/*
|
|
* This is the initial SP which is used only briefly for relocating the u-boot
|
|
* image to the top of SDRAM. After relocation u-boot moves the stack to the
|
|
* proper place.
|
|
*/
|
|
#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
|
|
|
|
/* Serial Info */
|
|
#define CONFIG_SYS_NS16550_SERIAL
|
|
/* Post pad 3 bytes after each reg addr */
|
|
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
|
|
#define CONFIG_SYS_NS16550_CLK 13000000
|
|
#define CONFIG_SYS_NS16550_COM1 0x3e000000
|
|
|
|
/* must fit into GPT:u-boot-env partition */
|
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
|
|
|
/* console configuration */
|
|
#define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */
|
|
#define CONFIG_SYS_MAXARGS 64
|
|
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
|
|
|
|
/*
|
|
* One partition type must be defined for part.c
|
|
* This is necessary for the fatls command to work on an SD card
|
|
* for example.
|
|
*/
|
|
|
|
/* version string, parser, etc */
|
|
|
|
/* Initial upstream - boot to cmd prompt only */
|
|
#define CONFIG_BOOTCOMMAND ""
|
|
|
|
#define CONFIG_USBID_ADDR 0x34052c46
|
|
|
|
#endif /* __BCM28155_AP_H */
|