diff options
| author | Alessandro Rubini <rubini@unipv.it> | 2009-02-09 15:53:31 +0100 | 
|---|---|---|
| committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-02-22 13:39:27 +0100 | 
| commit | ef339cc2b68e4cbef3f9376a45315e1b974bbd8d (patch) | |
| tree | c7fba6bc599498eb65186fa67c7012f979cc08ea | |
| parent | 09fee8e8677a6265e89144ccc163bf00e321769e (diff) | |
| download | olio-uboot-2014.01-ef339cc2b68e4cbef3f9376a45315e1b974bbd8d.tar.xz olio-uboot-2014.01-ef339cc2b68e4cbef3f9376a45315e1b974bbd8d.zip | |
Added nomadik.h header
Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stnwireless.com>
| -rw-r--r-- | include/configs/nmdk8815.h | 24 | ||||
| -rw-r--r-- | include/nomadik.h | 39 | 
2 files changed, 41 insertions, 22 deletions
| diff --git a/include/configs/nmdk8815.h b/include/configs/nmdk8815.h index 01de08fab..a370f6cc5 100644 --- a/include/configs/nmdk8815.h +++ b/include/configs/nmdk8815.h @@ -25,6 +25,8 @@  #ifndef __CONFIG_H  #define __CONFIG_H +#include <nomadik.h> +  #define CONFIG_ARM926EJS  #define CONFIG_NOMADIK  #define CONFIG_NOMADIK_8815 @@ -163,26 +165,4 @@  #define CONFIG_SYS_MAX_FLASH_SECT	512  #define CONFIG_SYS_MAX_FLASH_BANKS	1 -/* base addresses of our peripherals */ -#define NOMADIK_SRC_BASE	0x101E0000	/* System and Reset Cnt */ -#define NOMADIK_PMU_BASE	0x101E9000	/* Power Management Unit */ -#define NOMADIK_MPMC_BASE	0x10110000	/* SDRAM Controller */ -#define NOMADIK_FSMC_BASE	0x10100000	/* FSMC Controller */ -#define NOMADIK_1NAND_BASE	0x30000000 -#define NOMADIK_GPIO0_BASE	0x101E4000 -#define NOMADIK_GPIO1_BASE	0x101E5000 -#define NOMADIK_GPIO2_BASE	0x101E6000 -#define NOMADIK_GPIO3_BASE	0x101E7000 -#define NOMADIK_CPLD_BASE	0x36000000 -#define NOMADIK_UART0_BASE	0x101FD000 -#define NOMADIK_UART1_BASE	0x101FB000 -#define NOMADIK_UART2_BASE	0x101F2000 - -#define NOMADIK_I2C1_BASE	0x101F7000	/* I2C1 interface */ -#define NOMADIK_I2C0_BASE	0x101F8000	/* I2C0 interface */ - -#define NOMADIK_RTC_BASE	0x101E8000 -#define NOMADIK_ETH0_BASE	0x36800300 -#define NOMADIK_CPLD_UART_BASE	0x36480000 -  #endif /* __CONFIG_H */ diff --git a/include/nomadik.h b/include/nomadik.h new file mode 100644 index 000000000..d9405fd28 --- /dev/null +++ b/include/nomadik.h @@ -0,0 +1,39 @@ +/* Collection of constants used to access Nomadik registers */ + +#ifndef __NOMADIK_H__ +#define __NOMADIK_H__ + +/* Base addresses of our peripherals */ +#define NOMADIK_SRC_BASE	0x101E0000	/* System and Reset Cnt */ +#define NOMADIK_PMU_BASE	0x101E9000	/* Power Management Unit */ +#define NOMADIK_MPMC_BASE	0x10110000	/* SDRAM Controller */ +#define NOMADIK_FSMC_BASE	0x10100000	/* FSMC Controller */ +#define NOMADIK_1NAND_BASE	0x30000000 +#define NOMADIK_GPIO0_BASE	0x101E4000 +#define NOMADIK_GPIO1_BASE	0x101E5000 +#define NOMADIK_GPIO2_BASE	0x101E6000 +#define NOMADIK_GPIO3_BASE	0x101E7000 +#define NOMADIK_CPLD_BASE	0x36000000 +#define NOMADIK_UART0_BASE	0x101FD000 +#define NOMADIK_UART1_BASE	0x101FB000 +#define NOMADIK_UART2_BASE	0x101F2000 + +#define NOMADIK_I2C1_BASE	0x101F7000	/* I2C1 interface */ +#define NOMADIK_I2C0_BASE	0x101F8000	/* I2C0 interface */ + +#define NOMADIK_RTC_BASE	0x101E8000 +#define NOMADIK_ETH0_BASE	0x36800300 +#define NOMADIK_CPLD_UART_BASE	0x36480000 + +/* Chip select registers ("Flexible Static Memory Controller") */ + +#define REG_FSMC_BCR0	(NOMADIK_FSMC_BASE + 0x00) +#define REG_FSMC_BTR0	(NOMADIK_FSMC_BASE + 0x04) +#define REG_FSMC_BCR1	(NOMADIK_FSMC_BASE + 0x08) +#define REG_FSMC_BTR1	(NOMADIK_FSMC_BASE + 0x0c) +#define REG_FSMC_PCR0	(NOMADIK_FSMC_BASE + 0x40) +#define REG_FSMC_PMEM0	(NOMADIK_FSMC_BASE + 0x48) +#define REG_FSMC_PATT0	(NOMADIK_FSMC_BASE + 0x4c) +#define REG_FSMC_ECCR0	(NOMADIK_FSMC_BASE + 0x54) + +#endif /* __NOMADIK_H__ */ |