mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
move adc battery platform data from devices.c to board-rk29-k97.c
This commit is contained in:
@@ -416,6 +416,40 @@ struct platform_device rk29_device_dma_cpy = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_ADC_RK29
|
||||||
|
static struct resource rk29_adc_resource[] = {
|
||||||
|
{
|
||||||
|
.start = IRQ_SARADC,
|
||||||
|
.end = IRQ_SARADC,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.start = RK29_ADC_PHYS,
|
||||||
|
.end = RK29_ADC_PHYS + RK29_ADC_SIZE - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
struct platform_device rk29_device_adc = {
|
||||||
|
.name = "rk29-adc",
|
||||||
|
.id = -1,
|
||||||
|
.num_resources = ARRAY_SIZE(rk29_adc_resource),
|
||||||
|
.resource = rk29_adc_resource,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_BATTERY_RK29_ADC
|
||||||
|
struct platform_device rk29_adc_device_battery = {
|
||||||
|
.name = "rk2918-battery",
|
||||||
|
.id = -1,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &rk29_adc_battery_platdata,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(CONFIG_RK29_GPIO_SUSPEND)
|
#if defined(CONFIG_RK29_GPIO_SUSPEND)
|
||||||
static void key_gpio_pullupdown_enable(void)
|
static void key_gpio_pullupdown_enable(void)
|
||||||
|
|||||||
@@ -29,39 +29,8 @@
|
|||||||
#include <mach/board.h>
|
#include <mach/board.h>
|
||||||
#include <mach/loader.h>
|
#include <mach/loader.h>
|
||||||
#include "devices.h"
|
#include "devices.h"
|
||||||
#ifdef CONFIG_ADC_RK29
|
|
||||||
static struct resource rk29_adc_resource[] = {
|
|
||||||
{
|
|
||||||
.start = IRQ_SARADC,
|
|
||||||
.end = IRQ_SARADC,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.start = RK29_ADC_PHYS,
|
|
||||||
.end = RK29_ADC_PHYS + RK29_ADC_SIZE - 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct platform_device rk29_device_adc = {
|
|
||||||
.name = "rk29-adc",
|
|
||||||
.id = -1,
|
|
||||||
.num_resources = ARRAY_SIZE(rk29_adc_resource),
|
|
||||||
.resource = rk29_adc_resource,
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_BATTERY_RK29_ADC
|
|
||||||
struct platform_device rk29_adc_device_battery = {
|
|
||||||
.name = "rk2918-battery",
|
|
||||||
.id = -1,
|
|
||||||
.dev = {
|
|
||||||
.platform_data = &rk29_adc_battery_platdata,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_RK29_VMAC
|
#ifdef CONFIG_RK29_VMAC
|
||||||
static u64 eth_dmamask = DMA_BIT_MASK(32);
|
static u64 eth_dmamask = DMA_BIT_MASK(32);
|
||||||
static struct resource rk29_vmac_resource[] = {
|
static struct resource rk29_vmac_resource[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user