]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
2118ebb4 SP |
2 | /* |
3 | * (C) Copyright 2007-2008 | |
c9e798d3 | 4 | * Stelian Pop <[email protected]> |
2118ebb4 SP |
5 | * Lead Tech Design <www.leadtechdesign.com> |
6 | * | |
7 | * Configuation settings for the AT91SAM9RLEK board. | |
2118ebb4 SP |
8 | */ |
9 | ||
10 | #ifndef __CONFIG_H | |
11 | #define __CONFIG_H | |
12 | ||
21d671d0 XH |
13 | #include <asm/hardware.h> |
14 | ||
2118ebb4 | 15 | /* ARM asynchronous clock */ |
21d671d0 XH |
16 | #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 /* slow clock xtal */ |
17 | #define CONFIG_SYS_AT91_MAIN_CLOCK 12000000 /* main clock xtal */ | |
21d671d0 | 18 | |
21d671d0 XH |
19 | #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ |
20 | #define CONFIG_SETUP_MEMORY_TAGS 1 | |
21 | #define CONFIG_INITRD_TAG 1 | |
2118ebb4 | 22 | |
21d671d0 | 23 | #define CONFIG_ATMEL_LEGACY |
2118ebb4 SP |
24 | |
25 | /* | |
26 | * Hardware drivers | |
27 | */ | |
21d671d0 | 28 | |
761c70b8 | 29 | /* LCD */ |
761c70b8 SP |
30 | #define LCD_BPP LCD_COLOR8 |
31 | #define CONFIG_LCD_LOGO 1 | |
32 | #undef LCD_TEST_PATTERN | |
33 | #define CONFIG_LCD_INFO 1 | |
34 | #define CONFIG_LCD_INFO_BELOW_LOGO 1 | |
761c70b8 SP |
35 | #define CONFIG_ATMEL_LCD 1 |
36 | #define CONFIG_ATMEL_LCD_RGB565 1 | |
21d671d0 XH |
37 | /* Let board_init_f handle the framebuffer allocation */ |
38 | #undef CONFIG_FB_ADDR | |
21d671d0 | 39 | |
2118ebb4 | 40 | /* SDRAM */ |
21d671d0 XH |
41 | #define CONFIG_SYS_SDRAM_BASE ATMEL_BASE_CS1 |
42 | #define CONFIG_SYS_SDRAM_SIZE 0x04000000 | |
43 | ||
44 | #define CONFIG_SYS_INIT_SP_ADDR \ | |
2011dca2 | 45 | (ATMEL_BASE_SRAM + 16 * 1024 - GENERATED_GBL_DATA_SIZE) |
2118ebb4 | 46 | |
2118ebb4 | 47 | /* NAND flash */ |
74c076d6 | 48 | #ifdef CONFIG_CMD_NAND |
6d0f6bcf | 49 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
21d671d0 | 50 | #define CONFIG_SYS_NAND_BASE ATMEL_BASE_CS3 |
6d0f6bcf | 51 | #define CONFIG_SYS_NAND_DBW_8 1 |
74c076d6 JCPV |
52 | /* our ALE is AD21 */ |
53 | #define CONFIG_SYS_NAND_MASK_ALE (1 << 21) | |
54 | /* our CLE is AD22 */ | |
55 | #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) | |
56 | #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PB6 | |
57 | #define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD17 | |
2eb99ca8 | 58 | |
74c076d6 | 59 | #endif |
2118ebb4 SP |
60 | |
61 | /* Ethernet - not present */ | |
62 | ||
6d0f6bcf | 63 | #ifdef CONFIG_SYS_USE_DATAFLASH |
2118ebb4 SP |
64 | |
65 | /* bootstrap + u-boot + env + linux in dataflash on CS0 */ | |
56a61e5e WY |
66 | #define CONFIG_BOOTCOMMAND "sf probe 0; " \ |
67 | "sf read 0x22000000 0x84000 0x294000; " \ | |
68 | "bootm 0x22000000" | |
2118ebb4 | 69 | |
0b128434 | 70 | #elif CONFIG_SYS_USE_NANDFLASH |
2118ebb4 SP |
71 | |
72 | /* bootstrap + u-boot + env + linux in nandflash */ | |
65b553b7 WJ |
73 | #define CONFIG_BOOTCOMMAND "nand read 0x22000000 0x200000 0x600000; " \ |
74 | "nand read 0x21000000 0x180000 0x80000; " \ | |
75 | "bootz 0x22000000 - 0x21000000" | |
2118ebb4 | 76 | |
0b128434 WJ |
77 | #else /* CONFIG_SYS_USE_MMC */ |
78 | ||
79 | /* bootstrap + u-boot + env + linux in mmc */ | |
0b128434 WJ |
80 | #define CONFIG_BOOTCOMMAND "fatload mmc 0:1 0x21000000 at91sam9rlek.dtb; " \ |
81 | "fatload mmc 0:1 0x22000000 zImage; " \ | |
82 | "bootz 0x22000000 - 0x21000000" | |
2118ebb4 | 83 | #endif |
2118ebb4 | 84 | #endif |