blob: b93c67be52a2d0398bddfe5bf05f6c3d3af04baf [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Wu, Josh42587542015-03-30 14:51:19 +08002/*
3 * Common part of configuration settings for the AT91 SAMA5 board.
4 *
5 * Copyright (C) 2015 Atmel Corporation
6 * Josh Wu <josh.wu@atmel.com>
Wu, Josh42587542015-03-30 14:51:19 +08007 */
8
9#ifndef __AT91_SAMA5_COMMON_H
10#define __AT91_SAMA5_COMMON_H
11
Simon Glassfa4689a2019-12-06 21:41:35 -070012#include <linux/kconfig.h>
13
Wu, Josh42587542015-03-30 14:51:19 +080014/* ARM asynchronous clock */
15#define CONFIG_SYS_AT91_SLOW_CLOCK 32768
16#define CONFIG_SYS_AT91_MAIN_CLOCK 12000000 /* from 12 MHz crystal */
17
Wu, Josh42587542015-03-30 14:51:19 +080018/*
19 * BOOTP options
20 */
21#define CONFIG_BOOTP_BOOTFILESIZE
Wu, Josh42587542015-03-30 14:51:19 +080022
Wenyou Yange035ea72017-09-14 11:07:44 +080023#ifdef CONFIG_SD_BOOT
Wu, Josh42587542015-03-30 14:51:19 +080024#else
Wu, Josh244caf02015-08-19 19:11:20 +080025
Wenyou Yange035ea72017-09-14 11:07:44 +080026#ifdef CONFIG_NAND_BOOT
Wu, Josh244caf02015-08-19 19:11:20 +080027/* u-boot env in nand flash */
Wenyou Yange035ea72017-09-14 11:07:44 +080028#elif CONFIG_SPI_BOOT
Wu, Josh12e84412015-08-19 19:11:21 +080029/* u-boot env in serial flash, by default is bus 0 and cs 0 */
Wu, Josh244caf02015-08-19 19:11:20 +080030#endif
31
Wu, Josh42587542015-03-30 14:51:19 +080032#endif
33
Wu, Josh42587542015-03-30 14:51:19 +080034#endif