mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 22:33:18 +00:00
f76750d111
This converts the following to Kconfig: CONFIG_CONS_INDEX CONFIG_DEBUG_UART_CLOCK CONFIG_FSL_TZPC_BP147 CONFIG_GENERIC_ATMEL_MCI CONFIG_IDENT_STRING CONFIG_LIBATA CONFIG_LNX_KRNL_IMG_TEXT_OFFSET_BASE CONFIG_LPC32XX_GPIO CONFIG_MP CONFIG_MPC8XXX_GPIO CONFIG_MTD_PARTITIONS CONFIG_MVGBE CONFIG_MXC_GPIO CONFIG_NR_DRAM_BANKS CONFIG_OF_BOARD_SETUP CONFIG_OF_STDOUT_VIA_ALIAS CONFIG_OF_SYSTEM_SETUP CONFIG_PREBOOT CONFIG_ROCKCHIP_SERIAL CONFIG_RTC_ENABLE_32KHZ_OUTPUT CONFIG_RTC_MV CONFIG_SCSI_AHCI CONFIG_SF_DEFAULT_BUS CONFIG_SF_DEFAULT_CS CONFIG_SF_DEFAULT_SPEED CONFIG_SOFT_SPI CONFIG_SPI_FLASH_EON CONFIG_SPI_FLASH_MACRONIX CONFIG_SPI_FLASH_MTD CONFIG_SPI_FLASH_SPANSION CONFIG_SPI_FLASH_SST CONFIG_SPI_FLASH_STMICRO CONFIG_SUPPORT_RAW_INITRD CONFIG_SYS_ARCH_TIMER CONFIG_SYS_BOARD CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE CONFIG_SYS_DCACHE_OFF CONFIG_SYS_FDT_SAVE_ADDRESS CONFIG_SYS_FLASH_CFI CONFIG_SYS_FSL_ERRATUM_ESDHC135 CONFIG_SYS_HAS_SERDES CONFIG_SYS_L2CACHE_OFF CONFIG_SYS_LITTLE_ENDIAN CONFIG_SYS_LOAD_ADDR CONFIG_SYS_MMCSD_FS_BOOT_PARTITION CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR CONFIG_SYS_NS16550 CONFIG_SYS_PLLFIN CONFIG_SYS_SPI_U_BOOT_OFFS CONFIG_TIMER_SYS_TICK_CH CONFIG_USB_EHCI_FSL CONFIG_U_QE CONFIG_VERSION_VARIABLE Signed-off-by: Tom Rini <trini@konsulko.com>
92 lines
2.6 KiB
C
92 lines
2.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Configuration settings for the VInCo platform.
|
|
*
|
|
* Based on the settings for the SAMA5-EK board
|
|
* Copyright (C) 2014 Atmel
|
|
* Bo Shen <voice.shen@atmel.com>
|
|
* Copyright (C) 2015 Free Electrons
|
|
* Gregory CLEMENT gregory.clement@free-electrons.com
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#include "at91-sama5_common.h"
|
|
|
|
/* The value in the common file is too far away for the VInCo platform */
|
|
|
|
/* serial console */
|
|
#define CONFIG_USART_BASE 0xfc00c000
|
|
#define CONFIG_USART_ID 30
|
|
|
|
/* Timer */
|
|
#define CONFIG_SYS_TIMER_COUNTER 0xfc06863c
|
|
|
|
/* SDRAM */
|
|
#define CONFIG_SYS_SDRAM_BASE 0x20000000
|
|
#define CONFIG_SYS_SDRAM_SIZE 0x4000000
|
|
|
|
#define CONFIG_SYS_INIT_SP_ADDR \
|
|
(CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE)
|
|
|
|
/* SerialFlash */
|
|
|
|
#ifdef CONFIG_CMD_SF
|
|
#define CONFIG_ATMEL_SPI0
|
|
#endif
|
|
|
|
/* MMC */
|
|
|
|
#ifdef CONFIG_CMD_MMC
|
|
#define ATMEL_BASE_MMCI 0xfc000000
|
|
#define CONFIG_SYS_MMC_CLK_OD 500000
|
|
|
|
/* For generating MMC partitions */
|
|
|
|
#endif
|
|
|
|
/* USB device */
|
|
|
|
/* Ethernet Hardware */
|
|
#define CONFIG_RMII
|
|
#define CONFIG_NET_RETRY_COUNT 20
|
|
#define CONFIG_MACB_SEARCH_PHY
|
|
|
|
#ifdef CONFIG_SPI_BOOT
|
|
/* bootstrap + u-boot + env + linux in serial flash */
|
|
/* Use our own mapping for the VInCo platform */
|
|
|
|
/* Update the bootcommand according to our mapping for the VInCo platform */
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"kernel_start=0x20000\0" \
|
|
"kernel_size=0x800000\0" \
|
|
"mmcblksize=0x200\0" \
|
|
"oftaddr=0x21000000\0" \
|
|
"loadaddr=0x22000000\0" \
|
|
"update_uboot=tftp ${loadaddr} u-boot.bin;sf probe 0;" \
|
|
"sf erase 0x20000 0x4B000; sf write ${loadaddr} 0x20000 0x4B000\0" \
|
|
"create_partition=setexpr dtb_start ${kernel_start} + 0x400000;" \
|
|
"setexpr rootfs_start ${kernel_start} + ${kernel_size};" \
|
|
"setenv partitions 'name=kernel,size=${kernel_size}," \
|
|
"start=${kernel_start};name=rootfs,size=-';" \
|
|
"gpt write mmc 0 ${partitions} \0"\
|
|
"f2blk_size=setexpr fileblksize ${filesize} / ${mmcblksize};" \
|
|
"setexpr fileblksize ${fileblksize} + 1\0" \
|
|
"store_kernel=tftp ${loadaddr} zImage; run f2blk_size;" \
|
|
"setexpr k_blksize ${fileblksize};" \
|
|
"setexpr k_offset ${kernel_start} / ${mmcblksize};" \
|
|
"mmc write ${fileaddr} ${k_offset} ${fileblksize}\0" \
|
|
"store_dtb=tftp ${loadaddr} at91-vinco.dtb; run f2blk_size;" \
|
|
"setexpr dtb_blksize ${fileblksize};" \
|
|
"setexpr dtb_offset ${dtb_start} / ${mmcblksize};" \
|
|
"mmc write ${fileaddr} ${dtb_offset} ${fileblksize}\0" \
|
|
"store_rootfs=tftp ${loadaddr} vinco-gateway-image-vinco.ext4;" \
|
|
"setexpr rootfs_offset ${rootfs_start} / ${mmcblksize};" \
|
|
"mmc write ${fileaddr} ${rootfs_offset} ${fileblksize}\0" \
|
|
"bootdelay=0\0"
|
|
|
|
#endif
|
|
|
|
#endif
|