Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f447ea4b
Commit
f447ea4b
authored
May 19, 2010
by
Ben Dooks
Browse files
Options
Browse Files
Download
Plain Diff
ARM: Merge for-2635/samsung-hwmon
Merge branch 'for-2635/samsung-hwmon' into for-linus/samsung2
parents
c733a717
6cd82ffe
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
9 deletions
+60
-9
arch/arm/mach-s3c2410/Kconfig
arch/arm/mach-s3c2410/Kconfig
+1
-0
arch/arm/mach-s3c2410/mach-bast.c
arch/arm/mach-s3c2410/mach-bast.c
+1
-1
arch/arm/plat-s3c24xx/devs.c
arch/arm/plat-s3c24xx/devs.c
+0
-8
arch/arm/plat-samsung/Kconfig
arch/arm/plat-samsung/Kconfig
+5
-0
arch/arm/plat-samsung/Makefile
arch/arm/plat-samsung/Makefile
+1
-0
arch/arm/plat-samsung/dev-hwmon.c
arch/arm/plat-samsung/dev-hwmon.c
+42
-0
arch/arm/plat-samsung/include/plat/hwmon.h
arch/arm/plat-samsung/include/plat/hwmon.h
+10
-0
No files found.
arch/arm/mach-s3c2410/Kconfig
View file @
f447ea4b
...
@@ -110,6 +110,7 @@ config ARCH_BAST
...
@@ -110,6 +110,7 @@ config ARCH_BAST
select MACH_BAST_IDE
select MACH_BAST_IDE
select S3C24XX_DCLK
select S3C24XX_DCLK
select ISA
select ISA
select S3C_DEV_HWMON
select S3C_DEV_USB_HOST
select S3C_DEV_USB_HOST
select S3C_DEV_NAND
select S3C_DEV_NAND
help
help
...
...
arch/arm/mach-s3c2410/mach-bast.c
View file @
f447ea4b
...
@@ -634,7 +634,7 @@ static void __init bast_map_io(void)
...
@@ -634,7 +634,7 @@ static void __init bast_map_io(void)
s3c24xx_register_clocks
(
bast_clocks
,
ARRAY_SIZE
(
bast_clocks
));
s3c24xx_register_clocks
(
bast_clocks
,
ARRAY_SIZE
(
bast_clocks
));
s3c_
device_hwmon
.
dev
.
platform_data
=
&
bast_hwmon_info
;
s3c_
hwmon_set_platdata
(
&
bast_hwmon_info
)
;
s3c24xx_init_io
(
bast_iodesc
,
ARRAY_SIZE
(
bast_iodesc
));
s3c24xx_init_io
(
bast_iodesc
,
ARRAY_SIZE
(
bast_iodesc
));
s3c24xx_init_clocks
(
0
);
s3c24xx_init_clocks
(
0
);
...
...
arch/arm/plat-s3c24xx/devs.c
View file @
f447ea4b
...
@@ -343,14 +343,6 @@ struct platform_device s3c_device_adc = {
...
@@ -343,14 +343,6 @@ struct platform_device s3c_device_adc = {
.
resource
=
s3c_adc_resource
,
.
resource
=
s3c_adc_resource
,
};
};
/* HWMON */
struct
platform_device
s3c_device_hwmon
=
{
.
name
=
"s3c-hwmon"
,
.
id
=
-
1
,
.
dev
.
parent
=
&
s3c_device_adc
.
dev
,
};
/* SDI */
/* SDI */
static
struct
resource
s3c_sdi_resource
[]
=
{
static
struct
resource
s3c_sdi_resource
[]
=
{
...
...
arch/arm/plat-samsung/Kconfig
View file @
f447ea4b
...
@@ -160,6 +160,11 @@ config S3C_DEV_HSMMC2
...
@@ -160,6 +160,11 @@ config S3C_DEV_HSMMC2
help
help
Compile in platform device definitions for HSMMC channel 2
Compile in platform device definitions for HSMMC channel 2
config S3C_DEV_HWMON
bool
help
Compile in platform device definitions for HWMON
config S3C_DEV_I2C1
config S3C_DEV_I2C1
bool
bool
help
help
...
...
arch/arm/plat-samsung/Makefile
View file @
f447ea4b
...
@@ -33,6 +33,7 @@ obj-$(CONFIG_S3C_ADC) += adc.o
...
@@ -33,6 +33,7 @@ obj-$(CONFIG_S3C_ADC) += adc.o
obj-$(CONFIG_S3C_DEV_HSMMC)
+=
dev-hsmmc.o
obj-$(CONFIG_S3C_DEV_HSMMC)
+=
dev-hsmmc.o
obj-$(CONFIG_S3C_DEV_HSMMC1)
+=
dev-hsmmc1.o
obj-$(CONFIG_S3C_DEV_HSMMC1)
+=
dev-hsmmc1.o
obj-$(CONFIG_S3C_DEV_HSMMC2)
+=
dev-hsmmc2.o
obj-$(CONFIG_S3C_DEV_HSMMC2)
+=
dev-hsmmc2.o
obj-$(CONFIG_S3C_DEV_HWMON)
+=
dev-hwmon.o
obj-y
+=
dev-i2c0.o
obj-y
+=
dev-i2c0.o
obj-$(CONFIG_S3C_DEV_I2C1)
+=
dev-i2c1.o
obj-$(CONFIG_S3C_DEV_I2C1)
+=
dev-i2c1.o
obj-$(CONFIG_S3C_DEV_FB)
+=
dev-fb.o
obj-$(CONFIG_S3C_DEV_FB)
+=
dev-fb.o
...
...
arch/arm/plat-samsung/dev-hwmon.c
0 → 100644
View file @
f447ea4b
/* linux/arch/arm/plat-samsung/dev-hwmon.c
*
* Copyright 2008 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
* http://armlinux.simtec.co.uk/
*
* Adapted for HWMON by Maurus Cuelenaere
*
* Samsung series device definition for HWMON
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <plat/devs.h>
#include <plat/hwmon.h>
struct
platform_device
s3c_device_hwmon
=
{
.
name
=
"s3c-hwmon"
,
.
id
=
-
1
,
.
dev
.
parent
=
&
s3c_device_adc
.
dev
,
};
void
__init
s3c_hwmon_set_platdata
(
struct
s3c_hwmon_pdata
*
pd
)
{
struct
s3c_hwmon_pdata
*
npd
;
if
(
!
pd
)
{
printk
(
KERN_ERR
"%s: no platform data
\n
"
,
__func__
);
return
;
}
npd
=
kmemdup
(
pd
,
sizeof
(
struct
s3c_hwmon_pdata
),
GFP_KERNEL
);
if
(
!
npd
)
printk
(
KERN_ERR
"%s: no memory for platform data
\n
"
,
__func__
);
s3c_device_hwmon
.
dev
.
platform_data
=
npd
;
}
arch/arm/plat-samsung/include/plat/hwmon.h
View file @
f447ea4b
...
@@ -37,5 +37,15 @@ struct s3c_hwmon_pdata {
...
@@ -37,5 +37,15 @@ struct s3c_hwmon_pdata {
struct
s3c_hwmon_chcfg
*
in
[
8
];
struct
s3c_hwmon_chcfg
*
in
[
8
];
};
};
/**
* s3c_hwmon_set_platdata - Set platform data for S3C HWMON device
* @pd: Platform data to register to device.
*
* Register the given platform data for use with the S3C HWMON device.
* The call will copy the platform data, so the board definitions can
* make the structure itself __initdata.
*/
extern
void
__init
s3c_hwmon_set_platdata
(
struct
s3c_hwmon_pdata
*
pd
);
#endif
/* __ASM_ARCH_ADC_HWMON_H */
#endif
/* __ASM_ARCH_ADC_HWMON_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment