Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
board-mackerel.c File Reference
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/input.h>
#include <linux/io.h>
#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/mfd/tmio.h>
#include <linux/mmc/host.h>
#include <linux/mmc/sh_mmcif.h>
#include <linux/mmc/sh_mobile_sdhi.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/sh_flctl.h>
#include <linux/pm_clock.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/smsc911x.h>
#include <linux/sh_intc.h>
#include <linux/tca6416_keypad.h>
#include <linux/usb/renesas_usbhs.h>
#include <linux/dma-mapping.h>
#include <video/sh_mobile_hdmi.h>
#include <video/sh_mobile_lcdc.h>
#include <media/sh_mobile_ceu.h>
#include <media/soc_camera.h>
#include <media/soc_camera_platform.h>
#include <sound/sh_fsi.h>
#include <sound/simple_card.h>
#include <mach/common.h>
#include <mach/irqs.h>
#include <mach/sh7372.h>
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
#include "sh-gpio.h"

Go to the source code of this file.

Data Structures

struct  usbhs_private
 

Macros

#define USBHS0_POLL_INTERVAL   (HZ * 5)
 
#define usbhs_get_priv(pdev)
 
#define usbhs_is_connected(priv)   (!((1 << 7) & __raw_readw(priv->usbcrcaddr)))
 
#define IRQ8   evt2irq(0x0300)
 
#define USB_PHY_MODE   (1 << 4)
 
#define USB_PHY_INT_EN   ((1 << 3) | (1 << 2))
 
#define USB_PHY_ON   (1 << 1)
 
#define USB_PHY_OFF   (1 << 0)
 
#define USB_PHY_INT_CLR   (USB_PHY_ON | USB_PHY_OFF)
 
#define IRQ_FSI   evt2irq(0x1840)
 
#define KEYPAD_BUTTON(ev_type, ev_code, act_low)
 
#define KEYPAD_BUTTON_LOW(event_code)   KEYPAD_BUTTON(EV_KEY, event_code, 1)
 
#define IRQ7   evt2irq(0x02e0)
 
#define IRQ9   evt2irq(0x0320)
 
#define IRQ21   evt2irq(0x32a0)
 
#define GPIO_PORT9CR   IOMEM(0xE6051009)
 
#define GPIO_PORT10CR   IOMEM(0xE605100A)
 
#define GPIO_PORT167CR   IOMEM(0xE60520A7)
 
#define GPIO_PORT168CR   IOMEM(0xE60520A8)
 
#define SRCR4   IOMEM(0xe61580bc)
 
#define USCCR1   IOMEM(0xE6058144)
 

Variables

 map_io = sh7372_map_io
 
 init_early = sh7372_add_early_devices
 
 init_irq = sh7372_init_irq
 
 handle_irq = shmobile_handle_irq_intc
 
 init_machine = mackerel_init
 
 init_late = sh7372_pm_init_late
 
 timer = &shmobile_timer
 

Macro Definition Documentation

#define GPIO_PORT10CR   IOMEM(0xE605100A)

Definition at line 1408 of file board-mackerel.c.

#define GPIO_PORT167CR   IOMEM(0xE60520A7)

Definition at line 1409 of file board-mackerel.c.

#define GPIO_PORT168CR   IOMEM(0xE60520A8)

Definition at line 1410 of file board-mackerel.c.

#define GPIO_PORT9CR   IOMEM(0xE6051009)

Definition at line 1407 of file board-mackerel.c.

#define IRQ21   evt2irq(0x32a0)

Definition at line 1397 of file board-mackerel.c.

#define IRQ7   evt2irq(0x02e0)

Definition at line 1377 of file board-mackerel.c.

#define IRQ8   evt2irq(0x0300)

Definition at line 702 of file board-mackerel.c.

#define IRQ9   evt2irq(0x0320)

Definition at line 1378 of file board-mackerel.c.

#define IRQ_FSI   evt2irq(0x1840)

Definition at line 862 of file board-mackerel.c.

#define KEYPAD_BUTTON (   ev_type,
  ev_code,
  act_low 
)
Value:
{ \
.type = ev_type, \
.code = ev_code, \
.active_low = act_low, \
}

Definition at line 1352 of file board-mackerel.c.

#define KEYPAD_BUTTON_LOW (   event_code)    KEYPAD_BUTTON(EV_KEY, event_code, 1)

Definition at line 1359 of file board-mackerel.c.

#define SRCR4   IOMEM(0xe61580bc)

Definition at line 1411 of file board-mackerel.c.

#define USB_PHY_INT_CLR   (USB_PHY_ON | USB_PHY_OFF)

Definition at line 707 of file board-mackerel.c.

#define USB_PHY_INT_EN   ((1 << 3) | (1 << 2))

Definition at line 704 of file board-mackerel.c.

#define USB_PHY_MODE   (1 << 4)

Definition at line 703 of file board-mackerel.c.

#define USB_PHY_OFF   (1 << 0)

Definition at line 706 of file board-mackerel.c.

#define USB_PHY_ON   (1 << 1)

Definition at line 705 of file board-mackerel.c.

#define USBHS0_POLL_INTERVAL   (HZ * 5)

Definition at line 585 of file board-mackerel.c.

#define usbhs_get_priv (   pdev)
Value:

Definition at line 595 of file board-mackerel.c.

#define usbhs_is_connected (   priv)    (!((1 << 7) & __raw_readw(priv->usbcrcaddr)))

Definition at line 599 of file board-mackerel.c.

#define USCCR1   IOMEM(0xE6058144)

Definition at line 1412 of file board-mackerel.c.

Variable Documentation

Definition at line 1658 of file board-mackerel.c.

Definition at line 1656 of file board-mackerel.c.

init_irq = sh7372_init_irq

Definition at line 1657 of file board-mackerel.c.

init_late = sh7372_pm_init_late

Definition at line 1660 of file board-mackerel.c.

init_machine = mackerel_init

Definition at line 1659 of file board-mackerel.c.

map_io = sh7372_map_io

Definition at line 1655 of file board-mackerel.c.

Definition at line 1661 of file board-mackerel.c.