blob: 669a8ec7c7a46c1b6bcdbf3e85c80fe9c13e225d [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
Wenyou Yange035ea72017-09-14 11:07:44 +080018#ifdef CONFIG_SD_BOOT
Wu, Josh42587542015-03-30 14:51:19 +080019#else
Wu, Josh244caf02015-08-19 19:11:20 +080020
Wenyou Yange035ea72017-09-14 11:07:44 +080021#ifdef CONFIG_NAND_BOOT
Wu, Josh244caf02015-08-19 19:11:20 +080022/* u-boot env in nand flash */
Wenyou Yange035ea72017-09-14 11:07:44 +080023#elif CONFIG_SPI_BOOT
Wu, Josh12e84412015-08-19 19:11:21 +080024/* u-boot env in serial flash, by default is bus 0 and cs 0 */
Wu, Josh244caf02015-08-19 19:11:20 +080025#endif
26
Wu, Josh42587542015-03-30 14:51:19 +080027#endif
28
Wu, Josh42587542015-03-30 14:51:19 +080029#endif