Lines Matching refs:flash
353 static inline u8 __init flash_readb(u8 __iomem *flash, u32 addr) in flash_readb() argument
356 return __raw_readb(flash + addr); in flash_readb()
358 return __raw_readb(flash + (addr ^ 3)); in flash_readb()
362 static inline u16 __init flash_readw(u8 __iomem *flash, u32 addr) in flash_readw() argument
365 return __raw_readw(flash + addr); in flash_readw()
367 return __raw_readw(flash + (addr ^ 2)); in flash_readw()
373 u8 __iomem *flash; in gmlr_init() local
378 if ((flash = ioremap(IXP4XX_EXP_BUS_BASE_PHYS, 0x80)) == NULL) in gmlr_init()
382 system_rev = __raw_readl(flash + CFG_REV); in gmlr_init()
383 hw_bits = __raw_readl(flash + CFG_HW_BITS); in gmlr_init()
387 flash_readb(flash, CFG_ETH0_ADDRESS + i); in gmlr_init()
389 flash_readb(flash, CFG_ETH1_ADDRESS + i); in gmlr_init()
392 __raw_writew(FLASH_CMD_READ_ID, flash); in gmlr_init()
393 system_serial_high = flash_readw(flash, FLASH_SER_OFF); in gmlr_init()
395 system_serial_high |= flash_readw(flash, FLASH_SER_OFF + 2); in gmlr_init()
396 system_serial_low = flash_readw(flash, FLASH_SER_OFF + 4); in gmlr_init()
398 system_serial_low |= flash_readw(flash, FLASH_SER_OFF + 6); in gmlr_init()
399 __raw_writew(FLASH_CMD_READ_ARRAY, flash); in gmlr_init()
401 iounmap(flash); in gmlr_init()