Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62675
b: refs/heads/master
c: 5c49218
h: refs/heads/master
i:
  62673: 984ca80
  62671: 8cfe0a9
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Jul 22, 2007
1 parent d3c8ee0 commit 64b0aab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: a14a26aca610bbd09fb62fb9fd5dbf6b41321972
refs/heads/master: 5c49218a15188cc036364c4cda325bae3cb138ae
11 changes: 10 additions & 1 deletion trunk/include/asm-arm/arch-s3c2410/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,23 @@
/* how many bytes we allow into the FIFO at a time in FIFO mode */
#define FIFO_MAX (14)

static inline int is_arm926(void)
{
unsigned int cpuid;

asm volatile ("mrc p15, 0, %0, c1, c0, 0" : "=r" (cpuid));

return ((cpuid & 0xff0) == 0x260);
}

static void arch_detect_cpu(void)
{
unsigned int cpuid;

cpuid = *((volatile unsigned int *)S3C2410_GSTATUS1);
cpuid &= S3C2410_GSTATUS1_IDMASK;

if (cpuid == S3C2410_GSTATUS1_2440 ||
if (is_arm926() || cpuid == S3C2410_GSTATUS1_2440 ||
cpuid == S3C2410_GSTATUS1_2442) {
fifo_mask = S3C2440_UFSTAT_TXMASK;
fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT;
Expand Down

0 comments on commit 64b0aab

Please sign in to comment.