Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
cm-x300.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/gpio.h>
#include <linux/dm9000.h>
#include <linux/leds.h>
#include <linux/rtc-v3020.h>
#include <linux/pwm_backlight.h>
#include <linux/i2c.h>
#include <linux/i2c/pca953x.h>
#include <linux/i2c/pxa-i2c.h>
#include <linux/mfd/da903x.h>
#include <linux/regulator/machine.h>
#include <linux/power_supply.h>
#include <linux/apm-emulation.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_gpio.h>
#include <linux/spi/tdo24m.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/setup.h>
#include <asm/system_info.h>
#include <mach/pxa300.h>
#include <mach/pxa27x-udc.h>
#include <linux/platform_data/video-pxafb.h>
#include <linux/platform_data/mmc-pxamci.h>
#include <linux/platform_data/usb-ohci-pxa27x.h>
#include <linux/platform_data/mtd-nand-pxa3xx.h>
#include <mach/audio.h>
#include <linux/platform_data/usb-pxa3xx-ulpi.h>
#include <asm/mach/map.h>
#include "generic.h"
#include "devices.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "%s: " fmt, __func__
 
#define CM_X300_ETH_PHYS   0x08000010
 
#define GPIO82_MMC_IRQ   (82)
 
#define GPIO85_MMC_WP   (85)
 
#define CM_X300_MMC_IRQ   PXA_GPIO_TO_IRQ(GPIO82_MMC_IRQ)
 
#define GPIO95_RTC_CS   (95)
 
#define GPIO96_RTC_WR   (96)
 
#define GPIO97_RTC_RD   (97)
 
#define GPIO98_RTC_IO   (98)
 
#define GPIO_ULPI_PHY_RST   (127)
 

Variables

struct power_supply_info cm_x300_psy_info
 
struct da9030_battery_info cm_x300_battery_info
 
struct da903x_subdev_info cm_x300_da9030_subdevs []
 
 atag_offset = 0x100
 
 map_io = pxa3xx_map_io
 
 nr_irqs = PXA_NR_IRQS
 
 init_irq = pxa3xx_init_irq
 
 handle_irq = pxa3xx_handle_irq
 
 timer = &pxa_timer
 
 init_machine = cm_x300_init
 
 fixup = cm_x300_fixup
 
 restart = pxa_restart
 

Macro Definition Documentation

#define CM_X300_ETH_PHYS   0x08000010

Definition at line 63 of file cm-x300.c.

#define CM_X300_MMC_IRQ   PXA_GPIO_TO_IRQ(GPIO82_MMC_IRQ)

Definition at line 68 of file cm-x300.c.

#define GPIO82_MMC_IRQ   (82)

Definition at line 65 of file cm-x300.c.

#define GPIO85_MMC_WP   (85)

Definition at line 66 of file cm-x300.c.

#define GPIO95_RTC_CS   (95)

Definition at line 70 of file cm-x300.c.

#define GPIO96_RTC_WR   (96)

Definition at line 71 of file cm-x300.c.

#define GPIO97_RTC_RD   (97)

Definition at line 72 of file cm-x300.c.

#define GPIO98_RTC_IO   (98)

Definition at line 73 of file cm-x300.c.

#define GPIO_ULPI_PHY_RST   (127)

Definition at line 75 of file cm-x300.c.

#define pr_fmt (   fmt)    "%s: " fmt, __func__

Definition at line 15 of file cm-x300.c.

Variable Documentation

atag_offset = 0x100

Definition at line 852 of file cm-x300.c.

struct da9030_battery_info cm_x300_battery_info
Initial value:
= {
.battery_info = &cm_x300_psy_info,
.charge_milliamp = 1000,
.charge_millivolt = 4200,
.vbat_low = 3600,
.vbat_crit = 3400,
.vbat_charge_start = 4100,
.vbat_charge_stop = 4200,
.vbat_charge_restart = 4000,
.vcharge_min = 3200,
.vcharge_max = 5500,
.tbat_low = 197,
.tbat_high = 78,
.tbat_restart = 100,
.batmon_interval = 0,
.battery_low = cm_x300_battery_low,
.battery_critical = cm_x300_battery_critical,
}

Definition at line 690 of file cm-x300.c.

struct da903x_subdev_info cm_x300_da9030_subdevs[]
Initial value:
= {
{
.name = "da903x-battery",
.platform_data = &cm_x300_battery_info,
},
{
.name = "da903x-regulator",
.platform_data = &buck2_data,
},
}

Definition at line 734 of file cm-x300.c.

struct power_supply_info cm_x300_psy_info
Initial value:
= {
.name = "battery",
.voltage_max_design = 4200000,
.voltage_min_design = 3000000,
.use_for_apm = 1,
}

Definition at line 668 of file cm-x300.c.

fixup = cm_x300_fixup

Definition at line 859 of file cm-x300.c.

handle_irq = pxa3xx_handle_irq

Definition at line 856 of file cm-x300.c.

init_irq = pxa3xx_init_irq

Definition at line 855 of file cm-x300.c.

init_machine = cm_x300_init

Definition at line 858 of file cm-x300.c.

map_io = pxa3xx_map_io

Definition at line 853 of file cm-x300.c.

nr_irqs = PXA_NR_IRQS

Definition at line 854 of file cm-x300.c.

restart = pxa_restart

Definition at line 860 of file cm-x300.c.

Definition at line 857 of file cm-x300.c.