add at91 SoC access with c structures
PATCH 1/8 add at91 SoC access with c structures
* prepare board config files for Soc access update
Signed-off-by Jens Scharsig <[email protected]>
--- include/configs/afeb9260.h | 4 ++ include/configs/at91cap9adk.h | 4 ++ include/configs/at91rm9200dk.h | 13 ++++- include/configs/at91rm9200ek.h | 11 ++++- include/configs/at91sam9260ek.h | 5 ++ include/configs/at91sam9261ek.h | 5 ++ include/configs/at91sam9263ek.h | 83 ++++++++++++++++++------------------ include/configs/at91sam9m10g45ek.h | 6 +++ include/configs/at91sam9rlek.h | 5 ++ include/configs/cmc_pu2.h | 10 ++++- include/configs/cpu9260.h | 4 ++ include/configs/cpuat91.h | 2 + include/configs/csb637.h | 10 ++++- include/configs/kb9202.h | 10 ++++- include/configs/m501sk.h | 11 ++++- include/configs/meesc.h | 5 ++ include/configs/mp2usb.h | 10 ++++- include/configs/pm9261.h | 7 +++ include/configs/pm9263.h | 5 ++ include/configs/sbc35_a9g20.h | 4 ++ include/configs/tny_a9260.h | 4 ++ 21 files changed, 166 insertions(+), 52 deletions(-)
include/configs/afeb9260.h +4 -0
@@ -26,6 +26,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_MAIN_CLOCK 18429952/* from 18.432 MHz crystal */ #define CONFIG_SYS_HZ 1000
@@ -45,6 +47,7 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -107,6 +110,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC13 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* NOR flash - no real flash on this board */
include/configs/at91cap9adk.h +4 -0
@@ -27,6 +27,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_MAIN_CLOCK 12000000/* 12 MHz crystal */ #define CONFIG_SYS_HZ 1000
@@ -47,6 +49,7 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -131,6 +134,7 @@#define CONFIG_SYS_NAND_BASE 0x40000000#define CONFIG_SYS_NAND_DBW_8 1 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* Ethernet */
include/configs/at91rm9200dk.h +10 -3
@@ -25,6 +25,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91C_MAIN_CLOCK 179712000/* from 18.432 MHz crystal (18432000 / 4 * 39) */ #define AT91C_MASTER_CLOCK 59904000/* peripheral clock (AT91C_MASTER_CLOCK / 3) */
@@ -113,8 +115,6 @@#define CONFIG_CMD_DHCP #define CONFIG_CMD_MII -#include <asm/arch/AT91RM9200.h> /* needed for port definitions */ -#define CONFIG_NR_DRAM_BANKS 1#define PHYS_SDRAM 0x20000000#define PHYS_SDRAM_SIZE 0x2000000/* 32 megs */
@@ -122,7 +122,14 @@#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM#define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144 -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif +#define CONFIG_NET_RETRY_COUNT 20#define CONFIG_AT91C_USE_RMII
include/configs/at91rm9200ek.h +9 -2
@@ -26,6 +26,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ /* * from 18.432 MHz crystal
@@ -135,7 +137,6 @@#undef CONFIG_CMD_MISC#undef CONFIG_CMD_LOADS -#include <asm/arch/AT91RM9200.h> /* needed for port definitions */ /* Options for MMC/SD Card */ #define CONFIG_DOS_PARTITION 1#undef CONFIG_MMC
@@ -145,7 +146,13 @@/* * Network Driver Setting */ -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif #define CONFIG_NET_RETRY_COUNT 20#define CONFIG_AT91C_USE_RMII
include/configs/at91sam9260ek.h +5 -0
@@ -27,6 +27,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_MAIN_CLOCK 18432000/* 18.432 MHz crystal */ #define CONFIG_SYS_HZ 1000
@@ -52,6 +54,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -123,6 +127,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC13 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* NOR flash - no real flash on this board */
include/configs/at91sam9261ek.h +5 -0
@@ -27,6 +27,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_MAIN_CLOCK 18432000/* 18.432 MHz crystal */ #define CONFIG_SYS_HZ 1000
@@ -50,6 +52,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -133,6 +137,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC15 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* NOR flash - no real flash on this board */
include/configs/at91sam9263ek.h +41 -42
137 lines not on this page · raw message
include/configs/at91sam9m10g45ek.h +6 -0
@@ -27,6 +27,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_MAIN_CLOCK 12000000/* from 12 MHz crystal */ #define CONFIG_SYS_HZ 1000
@@ -50,6 +52,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -118,6 +122,7 @@/* NOR flash, if populated */ #ifndef CONFIG_CMD_NAND #define CONFIG_SYS_NO_FLASH 1 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #else #define CONFIG_SYS_FLASH_CFI 1#define CONFIG_FLASH_CFI_DRIVER 1
@@ -141,6 +146,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC8 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* Ethernet */
include/configs/at91sam9rlek.h +5 -0
@@ -27,6 +27,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_MAIN_CLOCK 12000000/* 12 MHz crystal */ #define CONFIG_SYS_HZ 1000
@@ -47,6 +49,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -119,6 +123,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PB6#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD17 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* Ethernet - not present */
include/configs/cmc_pu2.h +9 -1
@@ -25,6 +25,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91C_MAIN_CLOCK 179712000/* from 18.432 MHz crystal (18432000 / 4 * 39) */ #define AT91C_MASTER_CLOCK (AT91C_MAIN_CLOCK/3)/* peripheral clock */
@@ -152,7 +154,13 @@#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM#define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144 -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif #define CONFIG_NET_RETRY_COUNT 20#define CONFIG_AT91C_USE_RMII
include/configs/cpu9260.h +4 -0
@@ -31,6 +31,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +#define CONFIG_DISPLAY_CPUINFO 1#define AT91_MAIN_CLOCK 18432000
@@ -242,6 +244,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
include/configs/cpuat91.h +2 -0
@@ -26,6 +26,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +#ifdef CONFIG_CPUAT91_RAM #define CONFIG_SKIP_LOWLEVEL_INIT 1#define CONFIG_SKIP_RELOCATE_UBOOT 1
include/configs/csb637.h +9 -1
@@ -26,6 +26,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91C_MAIN_CLOCK 184320000/* from 3.6864 MHz crystal (3686400 * 50) */ #define AT91C_MASTER_CLOCK 46080000/* (AT91C_MAIN_CLOCK/4) peripheral clock */
@@ -126,7 +128,13 @@#define CONFIG_SYS_ALT_MEMTEST 1#define CONFIG_SYS_MEMTEST_SCRATCH CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 4 -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif #define CONFIG_NET_RETRY_COUNT 20#undef CONFIG_AT91C_USE_RMII
include/configs/kb9202.h +9 -1
@@ -29,6 +29,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91C_MAIN_CLOCK 180000000/* from 10 MHz crystal */ #define AT91C_MASTER_CLOCK 60000000/* peripheral clock (AT91C_MASTER_CLOCK / 3) */
@@ -115,7 +117,13 @@#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM#define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - (512*1024) -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif #define CONFIG_NET_RETRY_COUNT 20#define CONFIG_SYS_FLASH_BASE 0x10000000
include/configs/m501sk.h +10 -1
@@ -27,6 +27,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ /* from 18.432 MHz crystal (18432000 / 4 * 39) */ #define AT91C_MAIN_CLOCK 179712000
@@ -34,6 +36,7 @@#define AT91C_MASTER_CLOCK 59904000#define AT91_SLOW_CLOCK 32768/* slow clock */ +#define CONFIG_AT91RM9200 1/* It's an Atmel AT91RM9200 SoC */ #define CONFIG_AT91RM9200DK 1/* on an AT91RM9200DK Board */ #undef CONFIG_USE_IRQ/* we don't need IRQ/FIQ stuff */ #define CONFIG_CMDLINE_TAG 1/* enable passing of ATAGs */
@@ -166,7 +169,13 @@/* CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144 */ #define CONFIG_SYS_MEMTEST_END 0x00100000 -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif #define CONFIG_NET_RETRY_COUNT 20#define CONFIG_AT91C_USE_RMII
include/configs/meesc.h +5 -0
@@ -31,6 +31,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* Common stuff */ #define CONFIG_SYS_HZ 1000/* decrementer freq */ #define CONFIG_MEESC 1/* Board is esd MEESC */
@@ -56,6 +58,8 @@*/ /* Console output */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -121,6 +125,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PD15#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PA22 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif /* Ethernet */
include/configs/mp2usb.h +9 -1
@@ -28,6 +28,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91C_MAIN_CLOCK 179712000/* from 18.432 MHz crystal (18432000 / 4 * 45) */ #define AT91C_MASTER_CLOCK (AT91C_MAIN_CLOCK/3)/* peripheral clock */
@@ -181,7 +183,13 @@#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM#define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144 -#define CONFIG_DRIVER_ETHER +#define CONFIG_NET_MULTI 1 +#ifdef CONFIG_NET_MULTI +#define CONFIG_DRIVER_AT91EMAC 1 +#define CONFIG_SYS_RX_ETH_BUFFER 8 +#else +#define CONFIG_DRIVER_ETHER 1 +#endif #define CONFIG_NET_RETRY_COUNT 20#undef CONFIG_AT91C_USE_RMII
include/configs/pm9261.h +7 -0
@@ -28,6 +28,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define AT91_CPU_NAME "AT91SAM9261"
@@ -157,6 +159,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -236,6 +240,9 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PA16 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ + +/* NOR flash */ #define CONFIG_SYS_FLASH_CFI 1#define CONFIG_FLASH_CFI_DRIVER 1
include/configs/pm9263.h +5 -0
@@ -28,6 +28,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +/* ARM asynchronous clock */ #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
@@ -171,6 +173,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
@@ -259,6 +263,7 @@#define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PD15#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PB30 +#define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */ #endif #define CONFIG_CMD_JFFS2 1
include/configs/sbc35_a9g20.h +4 -0
@@ -26,6 +26,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +#if defined(CONFIG_SBC35_A9G20_NANDFLASH ) || defined(CONFIG_SBC35_A9G20_EEPROM )#define CONFIG_SBC35_A9G20 #endif
@@ -57,6 +59,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART #define CONFIG_USART0 #undef CONFIG_USART1
include/configs/tny_a9260.h +4 -0
@@ -30,6 +30,8 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_AT91_LEGACY +#if defined(CONFIG_TNY_A9260_NANDFLASH ) || defined(CONFIG_TNY_A9260_EEPROM )#define CONFIG_TNY_A9260 #elif defined(CONFIG_TNY_A9G20_NANDFLASH ) || defined(CONFIG_TNY_A9G20_EEPROM )
@@ -66,6 +68,8 @@/* * Hardware drivers */ +#define CONFIG_AT91_GPIO 1 +#define CONFIG_ATMEL_USART 1#undef CONFIG_USART0#undef CONFIG_USART1
Signature · 1 line
1.6.0.2