Commit 2df7d59f authored by Jeff Kirsher's avatar Jeff Kirsher Committed by Jeff Garzik

e1000: rename ICH8 flash macros

ICH8 will soon be followed by newer chipsets bearing the same acronym,
thus we remove the '8' and make it independent of the version number in
the platform name.
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarAuke Kok <auke-jan.h.kok@intel.com>
parent fcfb1224
This diff is collapsed.
...@@ -1583,8 +1583,8 @@ struct e1000_hw { ...@@ -1583,8 +1583,8 @@ struct e1000_hw {
#define E1000_HICR_FW_RESET 0xC0 #define E1000_HICR_FW_RESET 0xC0
#define E1000_SHADOW_RAM_WORDS 2048 #define E1000_SHADOW_RAM_WORDS 2048
#define E1000_ICH8_NVM_SIG_WORD 0x13 #define E1000_ICH_NVM_SIG_WORD 0x13
#define E1000_ICH8_NVM_SIG_MASK 0xC0 #define E1000_ICH_NVM_SIG_MASK 0xC0
/* EEPROM Read */ /* EEPROM Read */
#define E1000_EERD_START 0x00000001 /* Start Read */ #define E1000_EERD_START 0x00000001 /* Start Read */
...@@ -3263,41 +3263,40 @@ struct e1000_host_command_info { ...@@ -3263,41 +3263,40 @@ struct e1000_host_command_info {
#define IFE_PSCL_PROBE_LEDS_OFF 0x0006 /* Force LEDs 0 and 2 off */ #define IFE_PSCL_PROBE_LEDS_OFF 0x0006 /* Force LEDs 0 and 2 off */
#define IFE_PSCL_PROBE_LEDS_ON 0x0007 /* Force LEDs 0 and 2 on */ #define IFE_PSCL_PROBE_LEDS_ON 0x0007 /* Force LEDs 0 and 2 on */
#define ICH8_FLASH_COMMAND_TIMEOUT 5000 /* 5000 uSecs - adjusted */ #define ICH_FLASH_COMMAND_TIMEOUT 5000 /* 5000 uSecs - adjusted */
#define ICH8_FLASH_ERASE_TIMEOUT 3000000 /* Up to 3 seconds - worst case */ #define ICH_FLASH_ERASE_TIMEOUT 3000000 /* Up to 3 seconds - worst case */
#define ICH8_FLASH_CYCLE_REPEAT_COUNT 10 /* 10 cycles */ #define ICH_FLASH_CYCLE_REPEAT_COUNT 10 /* 10 cycles */
#define ICH8_FLASH_SEG_SIZE_256 256 #define ICH_FLASH_SEG_SIZE_256 256
#define ICH8_FLASH_SEG_SIZE_4K 4096 #define ICH_FLASH_SEG_SIZE_4K 4096
#define ICH9_FLASH_SEG_SIZE_8K 8192 #define ICH_FLASH_SEG_SIZE_64K 65536
#define ICH8_FLASH_SEG_SIZE_64K 65536
#define ICH_CYCLE_READ 0x0
#define ICH8_CYCLE_READ 0x0 #define ICH_CYCLE_RESERVED 0x1
#define ICH8_CYCLE_RESERVED 0x1 #define ICH_CYCLE_WRITE 0x2
#define ICH8_CYCLE_WRITE 0x2 #define ICH_CYCLE_ERASE 0x3
#define ICH8_CYCLE_ERASE 0x3
#define ICH_FLASH_GFPREG 0x0000
#define ICH8_FLASH_GFPREG 0x0000 #define ICH_FLASH_HSFSTS 0x0004
#define ICH8_FLASH_HSFSTS 0x0004 #define ICH_FLASH_HSFCTL 0x0006
#define ICH8_FLASH_HSFCTL 0x0006 #define ICH_FLASH_FADDR 0x0008
#define ICH8_FLASH_FADDR 0x0008 #define ICH_FLASH_FDATA0 0x0010
#define ICH8_FLASH_FDATA0 0x0010 #define ICH_FLASH_FRACC 0x0050
#define ICH8_FLASH_FRACC 0x0050 #define ICH_FLASH_FREG0 0x0054
#define ICH8_FLASH_FREG0 0x0054 #define ICH_FLASH_FREG1 0x0058
#define ICH8_FLASH_FREG1 0x0058 #define ICH_FLASH_FREG2 0x005C
#define ICH8_FLASH_FREG2 0x005C #define ICH_FLASH_FREG3 0x0060
#define ICH8_FLASH_FREG3 0x0060 #define ICH_FLASH_FPR0 0x0074
#define ICH8_FLASH_FPR0 0x0074 #define ICH_FLASH_FPR1 0x0078
#define ICH8_FLASH_FPR1 0x0078 #define ICH_FLASH_SSFSTS 0x0090
#define ICH8_FLASH_SSFSTS 0x0090 #define ICH_FLASH_SSFCTL 0x0092
#define ICH8_FLASH_SSFCTL 0x0092 #define ICH_FLASH_PREOP 0x0094
#define ICH8_FLASH_PREOP 0x0094 #define ICH_FLASH_OPTYPE 0x0096
#define ICH8_FLASH_OPTYPE 0x0096 #define ICH_FLASH_OPMENU 0x0098
#define ICH8_FLASH_OPMENU 0x0098
#define ICH_FLASH_REG_MAPSIZE 0x00A0
#define ICH8_FLASH_REG_MAPSIZE 0x00A0 #define ICH_FLASH_SECTOR_SIZE 4096
#define ICH8_FLASH_SECTOR_SIZE 4096 #define ICH_GFPREG_BASE_MASK 0x1FFF
#define ICH8_GFPREG_BASE_MASK 0x1FFF #define ICH_FLASH_LINEAR_ADDR_MASK 0x00FFFFFF
#define ICH8_FLASH_LINEAR_ADDR_MASK 0x00FFFFFF
/* ICH8 GbE Flash Hardware Sequencing Flash Status Register bit breakdown */ /* ICH8 GbE Flash Hardware Sequencing Flash Status Register bit breakdown */
/* Offset 04h HSFSTS */ /* Offset 04h HSFSTS */
......
...@@ -107,16 +107,16 @@ typedef enum { ...@@ -107,16 +107,16 @@ typedef enum {
#define E1000_WRITE_FLUSH(a) E1000_READ_REG(a, STATUS) #define E1000_WRITE_FLUSH(a) E1000_READ_REG(a, STATUS)
#define E1000_WRITE_ICH8_REG(a, reg, value) ( \ #define E1000_WRITE_ICH_FLASH_REG(a, reg, value) ( \
writel((value), ((a)->flash_address + reg))) writel((value), ((a)->flash_address + reg)))
#define E1000_READ_ICH8_REG(a, reg) ( \ #define E1000_READ_ICH_FLASH_REG(a, reg) ( \
readl((a)->flash_address + reg)) readl((a)->flash_address + reg))
#define E1000_WRITE_ICH8_REG16(a, reg, value) ( \ #define E1000_WRITE_ICH_FLASH_REG16(a, reg, value) ( \
writew((value), ((a)->flash_address + reg))) writew((value), ((a)->flash_address + reg)))
#define E1000_READ_ICH8_REG16(a, reg) ( \ #define E1000_READ_ICH_FLASH_REG16(a, reg) ( \
readw((a)->flash_address + reg)) readw((a)->flash_address + reg))
#endif /* _E1000_OSDEP_H_ */ #endif /* _E1000_OSDEP_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment