Skip to contentSkip to conversation

board revision related patches for dm646x

PATCH New nagabhushana.netagunte at ti.com 3 participants 5 messages Sep 21, 2011 – Oct 19, 2011

lore
Share & tools
lore
#0 lore raw

cover board revision related patches for dm646x

From: Nagabhushana Netagunte <[email protected]>

First patch adds new configuration for new variant of dm6467 where as second patch adds a function to send revision info to the kernel. These patches are tested both on dm6467 and dm6467T.

Nagabhushana Netagunte (2):
dm646x: add new configuration for dm6467T
dm646x: pass board revision info to kernel

 board/davinci/dm6467evm/dm6467evm.c  |   19 ++++
 boards.cfg                           |    1 +
 include/configs/davinci_dm6467Tevm.h |  164 ++++++++++++++++++++++++++++++++++
 include/configs/davinci_dm6467evm.h  |    1 +
 4 files changed, 185 insertions(+), 0 deletions(-)
 create mode 100644 include/configs/davinci_dm6467Tevm.h
#1 lore raw

PATCH 1/2 dm646x: add new configuration for dm6467T

From: Nagabhushana Netagunte <[email protected]>

add new configuration file for dm6467T and appropraite changes in boards.cfg. dm6467T is the new varaiant of dm6467 SOC which supports 33 MHz reference clock where as dm6467 supports 27 MHz reference clock.

---
 boards.cfg                           |    1 +
 include/configs/davinci_dm6467Tevm.h |  162 ++++++++++++++++++++++++++++++++++
 2 files changed, 163 insertions(+), 0 deletions(-)
 create mode 100644 include/configs/davinci_dm6467Tevm.h
boards.cfg +1 -0
index 8a5bfc1..674e790 100644
@@ -124,6 +124,7 @@ davinci_dm355evm             arm         arm926ejs   dm355evm            davinci
 davinci_dm355leopard         arm         arm926ejs   dm355leopard        davinci        davinci
 davinci_dm365evm             arm         arm926ejs   dm365evm            davinci        davinci
 davinci_dm6467evm            arm         arm926ejs   dm6467evm           davinci        davinci
+davinci_dm6467Tevm           arm         arm926ejs   dm6467evm           davinci        davinci
 davinci_dvevm                arm         arm926ejs   dvevm               davinci        davinci
 davinci_schmoogie            arm         arm926ejs   schmoogie           davinci        davinci
 davinci_sffsdr               arm         arm926ejs   sffsdr              davinci        davinci
include/configs/davinci_dm6467Tevm.h new file +162 -0

162 lines not on this page · raw message

Signature · 1 line
1.6.2.4
#2 lore raw

PATCH 2/2 dm646x: pass board revision info to kernel

In reply to nagabhushana.netagunte at ti.com

From: Nagabhushana Netagunte <[email protected]>

add a function in board file to pass board revision info to kernel. Revision number 0 and 1 are passed in case of DM6467 and DM6467T respectively.

---
 board/davinci/dm6467evm/dm6467evm.c  |   19 +++++++++++++++++++
 include/configs/davinci_dm6467Tevm.h |    2 ++
 include/configs/davinci_dm6467evm.h  |    1 +
 3 files changed, 22 insertions(+), 0 deletions(-)
