blob: 0105cb0a80e24b0bfef1eed5981c7948e823a60d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stelian Pop0bf5cad2008-05-08 18:52:25 +02002/*
3 * (C) Copyright 2007-2008
Stelian Pop5ee0c7f2011-11-01 00:00:39 +01004 * Stelian Pop <stelian@popies.net>
Stelian Pop0bf5cad2008-05-08 18:52:25 +02005 * Lead Tech Design <www.leadtechdesign.com>
6 *
7 * Configuation settings for the AT91SAM9RLEK board.
Stelian Pop0bf5cad2008-05-08 18:52:25 +02008 */
9
10#ifndef __CONFIG_H
11#define __CONFIG_H
12
Xu, Hong0c0fb212011-08-01 03:56:53 +000013#include <asm/hardware.h>
14
Stelian Pop0bf5cad2008-05-08 18:52:25 +020015/* ARM asynchronous clock */
Xu, Hong0c0fb212011-08-01 03:56:53 +000016#define CONFIG_SYS_AT91_SLOW_CLOCK 32768 /* slow clock xtal */
17#define CONFIG_SYS_AT91_MAIN_CLOCK 12000000 /* main clock xtal */
Stelian Pop0bf5cad2008-05-08 18:52:25 +020018
Stelian Pop0bf5cad2008-05-08 18:52:25 +020019/*
20 * Hardware drivers
21 */
Xu, Hong0c0fb212011-08-01 03:56:53 +000022
Stelian Popcea5c532008-05-08 14:52:32 +020023/* LCD */
Stelian Popcea5c532008-05-08 14:52:32 +020024#define LCD_BPP LCD_COLOR8
Xu, Hong0c0fb212011-08-01 03:56:53 +000025/* Let board_init_f handle the framebuffer allocation */
26#undef CONFIG_FB_ADDR
Xu, Hong0c0fb212011-08-01 03:56:53 +000027
Stelian Pop0bf5cad2008-05-08 18:52:25 +020028/* SDRAM */
Xu, Hong0c0fb212011-08-01 03:56:53 +000029#define CONFIG_SYS_SDRAM_BASE ATMEL_BASE_CS1
30#define CONFIG_SYS_SDRAM_SIZE 0x04000000
31
32#define CONFIG_SYS_INIT_SP_ADDR \
Wenyou Yang3cbbeb12017-04-18 15:28:27 +080033 (ATMEL_BASE_SRAM + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
Stelian Pop0bf5cad2008-05-08 18:52:25 +020034
Stelian Pop0bf5cad2008-05-08 18:52:25 +020035/* NAND flash */
Jean-Christophe PLAGNIOL-VILLARDc9539ba2009-03-22 10:22:34 +010036#ifdef CONFIG_CMD_NAND
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020037#define CONFIG_SYS_MAX_NAND_DEVICE 1
Xu, Hong0c0fb212011-08-01 03:56:53 +000038#define CONFIG_SYS_NAND_BASE ATMEL_BASE_CS3
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020039#define CONFIG_SYS_NAND_DBW_8 1
Jean-Christophe PLAGNIOL-VILLARDc9539ba2009-03-22 10:22:34 +010040/* our ALE is AD21 */
41#define CONFIG_SYS_NAND_MASK_ALE (1 << 21)
42/* our CLE is AD22 */
43#define CONFIG_SYS_NAND_MASK_CLE (1 << 22)
44#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PB6
45#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD17
Wolfgang Denk1f797742009-07-18 21:52:24 +020046
Jean-Christophe PLAGNIOL-VILLARDc9539ba2009-03-22 10:22:34 +010047#endif
Stelian Pop0bf5cad2008-05-08 18:52:25 +020048
49/* Ethernet - not present */
50
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020051#ifdef CONFIG_SYS_USE_DATAFLASH
Stelian Pop0bf5cad2008-05-08 18:52:25 +020052
53/* bootstrap + u-boot + env + linux in dataflash on CS0 */
Stelian Pop0bf5cad2008-05-08 18:52:25 +020054
Wu, Josh7ff194f2015-02-02 17:51:01 +080055#elif CONFIG_SYS_USE_NANDFLASH
Stelian Pop0bf5cad2008-05-08 18:52:25 +020056
57/* bootstrap + u-boot + env + linux in nandflash */
Stelian Pop0bf5cad2008-05-08 18:52:25 +020058
Wu, Josh7ff194f2015-02-02 17:51:01 +080059#else /* CONFIG_SYS_USE_MMC */
60
61/* bootstrap + u-boot + env + linux in mmc */
Stelian Pop0bf5cad2008-05-08 18:52:25 +020062#endif
Stelian Pop0bf5cad2008-05-08 18:52:25 +020063#endif