diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-11-06 18:54:20 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-11-06 18:54:20 +0000 |
commit | d9a42c5436a0bdc49696edaf80958cfa9a3f26cc (patch) | |
tree | 8426747c468d82fa0461445c9c616d536cd77534 /target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/bsp_sup.h | |
parent | 1f8f2aaa37114460df167dda37260190e714e6fc (diff) | |
download | upstream-d9a42c5436a0bdc49696edaf80958cfa9a3f26cc.tar.gz upstream-d9a42c5436a0bdc49696edaf80958cfa9a3f26cc.tar.bz2 upstream-d9a42c5436a0bdc49696edaf80958cfa9a3f26cc.zip |
Merge branch 'adm8668'
SVN-Revision: 23900
Diffstat (limited to 'target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/bsp_sup.h')
-rw-r--r-- | target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/bsp_sup.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/bsp_sup.h b/target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/bsp_sup.h new file mode 100644 index 0000000000..23fdab97c2 --- /dev/null +++ b/target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/bsp_sup.h @@ -0,0 +1,84 @@ +/************************************************************************ + * + * Copyright (c) 2005 + * Infineon Technologies AG + * St. Martin Strasse 53; 81669 Muenchen; Germany + * + ************************************************************************/ +#ifndef _BSP_SUP_H_ +#define _BSP_SUP_H_ + +#define ADD_WAN_MAC +#define CONFIG_IFX_GAN +#define UBOOT_CFG_ENV_SIZE (0x400-4) +#define ADM8668_BL_MAGIC 0x6c62676d +#define ADM8668_MAC_MAGIC 0x69666164 +#define ADM8668_VER_MAGIC 0x7276676d +#define ADM8668_ID_MAGIC 0x6469676d +#define ADM8668_IF_MAGIC 0x6669676d +#define ADM8668_WANMAC_MAGIC 0x69666164 +#define ADM8668_IMEI_MAGIC 0x6669676e + +#define BSP_IFNAME_MAX_LEN 15 +#define BOOT_LINE_SIZE 255 +#define BSP_STR_LEN 79 + + +/* + * Boot mode configuration + */ +typedef struct BTMODE_CFG_S +{ + unsigned long btmode; + unsigned long dlmethod; +} BTMODE_CFG_T; + + +/* + * Interface configuration + */ +typedef struct IF_CFG_S +{ + char ifname[BSP_IFNAME_MAX_LEN+1]; + unsigned long ip; + unsigned long mask; + unsigned long gateway; +} IF_CFG_T; + + +/* + * Board configuration + */ +typedef struct BOARD_CFG_S +{ + unsigned long blmagic; + unsigned char blreserved[UBOOT_CFG_ENV_SIZE]; + + unsigned long macmagic; + unsigned char mac[8]; + unsigned long macnum; + + unsigned long idmagic; + unsigned char serial[BSP_STR_LEN+1]; + + unsigned long vermagic; + unsigned char ver[BSP_STR_LEN+1]; + + unsigned long ifmagic; + IF_CFG_T ifcfg[8]; + + unsigned long btmagic; + BTMODE_CFG_T bootmode; + + unsigned long wanmagic; + unsigned char wanmac[8]; + + unsigned long imeimagic; + unsigned char imei0[16]; + unsigned char imei1[16]; +} BOARD_CFG_T, *PBOARD_CFG_T; + +#define ADM8668_BOARD_CFG_ADDR (ADM8668_SMEM0_BASE + CONFIG_ADM8668_BSP_OFFSET*1024) +#define ADM8668_BOARD_CFG_SIZE (CONFIG_ADM8668_BSP_SIZE*1024) + +#endif /* _BSP_SUP_H_ */ |