Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198486
b: refs/heads/master
c: 09cae8f
h: refs/heads/master
v: v3
  • Loading branch information
Naveen Krishna Ch authored and Ben Dooks committed May 20, 2010
1 parent bd556fa commit c35d88f
Show file tree
Hide file tree
Showing 5 changed files with 19 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: 85b14a3fc4036473ec6776d8e5d92c022155d581
refs/heads/master: 09cae8f195c5be8d3102022c7ecd1653b3653233
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-s5p6440/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ config CPU_S5P6440
config MACH_SMDK6440
bool "SMDK6440"
select CPU_S5P6440
select SAMSUNG_DEV_TS
select SAMSUNG_DEV_ADC
help
Machine support for the Samsung SMDK6440

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s5p6440/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ static void s5p6440_idle(void)
void __init s5p6440_map_io(void)
{
/* initialize any device information early */
s3c_device_adc.name = "s3c64xx-adc";
}

void __init s5p6440_init_clocks(int xtal)
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-s5p6440/include/mach/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@
/* PCM */
#define S5P6440_PA_PCM 0xF2100000

#define S5P6440_PA_ADC (0xF3000000)

/* compatibiltiy defines. */
#define S3C_PA_UART S5P6440_PA_UART
#define S3C_PA_IIC S5P6440_PA_IIC0
#define SAMSUNG_PA_ADC S5P6440_PA_ADC

#endif /* __ASM_ARCH_MAP_H */
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-s5p6440/mach-smdk6440.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include <plat/pll.h>
#include <plat/adc.h>
#include <plat/ts.h>

#define S5P6440_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
S3C2410_UCON_RXILEVEL | \
Expand Down Expand Up @@ -85,6 +87,14 @@ static struct s3c2410_uartcfg smdk6440_uartcfgs[] __initdata = {

static struct platform_device *smdk6440_devices[] __initdata = {
&s5p6440_device_iis,
&s3c_device_adc,
&s3c_device_ts,
};

static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.delay = 10000,
.presc = 49,
.oversampling_shift = 2,
};

static void __init smdk6440_map_io(void)
Expand All @@ -96,6 +106,8 @@ static void __init smdk6440_map_io(void)

static void __init smdk6440_machine_init(void)
{
s3c24xx_ts_set_platdata(&s3c_ts_platform);

platform_add_devices(smdk6440_devices, ARRAY_SIZE(smdk6440_devices));
}

Expand Down

0 comments on commit c35d88f

Please sign in to comment.