mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
On BCM6358 and BCM6368 the attached flash type is exposed through a bootstrapping register. Use it for auto detecting the flash type on those and default to parallel flash for earlier SoCs. Signed-off-by: Jonas Gorski <[email protected]> Cc: [email protected] Cc: Maxime Bizon <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Kevin Cernekee <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/3954/ Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
13 lines
221 B
C
13 lines
221 B
C
#ifndef __BCM63XX_FLASH_H
|
|
#define __BCM63XX_FLASH_H
|
|
|
|
enum {
|
|
BCM63XX_FLASH_TYPE_PARALLEL,
|
|
BCM63XX_FLASH_TYPE_SERIAL,
|
|
BCM63XX_FLASH_TYPE_NAND,
|
|
};
|
|
|
|
int __init bcm63xx_flash_register(void);
|
|
|
|
#endif /* __BCM63XX_FLASH_H */
|