OMAP3: Remove unused board-types
The board-types defined in struct omap3_sysinfo seem to be unused. The function display_board_info() is passed board type as an argument; which is ignored. This patch removes all uses of board-type, related definitions and functions. Signed-off-by: Sanjeev Premi <premi@ti.com>
This commit is contained in:
parent
6a6b62e3aa
commit
90006e9b33
|
@ -24,8 +24,6 @@
|
||||||
#define _BEAGLE_H_
|
#define _BEAGLE_H_
|
||||||
|
|
||||||
const omap3_sysinfo sysinfo = {
|
const omap3_sysinfo sysinfo = {
|
||||||
SDP_3430_V1,
|
|
||||||
SDP_3430_V2,
|
|
||||||
DDR_STACKED,
|
DDR_STACKED,
|
||||||
"OMAP3 Beagle board",
|
"OMAP3 Beagle board",
|
||||||
#if defined(CONFIG_ENV_IS_IN_ONENAND)
|
#if defined(CONFIG_ENV_IS_IN_ONENAND)
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
#define _EVM_H_
|
#define _EVM_H_
|
||||||
|
|
||||||
const omap3_sysinfo sysinfo = {
|
const omap3_sysinfo sysinfo = {
|
||||||
OMAP3EVM_V1,
|
|
||||||
OMAP3EVM_V2,
|
|
||||||
DDR_DISCRETE,
|
DDR_DISCRETE,
|
||||||
"OMAP3 EVM board",
|
"OMAP3 EVM board",
|
||||||
#if defined(CONFIG_ENV_IS_IN_ONENAND)
|
#if defined(CONFIG_ENV_IS_IN_ONENAND)
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
#define _OVERO_H_
|
#define _OVERO_H_
|
||||||
|
|
||||||
const omap3_sysinfo sysinfo = {
|
const omap3_sysinfo sysinfo = {
|
||||||
SDP_3430_V1,
|
|
||||||
SDP_3430_V2,
|
|
||||||
DDR_STACKED,
|
DDR_STACKED,
|
||||||
"Gumstix Overo board",
|
"Gumstix Overo board",
|
||||||
#if defined(CONFIG_ENV_IS_IN_ONENAND)
|
#if defined(CONFIG_ENV_IS_IN_ONENAND)
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
#define _PANDORA_H_
|
#define _PANDORA_H_
|
||||||
|
|
||||||
const omap3_sysinfo sysinfo = {
|
const omap3_sysinfo sysinfo = {
|
||||||
SDP_3430_V1,
|
|
||||||
SDP_3430_V2,
|
|
||||||
DDR_STACKED,
|
DDR_STACKED,
|
||||||
"OMAP3 Pandora",
|
"OMAP3 Pandora",
|
||||||
"NAND",
|
"NAND",
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
#define _BOARD_ZOOM1_H_
|
#define _BOARD_ZOOM1_H_
|
||||||
|
|
||||||
const omap3_sysinfo sysinfo = {
|
const omap3_sysinfo sysinfo = {
|
||||||
SDP_3430_V1,
|
|
||||||
SDP_3430_V2,
|
|
||||||
DDR_STACKED,
|
DDR_STACKED,
|
||||||
"OMAP3 Zoom MDK Rev 1",
|
"OMAP3 Zoom MDK Rev 1",
|
||||||
"NAND",
|
"NAND",
|
||||||
|
|
|
@ -130,23 +130,6 @@ u32 get_sdr_cs_offset(u32 cs)
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* get_board_type() - get board type based on current production stats.
|
|
||||||
* - NOTE-1-: 2 I2C EEPROMs will someday be populated with proper info.
|
|
||||||
* when they are available we can get info from there. This should
|
|
||||||
* be correct of all known boards up until today.
|
|
||||||
* - NOTE-2- EEPROMs are populated but they are updated very slowly. To
|
|
||||||
* avoid waiting on them we will use ES version of the chip to get info.
|
|
||||||
* A later version of the FPGA migth solve their speed issue.
|
|
||||||
************************************************************************/
|
|
||||||
u32 get_board_type(void)
|
|
||||||
{
|
|
||||||
if (get_cpu_rev() == CPU_3430_ES2)
|
|
||||||
return sysinfo.board_type_v2;
|
|
||||||
else
|
|
||||||
return sysinfo.board_type_v1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* get_gpmc0_base() - Return current address hardware will be
|
* get_gpmc0_base() - Return current address hardware will be
|
||||||
* fetching from. The below effectively gives what is correct, its a bit
|
* fetching from. The below effectively gives what is correct, its a bit
|
||||||
|
|
|
@ -177,14 +177,6 @@ typedef struct gpio {
|
||||||
#define WIDTH_8BIT 0x0000
|
#define WIDTH_8BIT 0x0000
|
||||||
#define WIDTH_16BIT 0x1000 /* bit pos for 16 bit in gpmc */
|
#define WIDTH_16BIT 0x1000 /* bit pos for 16 bit in gpmc */
|
||||||
|
|
||||||
/* SDP definitions according to FPGA Rev. Is this OK?? */
|
|
||||||
#define SDP_3430_V1 0x1
|
|
||||||
#define SDP_3430_V2 0x2
|
|
||||||
|
|
||||||
/* EVM definitions */
|
|
||||||
#define OMAP3EVM_V1 0x1
|
|
||||||
#define OMAP3EVM_V2 0x2
|
|
||||||
|
|
||||||
/* I2C power management companion definitions */
|
/* I2C power management companion definitions */
|
||||||
#define PWRMGT_ADDR_ID1 0x48
|
#define PWRMGT_ADDR_ID1 0x48
|
||||||
#define PWRMGT_ADDR_ID2 0x49
|
#define PWRMGT_ADDR_ID2 0x49
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#define _SYS_PROTO_H_
|
#define _SYS_PROTO_H_
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 board_type_v1;
|
|
||||||
u32 board_type_v2;
|
|
||||||
u32 mtype;
|
u32 mtype;
|
||||||
char *board_string;
|
char *board_string;
|
||||||
char *nand_string;
|
char *nand_string;
|
||||||
|
@ -46,7 +44,6 @@ u32 get_sysboot_value(void);
|
||||||
u32 is_gpmc_muxed(void);
|
u32 is_gpmc_muxed(void);
|
||||||
u32 get_gpmc0_type(void);
|
u32 get_gpmc0_type(void);
|
||||||
u32 get_gpmc0_width(void);
|
u32 get_gpmc0_width(void);
|
||||||
u32 get_board_type(void);
|
|
||||||
u32 get_sdr_cs_size(u32);
|
u32 get_sdr_cs_size(u32);
|
||||||
u32 get_sdr_cs_offset(u32);
|
u32 get_sdr_cs_offset(u32);
|
||||||
u32 is_running_in_sdram(void);
|
u32 is_running_in_sdram(void);
|
||||||
|
|
Loading…
Reference in New Issue