13 static struct resource bcma_sflash_resource = {
14 .name =
"bcma_sflash",
21 .name =
"bcma_sflash",
22 .resource = &bcma_sflash_resource,
34 {
"", 0x14, 0x10000, 32, },
51 for (i = 0; i < 1000; i++) {
57 bcma_err(cc->
core->bus,
"SFLASH control command failed (timeout)!\n");
64 struct bcma_sflash *sflash = &cc->sflash;
82 for (e = bcma_sflash_sst_tbl; e->
name; e++) {
88 for (e = bcma_sflash_st_tbl; e->
name; e++) {
95 bcma_err(bus,
"Unsupported ST serial flash (id: 0x%X, id2: 0x%X)\n",
id, id2);
104 for (e = bcma_sflash_at_tbl; e->
name; e++) {
109 bcma_err(bus,
"Unsupported Atmel serial flash (id: 0x%X)\n",
id);
115 bcma_err(bus,
"Unsupported flash type\n");
122 sflash->size = sflash->blocksize * sflash->numblocks;
123 sflash->present =
true;
125 bcma_info(bus,
"Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n",
126 e->
name, sflash->size / 1024, sflash->blocksize,
133 bcma_sflash_dev.
dev.platform_data = sflash;