[RFC][Patch 1/3] U-Boot-V2:Board:OMAP common board.h

3 views
Skip to first unread message

Khandenahally, Raghavendra

unread,
Jun 23, 2008, 8:38:15 PM6/23/08
to discu...@beagleboard.org
Introduce a common board header for functions
required by platform.S This will prevent
redundancies of multiple board-xyz.h files all
doing the same thing.

This deletes the redundant board-sdp343x.h and
fixes the corresponding .c for the change.

Signed-off-by: Raghavendra KH <r-khand...@ti.com>

---
board/omap/board-sdp343x.c | 2 +-
board/omap/board-sdp343x.h | 33 ---------------------------------
board/omap/board.h | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 34 deletions(-)

Index: u-boot-v2/board/omap/board.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ u-boot-v2/board/omap/board.h 2008-06-24 02:17:57.000000000 +0200
@@ -0,0 +1,35 @@
+/**
+ * @file
+ * @brief exported generic APIs which various board files implement
+ *
+ * FileName: board/omap/board.h
+ *
+ * This file will not contain any board specific implementations.
+ */
+/*
+ * (C) Copyright 2008
+ * Texas Instruments, <www.ti.com>
+ * Raghavendra KH <r-khand...@ti.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+#ifndef __BOARD_OMAP_H_
+#define __BOARD_OMAP_H_
+
+/** Generic Board initialization called from platform.S */
+void board_init(void);
+
+#endif /* __BOARD_OMAP_H_ */
Index: u-boot-v2/board/omap/board-sdp343x.h
===================================================================
--- u-boot-v2.orig/board/omap/board-sdp343x.h 2008-06-24 02:17:03.000000000 +0200
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,33 +0,0 @@
-/**
- * @file
- * @brief exported APIs for board header.
- *
- * FileName: board/omap/board-sdp343x.h
- *
- * We may choose to add board specific defines here at a later point of time
- */
-/*
- * (C) Copyright 2006-2008
- * Texas Instruments, <www.ti.com>
- * Nishanth Menon <x0ni...@ti.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-#ifndef __BOARD_SDP343X_H_
-#define __BOARD_SDP343X_H_
-
-void board_init(void);
-#endif /* __BOARD_SDP343X_H_ */
Index: u-boot-v2/board/omap/board-sdp343x.c
===================================================================
--- u-boot-v2.orig/board/omap/board-sdp343x.c 2008-06-24 02:17:03.000000000 +0200
+++ u-boot-v2/board/omap/board-sdp343x.c 2008-06-24 02:17:57.000000000 +0200
@@ -54,7 +54,7 @@
#include <asm/arch/syslib.h>
#include <asm/arch/control.h>
#include <asm/arch/omap3-mux.h>
-#include "board-sdp343x.h"
+#include "board.h"

/******************** Board Boot Time *******************/
static void sdrc_init(void);

Reply all
Reply to author
Forward
0 new messages