board/davinci/dm6467evm/dm6467evm.c +19 -0
index 1a01c3c..b582e97 100644
@@ -24,6 +24,25 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#define REV_DM6446EVM		0
+#define REV_DM6467TEVM		1
+/*
+ * get_board_rev() - setup to pass kernel board revision information
+ * Returns:
+ * bit[0-3]	System clock frequency
+ * 0000b	- 27 MHz
+ * 0001b	- 33 MHz
+ */
+u32 get_board_rev(void)
+{
+
+#ifdef DAVINCI_DM6467TEVM
+	return REV_DM6467TEVM;
+#endif
+
+	return REV_DM6446EVM;
+}
+
 int board_init(void)
 {
 	gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;
include/configs/davinci_dm6467Tevm.h +2 -0
index 17b9047..d4eaeab 100644
@@ -22,6 +22,7 @@
 
 /* Spectrum Digital TMS320DM6467T EVM board */
 #define DAVINCI_DM6467EVM
+#define DAVINCI_DM6467TEVM
 #define CONFIG_SYS_USE_NAND
 #define CONFIG_SYS_NAND_SMALLPAGE
 
@@ -64,6 +65,7 @@ extern unsigned int davinci_arm_clk_get(void);
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_SYS_BARGSIZE		1024		/* Bootarg Size */
 #define CONFIG_SYS_LOAD_ADDR		0x80700000	/* kernel address */
+#define CONFIG_REVISION_TAG
 
 /* Serial Driver info */
 #define CONFIG_SYS_NS16550
include/configs/davinci_dm6467evm.h +1 -0
index 1fc3544..8b33288 100644
@@ -64,6 +64,7 @@ extern unsigned int davinci_arm_clk_get(void);
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_SYS_BARGSIZE		1024		/* Bootarg Size */
 #define CONFIG_SYS_LOAD_ADDR		0x80700000	/* kernel address */
+#define CONFIG_REVISION_TAG
 
 /* Serial Driver info */
 #define CONFIG_SYS_NS16550
Signature · 1 line
1.6.2.4
#3 lore raw

PATCH 2/2 dm646x: pass board revision info to kernel

Hello.

Quoted 26 lines · nagabhushana.netagunte at ti.com

From: Nagabhushana Netagunte <[email protected]>

add a function in board file to pass board revision info to kernel. Revision number 0 and 1 are passed in case of DM6467 and DM6467T respectively.

---
  board/davinci/dm6467evm/dm6467evm.c  |   19 +++++++++++++++++++
  include/configs/davinci_dm6467Tevm.h |    2 ++
  include/configs/davinci_dm6467evm.h  |    1 +
  3 files changed, 22 insertions(+), 0 deletions(-)
board/davinci/dm6467evm/dm6467evm.c +5 -0
index 1a01c3c..b582e97 100644
@@ -24,6 +24,25 @@
 
  DECLARE_GLOBAL_DATA_PTR;
 
+#define REV_DM6446EVM		0
+#define REV_DM6467TEVM		1
+/*
+ * get_board_rev() - setup to pass kernel board revision information
+ * Returns:

board/davinci/dm6467evm/dm6467evm.c line 41

Quoted 10 lines
board/davinci/dm6467evm/dm6467evm.c +10 -0
+ * bit[0-3]	System clock frequency
+ * 0000b	- 27 MHz
+ * 0001b	- 33 MHz
+ */
+u32 get_board_rev(void)
+{
+
+#ifdef DAVINCI_DM6467TEVM
+	return REV_DM6467TEVM;
+#endif

Maybe #else here?..

board/davinci/dm6467evm/dm6467evm.c line 43

Quoted 2 lines
board/davinci/dm6467evm/dm6467evm.c +2 -0
+
+	return REV_DM6446EVM;

... and #endif here?

board/davinci/dm6467evm/dm6467evm.c line 48

Quoted 5 lines
board/davinci/dm6467evm/dm6467evm.c +2 -0
+}
+
  int board_init(void)
  {
  	gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;

WBR, Sergei

#4 lore raw

PATCH 2/2 dm646x: pass board revision info to kernel

Hi Sergei,

Thanks for the comments.

Quoted 35 lines · Sergei Shtylyov

Hello.

Quoted 31 lines · nagabhushana.netagunte at ti.com

From: Nagabhushana Netagunte <[email protected]>

add a function in board file to pass board revision info to kernel. Revision number 0 and 1 are passed in case of DM6467 and DM6467T respectively.

---
  board/davinci/dm6467evm/dm6467evm.c  |   19 +++++++++++++++++++
  include/configs/davinci_dm6467Tevm.h |    2 ++
  include/configs/davinci_dm6467evm.h  |    1 +
  3 files changed, 22 insertions(+), 0 deletions(-)
board/davinci/dm6467evm/dm6467evm.c +9 -0
index 1a01c3c..b582e97 100644
@@ -24,6 +24,25 @@
 
  DECLARE_GLOBAL_DATA_PTR;
 
+#define REV_DM6446EVM		0
+#define REV_DM6467TEVM		1
+/*
+ * get_board_rev() - setup to pass kernel board revision information
+ * Returns:
+ * bit[0-3]	System clock frequency
+ * 0000b	- 27 MHz
+ * 0001b	- 33 MHz
+ */
Quoted 8 lines

board/davinci/dm6467evm/dm6467evm.c line 41

Quoted 6 lines
board/davinci/dm6467evm/dm6467evm.c +6 -0
+u32 get_board_rev(void)
+{
+
+#ifdef DAVINCI_DM6467TEVM
+	return REV_DM6467TEVM;
+#endif

Maybe #else here?..

Ok.

Quoted 5 lines

board/davinci/dm6467evm/dm6467evm.c line 43

Quoted 3 lines
board/davinci/dm6467evm/dm6467evm.c +2 -0
+
+	return REV_DM6446EVM;

... and #endif here?

Sure.

Regards,
--Manju

Quoted 9 lines

board/davinci/dm6467evm/dm6467evm.c line 48

Quoted 6 lines
board/davinci/dm6467evm/dm6467evm.c +2 -0
+}
+
  int board_init(void)
  {
  	gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DM6467_EVM;

WBR, Sergei