2008-11-26 20:41:01 +02:00
|
|
|
#ifndef BOARD_BCM963XX_H_
|
|
|
|
#define BOARD_BCM963XX_H_
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
2009-07-18 03:40:23 +03:00
|
|
|
#include <linux/gpio.h>
|
|
|
|
#include <linux/leds.h>
|
2008-11-26 20:41:01 +02:00
|
|
|
#include <bcm63xx_dev_enet.h>
|
2009-07-02 00:00:41 +03:00
|
|
|
#include <bcm63xx_dev_dsp.h>
|
2008-11-26 20:41:01 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* flash mapping
|
|
|
|
*/
|
|
|
|
#define BCM963XX_CFE_VERSION_OFFSET 0x570
|
|
|
|
#define BCM963XX_NVRAM_OFFSET 0x580
|
|
|
|
|
|
|
|
/*
|
|
|
|
* nvram structure
|
|
|
|
*/
|
|
|
|
struct bcm963xx_nvram {
|
|
|
|
u32 version;
|
|
|
|
u8 reserved1[256];
|
|
|
|
u8 name[16];
|
|
|
|
u32 main_tp_number;
|
|
|
|
u32 psi_size;
|
|
|
|
u32 mac_addr_count;
|
|
|
|
u8 mac_addr_base[6];
|
|
|
|
u8 reserved2[2];
|
|
|
|
u32 checksum_old;
|
|
|
|
u8 reserved3[720];
|
|
|
|
u32 checksum_high;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* board definition
|
|
|
|
*/
|
|
|
|
struct board_info {
|
|
|
|
u8 name[16];
|
|
|
|
unsigned int expected_cpu_id;
|
|
|
|
|
|
|
|
/* enabled feature/device */
|
|
|
|
unsigned int has_enet0:1;
|
|
|
|
unsigned int has_enet1:1;
|
|
|
|
unsigned int has_pci:1;
|
|
|
|
unsigned int has_pccard:1;
|
|
|
|
unsigned int has_ohci0:1;
|
|
|
|
unsigned int has_ehci0:1;
|
2009-03-17 13:28:54 +02:00
|
|
|
unsigned int has_udc0:1;
|
2009-07-02 00:00:41 +03:00
|
|
|
unsigned int has_dsp:1;
|
2008-11-26 20:41:01 +02:00
|
|
|
|
|
|
|
/* ethernet config */
|
|
|
|
struct bcm63xx_enet_platform_data enet0;
|
|
|
|
struct bcm63xx_enet_platform_data enet1;
|
2009-07-02 00:00:41 +03:00
|
|
|
|
|
|
|
/* DSP config */
|
|
|
|
struct bcm63xx_dsp_platform_data dsp;
|
2009-07-18 03:40:23 +03:00
|
|
|
|
|
|
|
/* GPIO LEDs */
|
2010-01-15 15:30:46 +02:00
|
|
|
struct gpio_led leds[8];
|
2009-09-06 16:54:17 +03:00
|
|
|
|
|
|
|
/* Reset button */
|
|
|
|
unsigned int reset_btn;
|
2008-11-26 20:41:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* ! BOARD_BCM963XX_H_ */
|