Blame view
include/configs/at91sam9260ek.h
4.7 KB
0176d43e7 Add support for A... |
1 2 |
/* * (C) Copyright 2007-2008 |
c9e798d35 Fix Stelian's ema... |
3 |
* Stelian Pop <stelian@popies.net> |
0176d43e7 Add support for A... |
4 5 |
* Lead Tech Design <www.leadtechdesign.com> * |
df486b1fa at91: Support for... |
6 |
* Configuation settings for the AT91SAM9260EK & AT91SAM9G20EK boards. |
0176d43e7 Add support for A... |
7 |
* |
1a4596601 Add GPL-2.0+ SPDX... |
8 |
* SPDX-License-Identifier: GPL-2.0+ |
0176d43e7 Add support for A... |
9 10 11 12 |
*/ #ifndef __CONFIG_H #define __CONFIG_H |
8c6407fce AT91 rework: fix ... |
13 14 15 16 17 |
/* * SoC must be defined first, before hardware.h is included. * In this case SoC is defined in boards.cfg. */ #include <asm/hardware.h> |
425de62d4 add new CONFIG_AT... |
18 |
|
8c6407fce AT91 rework: fix ... |
19 20 21 22 23 24 |
/* * Warning: changing CONFIG_SYS_TEXT_BASE requires * adapting the initial boot program. * Since the linker has to swallow that define, we must use a pure * hex number here! */ |
0176d43e7 Add support for A... |
25 |
|
8c6407fce AT91 rework: fix ... |
26 27 28 |
/* ARM asynchronous clock */ #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 /* slow clock xtal */ #define CONFIG_SYS_AT91_MAIN_CLOCK 18432000 /* main clock xtal */ |
df486b1fa at91: Support for... |
29 |
|
8c6407fce AT91 rework: fix ... |
30 31 32 |
/* Define actual evaluation board type from used processor type */ #ifdef CONFIG_AT91SAM9G20 # define CONFIG_AT91SAM9G20EK /* It's an Atmel AT91SAM9G20 EK */ |
df486b1fa at91: Support for... |
33 |
#else |
8c6407fce AT91 rework: fix ... |
34 |
# define CONFIG_AT91SAM9260EK /* It's an Atmel AT91SAM9260 EK */ |
df486b1fa at91: Support for... |
35 |
#endif |
8c6407fce AT91 rework: fix ... |
36 |
/* Misc CPU related */ |
dc39ae951 at91sam9/at91cap:... |
37 |
#define CONFIG_ARCH_CPU_INIT |
8c6407fce AT91 rework: fix ... |
38 39 40 |
#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG |
0176d43e7 Add support for A... |
41 |
#define CONFIG_SKIP_LOWLEVEL_INIT |
8c6407fce AT91 rework: fix ... |
42 43 44 |
/* general purpose I/O */ #define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */ |
0176d43e7 Add support for A... |
45 |
|
0176d43e7 Add support for A... |
46 47 48 49 |
/* * BOOTP options */ #define CONFIG_BOOTP_BOOTFILESIZE 1 |
0176d43e7 Add support for A... |
50 51 |
/* |
8c6407fce AT91 rework: fix ... |
52 53 54 |
* SDRAM: 1 bank, min 32, max 128 MB * Initialized before u-boot gets started. */ |
0176d43e7 Add support for A... |
55 |
#define CONFIG_NR_DRAM_BANKS 1 |
8c6407fce AT91 rework: fix ... |
56 57 58 59 60 61 62 63 64 65 |
#define CONFIG_SYS_SDRAM_BASE ATMEL_BASE_CS1 #define CONFIG_SYS_SDRAM_SIZE 0x04000000 /* * Initial stack pointer: 4k - GENERATED_GBL_DATA_SIZE in internal SRAM, * leaving the correct space for initial global data structure above * that address while providing maximum stack area below. */ #ifdef CONFIG_AT91SAM9XE # define CONFIG_SYS_INIT_SP_ADDR \ |
83f1c2ef3 configs: at91sam9... |
66 |
(ATMEL_BASE_SRAM + 16 * 1024 - GENERATED_GBL_DATA_SIZE) |
8c6407fce AT91 rework: fix ... |
67 68 |
#else # define CONFIG_SYS_INIT_SP_ADDR \ |
83f1c2ef3 configs: at91sam9... |
69 |
(ATMEL_BASE_SRAM1 + 16 * 1024 - GENERATED_GBL_DATA_SIZE) |
8c6407fce AT91 rework: fix ... |
70 |
#endif |
0176d43e7 Add support for A... |
71 |
|
d0a513731 at91sam9260ek: mo... |
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
/* * The (arm)linux board id set by generic code depending on configured board * (see boards.cfg for different boards) */ #ifdef CONFIG_AT91SAM9G20 /* the sam9g20 variants have two different board ids */ # ifdef CONFIG_AT91SAM9G20EK_2MMC /* we may be setup for the 2MMC variant of at91sam9g20ek */ # define CONFIG_MACH_TYPE MACH_TYPE_AT91SAM9G20EK_2MMC # else /* or the normal at91sam9g20ek */ # define CONFIG_MACH_TYPE MACH_TYPE_AT91SAM9G20EK # endif #else /* otherwise default to good old at91sam9260ek */ # define CONFIG_MACH_TYPE MACH_TYPE_AT91SAM9260EK #endif |
0176d43e7 Add support for A... |
89 |
/* NAND flash */ |
74c076d6c at91sam9/at91cap:... |
90 91 |
#ifdef CONFIG_CMD_NAND #define CONFIG_NAND_ATMEL |
8c6407fce AT91 rework: fix ... |
92 93 94 95 96 97 98 |
#define CONFIG_SYS_MAX_NAND_DEVICE 1 #define CONFIG_SYS_NAND_BASE ATMEL_BASE_CS3 #define CONFIG_SYS_NAND_DBW_8 #define CONFIG_SYS_NAND_MASK_ALE (1 << 21) #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14 #define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC13 |
74c076d6c at91sam9/at91cap:... |
99 |
#endif |
0176d43e7 Add support for A... |
100 |
|
0176d43e7 Add support for A... |
101 |
/* USB */ |
2b7178afc at91: move usb dr... |
102 |
#define CONFIG_USB_ATMEL |
dcd2f1a0d arm: atmel: get r... |
103 |
#define CONFIG_USB_ATMEL_CLK_SEL_PLLB |
0176d43e7 Add support for A... |
104 |
#define CONFIG_USB_OHCI_NEW 1 |
6d0f6bcf3 rename CFG_ macro... |
105 106 107 108 |
#define CONFIG_SYS_USB_OHCI_CPU_INIT 1 #define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00500000 /* AT91SAM9260_UHP_BASE */ #define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9260" #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 |
0176d43e7 Add support for A... |
109 |
|
6d0f6bcf3 rename CFG_ macro... |
110 |
#define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ |
0176d43e7 Add support for A... |
111 |
|
8c6407fce AT91 rework: fix ... |
112 |
#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE |
6d0f6bcf3 rename CFG_ macro... |
113 |
#define CONFIG_SYS_MEMTEST_END 0x23e00000 |
0176d43e7 Add support for A... |
114 |
|
6d0f6bcf3 rename CFG_ macro... |
115 |
#ifdef CONFIG_SYS_USE_DATAFLASH_CS0 |
0176d43e7 Add support for A... |
116 117 |
/* bootstrap + u-boot + env + linux in dataflash on CS0 */ |
f166af88a board: at91sam926... |
118 |
#define CONFIG_ENV_OFFSET 0x4200 |
0e8d15866 rename CFG_ENV ma... |
119 |
#define CONFIG_ENV_SIZE 0x4200 |
f166af88a board: at91sam926... |
120 121 122 123 124 |
#define CONFIG_ENV_SECT_SIZE 0x210 #define CONFIG_ENV_SPI_MAX_HZ 15000000 #define CONFIG_BOOTCOMMAND "sf probe 0:0; " \ "sf read 0x22000000 0x84000 0x294000; " \ "bootm 0x22000000" |
0176d43e7 Add support for A... |
125 |
|
6d0f6bcf3 rename CFG_ macro... |
126 |
#elif CONFIG_SYS_USE_DATAFLASH_CS1 |
0176d43e7 Add support for A... |
127 |
|
f166af88a board: at91sam926... |
128 |
#define CONFIG_ENV_OFFSET 0x4200 |
0e8d15866 rename CFG_ENV ma... |
129 |
#define CONFIG_ENV_SIZE 0x4200 |
f166af88a board: at91sam926... |
130 131 132 133 134 |
#define CONFIG_ENV_SECT_SIZE 0x210 #define CONFIG_ENV_SPI_MAX_HZ 15000000 #define CONFIG_BOOTCOMMAND "sf probe 0:1; " \ "sf read 0x22000000 0x84000 0x294000; " \ "bootm 0x22000000" |
0176d43e7 Add support for A... |
135 |
|
248020734 arm: at91: add at... |
136 |
#elif defined(CONFIG_SYS_USE_NANDFLASH) |
0176d43e7 Add support for A... |
137 138 |
/* bootstrap + u-boot + env + linux in nandflash */ |
83f1c2ef3 configs: at91sam9... |
139 |
#define CONFIG_ENV_OFFSET 0x120000 |
0c58cfa9d ARM: at91: change... |
140 |
#define CONFIG_ENV_OFFSET_REDUND 0x100000 |
0e8d15866 rename CFG_ENV ma... |
141 |
#define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ |
0c58cfa9d ARM: at91: change... |
142 |
#define CONFIG_BOOTCOMMAND "nand read 0x22000000 0x200000 0x300000; bootm" |
0176d43e7 Add support for A... |
143 |
|
248020734 arm: at91: add at... |
144 145 |
#else /* CONFIG_SYS_USE_MMC */ /* bootstrap + u-boot + env + linux in mmc */ |
248020734 arm: at91: add at... |
146 147 148 149 150 151 152 |
/* For FAT system, most cases it should be in the reserved sector */ #define CONFIG_ENV_OFFSET 0x2000 #define CONFIG_ENV_SIZE 0x1000 #define CONFIG_SYS_MMC_ENV_DEV 0 #define CONFIG_BOOTCOMMAND \ "fatload mmc 0:1 0x22000000 uImage; bootm" |
0176d43e7 Add support for A... |
153 |
#endif |
0176d43e7 Add support for A... |
154 155 156 |
/* * Size of malloc() pool */ |
6d0f6bcf3 rename CFG_ macro... |
157 |
#define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000) |
0176d43e7 Add support for A... |
158 |
|
0176d43e7 Add support for A... |
159 |
#endif |