Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298717
b: refs/heads/master
c: 6aa5106
h: refs/heads/master
i:
  298715: 56d4a36
v: v3
  • Loading branch information
Dima Zavin authored and Kukjin Kim committed Apr 4, 2012
1 parent 18cdff5 commit f9a8316
Show file tree
Hide file tree
Showing 2 changed files with 17 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: fd9abe1b5beafe776c51507dac32486f627c6ad8
refs/heads/master: 6aa51068f58022ca616fad40b6773a1de50599f0
17 changes: 16 additions & 1 deletion trunk/arch/arm/mach-exynos/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,24 @@ volatile u8 *uart_base;

#include <plat/uncompress.h>

static unsigned int __raw_readl(unsigned int ptr)
{
return *((volatile unsigned int *)ptr);
}

static void arch_detect_cpu(void)
{
if (machine_is_smdk5250())
u32 chip_id = __raw_readl(EXYNOS_PA_CHIPID);

/*
* product_id is bits 31:12
* bits 23:20 describe the exynosX family
*
*/
chip_id >>= 20;
chip_id &= 0xf;

if (chip_id == 0x5)
uart_base = (volatile u8 *)EXYNOS5_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
else
uart_base = (volatile u8 *)EXYNOS4_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT);
Expand Down

0 comments on commit f9a8316

Please sign in to comment.