Skip to contentSkip to conversation

85xx/p1_p2_rdb: Added RevD board support.

PATCH RESEND New Poonam Aggrwal 3 participants 3 messages Jun 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 85xx/p1_p2_rdb: Added RevD board support.

- Removed RevB, as it was a development stage board.
- From now only RevC and RevD will be supported.

---
 board/freescale/p1_p2_rdb/p1_p2_rdb.c |   25 ++++++++-----------------
 1 files changed, 8 insertions(+), 17 deletions(-)
board/freescale/p1_p2_rdb/p1_p2_rdb.c +8 -17
index 31cdf9a..d870a3b 100644
@@ -52,32 +52,23 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #define SYSCLK_MASK	0x00200000
 #define BOARDREV_MASK	0x10100000
-#define BOARDREV_B	0x10100000
 #define BOARDREV_C	0x00100000
+#define BOARDREV_D	0x00000000
 
 #define SYSCLK_66	66666666
-#define SYSCLK_50	50000000
 #define SYSCLK_100	100000000
 
 unsigned long get_board_sys_clk(ulong dummy)
 {
 	volatile ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
-	u32 val_gpdat, sysclk_gpio, board_rev_gpio;
+	u32 val_gpdat, sysclk_gpio;
 
 	val_gpdat = pgpio->gpdat;
 	sysclk_gpio = val_gpdat & SYSCLK_MASK;
-	board_rev_gpio = val_gpdat & BOARDREV_MASK;
-	if (board_rev_gpio == BOARDREV_C) {
-		if(sysclk_gpio == 0)
-			return SYSCLK_66;
-		else
-			return SYSCLK_100;
-	} else if (board_rev_gpio == BOARDREV_B) {
-		if(sysclk_gpio == 0)
-			return SYSCLK_66;
-		else
-			return SYSCLK_50;
-	}
+	if(sysclk_gpio == 0)
+		return SYSCLK_66;
+	else
+		return SYSCLK_100;
 	return 0;
 }
 
@@ -104,8 +95,8 @@ int checkboard (void)
 	board_rev_gpio = val_gpdat & BOARDREV_MASK;
 	if (board_rev_gpio == BOARDREV_C)
 		board_rev = 'C';
-	else if (board_rev_gpio == BOARDREV_B)
-		board_rev = 'B';
+	else if (board_rev_gpio == BOARDREV_D)
+		board_rev = 'D';
 	else
 		panic ("Unexpected Board REV %x detected!!\n", board_rev_gpio);
 
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH RESEND 1/1 85xx/p1_p2_rdb: Added RevD board support.

Dear Poonam Aggrwal,

Quoted 5 lines · In message <[email protected]> you…

- Removed RevB, as it was a development stage board.
- From now only RevC and RevD will be supported.

Thanks for the quick update, but did you read my comments?

board/freescale/p1_p2_rdb/p1_p2_rdb.c DECLARE_GLOBAL_DATA_PTR; · line 66

Quoted 7 lines

unsigned long get_board_sys_clk(ulong dummy)
{

board/freescale/p1_p2_rdb/p1_p2_rdb.c +1 -1
 	volatile ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
-	u32 val_gpdat, sysclk_gpio, board_rev_gpio;
+	u32 val_gpdat, sysclk_gpio;
 
 	val_gpdat = pgpio->gpdat;

Please use I/O accessors to read from peripherals!

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Its always easier short term to pee in the pond
than install a toilet - it's just not a good long term plan.
          - Alan Cox in <[email protected]>
#2 lore raw

PATCH RESEND 1/1 85xx/p1_p2_rdb: Added RevD board support.

Quoted 14 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Tuesday, June 22, 2010 12:23 PM
To: Aggrwal Poonam-B10812
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH][RESEND] 85xx/p1_p2_rdb: Added RevD board support.

Dear Poonam Aggrwal,

In message <1277186281-5276-1-git-send-email-
poonam.aggrwal at freescale.com> you wrote:

Quoted 7 lines
Quoted 5 lines

- Removed RevB, as it was a development stage board.
- From now only RevC and RevD will be supported.

Thanks for the quick update, but did you read my comments?

This is not an update to your comments. This patch I sent almost together with the first patch with slight change in the patch description.

I am working on your comments.

Quoted 12 lines
Quoted 4 lines

unsigned long get_board_sys_clk(ulong dummy) {
volatile ccsr_gpio_t *pgpio = (void

*)(CONFIG_SYS_MPC85xx_GPIO_ADDR);

board/freescale/p1_p2_rdb/p1_p2_rdb.c DECLARE_GLOBAL_DATA_PTR; · line 66

Quoted 4 lines
board/freescale/p1_p2_rdb/p1_p2_rdb.c +1 -1
-	u32 val_gpdat, sysclk_gpio, board_rev_gpio;
+	u32 val_gpdat, sysclk_gpio;
 
 	val_gpdat = pgpio->gpdat;

Please use I/O accessors to read from peripherals!

Quoted 8 lines

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de

Its

Quoted 1 line

always easier short term to pee in the pond than install a toilet -

it's

Quoted 2 lines

just not a good long term plan.
- Alan Cox in <[email protected]>