Skip to contentSkip to conversation

change common at91sam9263 files after AT91 rework

PATCH Superseded Asen Chavdarov Dimov 2 participants 3 messages Jun 9, 2011 – Aug 4, 2011

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover change common at91sam9263 files after AT91 rework

---
 arch/arm/include/asm/arch-at91/at91sam9263.h     |    1 +
 arch/arm/include/asm/arch-at91/at91sam9_sdramc.h |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/include/asm/arch-at91/at91sam9263.h +1 -0
index 2a1d6ee..23c2868 100644
@@ -129,6 +129,7 @@
  */
 #define ATMEL_PIO_PORTS		5		/* this SoCs has 5 PIO */
 #define ATMEL_BASE_PIO		ATMEL_BASE_PIOA
+#define ATMEL_PMC_UHP		AT91SAM926x_PMC_UHP
 
 /*
  * Cpu Name
arch/arm/include/asm/arch-at91/at91sam9_sdramc.h +1 -1
index 54159a7..2d4c49e 100644
@@ -20,7 +20,7 @@
 #ifdef __ASSEMBLY__
 
 #ifndef ATMEL_BASE_SDRAMC
-#define ATMEL_BASE_SDRAMC	AT91_SDRAMC0_BASE
+#define ATMEL_BASE_SDRAMC	ATMEL_BASE_SDRAMC0
 #endif
 
 #define AT91_ASM_SDRAMC_MR	ATMEL_BASE_SDRAMC
Signature · 1 line
1.7.4.4
#1 lore raw

PATCH 1/1 make pm9263 buildable for v2011.06 release

---
 board/ronetix/pm9263/led.c    |    9 +++----
 board/ronetix/pm9263/pm9263.c |   42 +++++++++++++++++++---------------------
 boards.cfg                    |    2 +-
 include/configs/pm9263.h      |   17 +++++++++------
 4 files changed, 35 insertions(+), 35 deletions(-)
board/ronetix/pm9263/led.c +4 -5
index 4e585a4..d6eb69f 100644
@@ -24,17 +24,16 @@
  */
 
 #include <common.h>
-#include <asm/arch/at91sam9263.h>
 #include <asm/arch/at91_pmc.h>
-#include <asm/arch/at91_pio.h>
-#include <asm/arch/io.h>
+#include <asm/arch/gpio.h>
+#include <asm/io.h>
 
 void coloured_LED_init(void)
 {
-	at91_pmc_t	*pmc	= (at91_pmc_t *) AT91_PMC_BASE;
+	struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
 
 	/* Enable clock */
-	writel(1 << AT91SAM9263_ID_PIOB, &pmc->pcer);
+	writel(1 << ATMEL_ID_PIOB, &pmc->pcer);
 
 	at91_set_pio_output(CONFIG_RED_LED, 1);
 	at91_set_pio_output(CONFIG_GREEN_LED, 1);
board/ronetix/pm9263/pm9263.c +20 -22

131 lines not on this page · raw message

boards.cfg +1 -1
index ac20c81..6f0d6bc 100644
@@ -100,7 +100,7 @@ meesc_dataflash              arm         arm926ejs   meesc               esd
 otc570                       arm         arm926ejs   otc570              esd            at91        otc570:AT91SAM9263,SYS_USE_NANDFLASH
 otc570_dataflash             arm         arm926ejs   otc570              esd            at91        otc570:AT91SAM9263,SYS_USE_DATAFLASH
 pm9261                       arm         arm926ejs   -                   ronetix        at91
-pm9263                       arm         arm926ejs   -                   ronetix        at91
+pm9263                       arm         arm926ejs   pm9263              ronetix        at91        pm9263:AT91SAM9263
 da830evm                     arm         arm926ejs   da8xxevm            davinci        davinci
 da850evm                     arm         arm926ejs   da8xxevm            davinci        davinci
 hawkboard                    arm         arm926ejs   da8xxevm            davinci        davinci
include/configs/pm9263.h +10 -7
index 96e12f2..1e282d2 100644
@@ -28,6 +28,12 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+/*
+ * SoC must be defined first, before hardware.h is included.
+ * In this case SoC is defined in boards.cfg.
+ */
+#include <asm/hardware.h>
+
 /* ARM asynchronous clock */
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
@@ -36,16 +42,15 @@
 #define MASTER_PLL_MUL		65
 #define MAIN_PLL_DIV		2	/* 2 or 4 */
 #define CONFIG_SYS_AT91_MAIN_CLOCK	18432000
+#define CONFIG_SYS_AT91_SLOW_CLOCK	32768		/* slow clock xtal */
 
 #define CONFIG_SYS_HZ		1000
 
-#define CONFIG_ARM926EJS	1	/* This is an ARM926EJS Core	*/
-#define CONFIG_AT91SAM9263	1	/* It's an Atmel AT91SAM9263 SoC*/
+#define CONFIG_SYS_AT91_CPU_NAME	"AT91SAM9263"
 #define CONFIG_PM9263		1	/* on a Ronetix PM9263 Board	*/
 #define CONFIG_ARCH_CPU_INIT
 #undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff	*/
 #define CONFIG_SYS_TEXT_BASE	0
-#define CONFIG_AT91FAMILY
 
 /* clocks */
 #define CONFIG_SYS_MOR_VAL						\
@@ -170,10 +175,8 @@
  */
 #define CONFIG_AT91_GPIO	1
 #define CONFIG_ATMEL_USART	1
-#undef CONFIG_USART0
-#undef CONFIG_USART1
-#undef CONFIG_USART2
-#define CONFIG_USART3		1	/* USART 3 is DBGU */
+#define CONFIG_USART_BASE		ATMEL_BASE_DBGU
+#define	CONFIG_USART_ID			ATMEL_ID_SYS
 
 /* LCD */
 #define CONFIG_LCD			1
Signature · 1 line
1.7.4.4
#2 lore raw

PATCH 1/1 make pm9263 buildable for v2011.06 release

Dear Asen Dimov,

Quoted 8 lines
---
 board/ronetix/pm9263/led.c    |    9 +++----
 board/ronetix/pm9263/pm9263.c |   42 +++++++++++++++++++---------------------
 boards.cfg                    |    2 +-
 include/configs/pm9263.h      |   17 +++++++++------
 4 files changed, 35 insertions(+), 35 deletions(-)

Configuring for pm9263 - Board: pm9263, Options: AT91SAM9263
text data bss dec hex filename
225515 11028 72264 308807 4b647 ./u-boot

Applied to u-boot-atmel/master,
thanks,
Reinhard