Lines Matching refs:flash
332 static inline u8 __init flash_readb(u8 __iomem *flash, u32 addr) in flash_readb() argument
335 return __raw_readb(flash + addr); in flash_readb()
337 return __raw_readb(flash + (addr ^ 3)); in flash_readb()
341 static inline u16 __init flash_readw(u8 __iomem *flash, u32 addr) in flash_readw() argument
344 return __raw_readw(flash + addr); in flash_readw()
346 return __raw_readw(flash + (addr ^ 2)); in flash_readw()
352 u8 __iomem *flash; in gmlr_init() local
357 if ((flash = ioremap(IXP4XX_EXP_BUS_BASE_PHYS, 0x80)) == NULL) in gmlr_init()
361 system_rev = __raw_readl(flash + CFG_REV); in gmlr_init()
362 hw_bits = __raw_readl(flash + CFG_HW_BITS); in gmlr_init()
366 flash_readb(flash, CFG_ETH0_ADDRESS + i); in gmlr_init()
368 flash_readb(flash, CFG_ETH1_ADDRESS + i); in gmlr_init()
371 __raw_writew(FLASH_CMD_READ_ID, flash); in gmlr_init()
372 system_serial_high = flash_readw(flash, FLASH_SER_OFF); in gmlr_init()
374 system_serial_high |= flash_readw(flash, FLASH_SER_OFF + 2); in gmlr_init()
375 system_serial_low = flash_readw(flash, FLASH_SER_OFF + 4); in gmlr_init()
377 system_serial_low |= flash_readw(flash, FLASH_SER_OFF + 6); in gmlr_init()
378 __raw_writew(FLASH_CMD_READ_ARRAY, flash); in gmlr_init()
380 iounmap(flash); in gmlr_init()