Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191943
b: refs/heads/master
c: d11a7d7
h: refs/heads/master
i:
  191941: 1eda99d
  191939: 72d15b9
  191935: 011b7b0
v: v3
  • Loading branch information
Ben Dooks committed May 10, 2010
1 parent e1c8e77 commit 3616fb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d24131470f3def698683144cf1e81ee0f4f9c0b8
refs/heads/master: d11a7d7100123d178821f82ecc11ba2d9d6e97c8
12 changes: 10 additions & 2 deletions trunk/arch/arm/plat-s3c24xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,18 @@ static struct map_desc s3c_iodesc[] __initdata = {

static unsigned long s3c24xx_read_idcode_v5(void)
{
#if defined(CONFIG_CPU_S3C2416)
/* s3c2416 is v5, with S3C24XX_GSTATUS1 instead of S3C2412_GSTATUS1 */

u32 gs = __raw_readl(S3C24XX_GSTATUS1);

/* test for s3c2416 or similar device */
if ((gs >> 16) == 0x3245)
return gs;
#endif

#if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413)
return __raw_readl(S3C2412_GSTATUS1);
#elif defined(CONFIG_CPU_S3C2416)
return __raw_readl(S3C24XX_GSTATUS1);
#else
return 1UL; /* don't look like an 2400 */
#endif
Expand Down

0 comments on commit 3616fb1

Please sign in to comment.