Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374751
b: refs/heads/master
c: 1f816bc
h: refs/heads/master
i:
  374749: 9856676
  374747: 7d0905e
  374743: d6e0d8d
  374735: e44bfe3
  374719: cba5ab6
v: v3
  • Loading branch information
Rafał Miłecki authored and David Woodhouse committed Apr 5, 2013
1 parent 9661105 commit 553d8ab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41c81536ea25d17933b5b503053a5990ec05502a
refs/heads/master: 1f816bc729fd5dec7c3633b0a54b75dc7a1fea0f
9 changes: 9 additions & 0 deletions trunk/drivers/mtd/devices/bcm47xxsflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ static int bcm47xxsflash_bcma_probe(struct platform_device *pdev)

b47s->bcma_cc = container_of(sflash, struct bcma_drv_cc, sflash);

switch (b47s->bcma_cc->capabilities & BCMA_CC_CAP_FLASHT) {
case BCMA_CC_FLASHT_STSER:
b47s->type = BCM47XXSFLASH_TYPE_ST;
break;
case BCMA_CC_FLASHT_ATSER:
b47s->type = BCM47XXSFLASH_TYPE_ATMEL;
break;
}

b47s->window = sflash->window;
b47s->blocksize = sflash->blocksize;
b47s->numblocks = sflash->numblocks;
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/mtd/devices/bcm47xxsflash.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@

struct bcma_drv_cc;

enum bcm47xxsflash_type {
BCM47XXSFLASH_TYPE_ATMEL,
BCM47XXSFLASH_TYPE_ST,
};

struct bcm47xxsflash {
struct bcma_drv_cc *bcma_cc;

enum bcm47xxsflash_type type;

u32 window;
u32 blocksize;
u16 numblocks;
Expand Down

0 comments on commit 553d8ab

Please sign in to comment.