Skip to contentSkip to conversation

resubmit: ppc4xx: Remove sequoia/sequioa.h. Cleanup ppc440.h for PPC440EPX

PATCH New Niklaus Giger 1 participant 1 message Jun 27, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 resubmit: ppc4xx: Remove sequoia/sequioa.h. Cleanup ppc440.h for PPC440EPX

---
 board/amcc/sequoia/sequoia.c |    9 ++---
 board/amcc/sequoia/sequoia.h |   67 ------------------------------------------
 include/ppc440.h             |    6 ++-
 3 files changed, 8 insertions(+), 74 deletions(-)
 delete mode 100644 board/amcc/sequoia/sequoia.h
board/amcc/sequoia/sequoia.c +4 -5
index ba365ae..748abef 100644
@@ -25,7 +25,6 @@
 #include <common.h>
 #include <asm/processor.h>
 #include <ppc440.h>
-#include "sequoia.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -226,7 +225,7 @@ int misc_init_r(void)
 	if (act == NULL || strcmp(act, "hostdev") == 0)	{
 		/* SDR Setting */
 		mfsdr(SDR0_PFC1, sdr0_pfc1);
-		mfsdr(SDR0_USB0, usb2d0cr);
+		mfsdr(SDR0_USB2D0CR, usb2d0cr);
 		mfsdr(SDR0_USB2PHY0CR, usb2phy0cr);
 		mfsdr(SDR0_USB2H0CR, usb2h0cr);
 
@@ -254,7 +253,7 @@ int misc_init_r(void)
 		sdr0_pfc1 = sdr0_pfc1 | SDR0_PFC1_UES_USB2D_SEL;		/*0*/
 
 		mtsdr(SDR0_PFC1, sdr0_pfc1);
-		mtsdr(SDR0_USB0, usb2d0cr);
+		mtsdr(SDR0_USB2D0CR, usb2d0cr);
 		mtsdr(SDR0_USB2PHY0CR, usb2phy0cr);
 		mtsdr(SDR0_USB2H0CR, usb2h0cr);
 
@@ -298,7 +297,7 @@ int misc_init_r(void)
 		/* SDR Setting */
 		mfsdr(SDR0_USB2PHY0CR, usb2phy0cr);
 		mfsdr(SDR0_USB2H0CR, usb2h0cr);
-		mfsdr(SDR0_USB0, usb2d0cr);
+		mfsdr(SDR0_USB2D0CR, usb2d0cr);
 		mfsdr(SDR0_PFC1, sdr0_pfc1);
 
 		usb2phy0cr = usb2phy0cr &~SDR0_USB2PHY0CR_XOCLK_MASK;
@@ -323,7 +322,7 @@ int misc_init_r(void)
 
 		mtsdr(SDR0_USB2H0CR, usb2h0cr);
 		mtsdr(SDR0_USB2PHY0CR, usb2phy0cr);
-		mtsdr(SDR0_USB0, usb2d0cr);
+		mtsdr(SDR0_USB2D0CR, usb2d0cr);
 		mtsdr(SDR0_PFC1, sdr0_pfc1);
 
 		/*clear resets*/
board/amcc/sequoia/sequoia.h deleted +0 -67

67 lines not on this page · raw message

include/ppc440.h +4 -2
index 09f8430..8d7781d 100644
@@ -1023,7 +1023,7 @@
 #endif /* defined(CONFIG_440EP) || defined(CONFIG_440GR) */
 
 #if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
-#define SDR_USB2D0CR                 0x0320
+#define SDR0_USB2D0CR                 0x0320
 #define   SDR0_USB2D0CR_USB2DEV_EBC_SEL_MASK   0x00000004    /* USB 2.0 Device/EBC Master Selection */
 #define   SDR0_USB2D0CR_USB2DEV_SELECTION      0x00000004    /* USB 2.0 Device Selection */
 #define   SDR0_USB2D0CR_EBC_SELECTION          0x00000000    /* EBC Selection */
@@ -1421,7 +1421,7 @@
 #define uicvr  uic0vr
 #define uicvcr uic0vcr
 
-#if defined(CONFIG_440SPE)
+#if defined(CONFIG_440SPE) || defined(CONFIG_440EPX)
 /*----------------------------------------------------------------------------+
 | Clock / Power-on-reset DCR's.
 +----------------------------------------------------------------------------*/
@@ -1490,9 +1490,11 @@
 #define CPR0_OPBD_OPBDV0_DECODE(n)	((((((unsigned long)(n))>>24)-1)&0x03)+1)
 
 #define CPR0_PERD			0xE0
+#if !defined(CONFIG_440EPX)
 #define CPR0_PERD_PERDV0_MASK		0x03000000
 #define CPR0_PERD_PERDV0_ENCODE(n)	((((unsigned long)(n))&0x03)<<24)
 #define CPR0_PERD_PERDV0_DECODE(n)	((((((unsigned long)(n))>>24)-1)&0x03)+1)
+#endif
 
 #define CPR0_MALD			0x100
 #define CPR0_MALD_MALDV0_MASK		0x03000000
Signature · 21 lines
1.5.2


-- 
Niklaus Giger
Netstal Maschinen AG
CH-8752 Naefels



From "abiyani at unix dot telasic dot com" at unix.telasic.com  Wed Jun 27 19:50:28 2007
From: "abiyani at unix dot telasic dot com" at unix.telasic.com (Arun Biyani)
Date: Wed, 27 Jun 2007 10:50:28 -0700
Subject: [U-Boot-Users] U-Boot 1.2 - Cannot run hello_world
In-Reply-To: <[email protected]>
References: <mailman.29221.1182256330.29999.u-boot-users@lists.sourceforge.net>	
	<[email protected]>	
	<[email protected]>	
	<[email protected]>
	<[email protected]>
Message-ID: <[email protected]>
Quoted 56 lines · nicky geerts

try to add CFG_CMD_CACHE to the CONFIG_COMMANDS, although this options is packed with warnings in the README file

2007/6/26, at unix dot telasic dot com"@unix.telasic.com Arun Biyani <"abiyani>:

Quoted 49 lines
Quoted 16 lines · Arun Biyani

When I add CFG_CMD_ELF to the configuration, I get the error below. Maybe the CFG_CMD_ELF needs
to be coupled with some other configuration option. Please help.

My current definition is -

#define CONFIG_COMMANDS     (                              \
                           CONFIG_CMD_DFL       |     \
               CFG_CMD_ELF          |    \
               CFG_CMD_MII          |    \
               CFG_CMD_JFFS2        |     \
               CFG_CMD_NET          |     \
               CFG_CMD_DHCP         |     \
               CFG_CMD_PING             \
               )
Quoted 6 lines

The error I get is - (dcache_status & dcache_disable missing):

/home/local/bin/../lib/gcc/m68k-uclinux/4.1.1/m5307/msep-data -lgcc \
-Map u-boot.map -o u-boot
common/libcommon.a(cmd_elf.o): In function `do_bootelf':
/home/abiyani/wrk/u-boot-1.2.0/common/cmd_elf.c:62: undefined

reference

Quoted 2 lines

to `dcache_status' /home/abiyani/wrk/u-boot-1.2.0/common/cmd_elf.c:63: undefined

reference

Quoted 4 lines

to `dcache_disable'
make: *** [u-boot] Error 1
[u-boot-1.2.0$:1046]

I get this error above if I add elf file support to u-boot for Coldfire processor. Looks like cmd_elf.c
expects dcache_disable and dcache_status functions. Which library provides these symbol values?

-------------------------------------------------------------------------

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Thx. That worked.
Arun