Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
setup-sh7786.c File Reference
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/serial.h>
#include <linux/serial_sci.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/dma-mapping.h>
#include <linux/sh_timer.h>
#include <linux/sh_dma.h>
#include <linux/sh_intc.h>
#include <cpu/dma-register.h>
#include <asm/mmzone.h>

Go to the source code of this file.

Macros

#define USB_EHCI_START   0xffe70000
 
#define USB_OHCI_START   0xffe70400
 
#define USBCTL0   0xffe70858
 
#define CLOCK_MODE_MASK   0xffffff7f
 
#define EXT_CLOCK_MODE   0x00000080
 
#define USBINITREG1   0xffe70094
 
#define USBINITREG2   0xffe7009c
 
#define USBINITVAL1   0x00ff0040
 
#define USBINITVAL2   0x00000001
 
#define USBPCTL1   0xffe70804
 
#define USBST   0xffe70808
 
#define PHY_ENB   0x00000001
 
#define PLL_ENB   0x00000002
 
#define PHY_RST   0x00000004
 
#define ACT_PLL_STATUS   0xc0000000
 
#define CnINTMSK0   0xfe410030
 
#define CnINTMSK1   0xfe410040
 
#define CnINTMSKCLR0   0xfe410050
 
#define CnINTMSKCLR1   0xfe410060
 
#define CnINT2MSKR0   0xfe410a20
 
#define CnINT2MSKR1   0xfe410a24
 
#define CnINT2MSKR2   0xfe410a28
 
#define CnINT2MSKR3   0xfe410a2c
 
#define CnINT2MSKCR0   0xfe410a30
 
#define CnINT2MSKCR1   0xfe410a34
 
#define CnINT2MSKCR2   0xfe410a38
 
#define CnINT2MSKCR3   0xfe410a3c
 
#define INTMSK2   0xfe410068
 
#define INTMSKCLR2   0xfe41006c
 
#define INTDISTCR0   0xfe4100b0
 
#define INTDISTCR1   0xfe4100b4
 
#define INT2DISTCR0   0xfe410900
 
#define INT2DISTCR1   0xfe410904
 
#define INT2DISTCR2   0xfe410908
 
#define INT2DISTCR3   0xfe41090c
 
#define INTC_ICR0   0xfe410000
 
#define INTC_INTMSK0   CnINTMSK0
 
#define INTC_INTMSK1   CnINTMSK1
 
#define INTC_INTMSK2   INTMSK2
 
#define INTC_INTMSKCLR1   CnINTMSKCLR1
 
#define INTC_INTMSKCLR2   INTMSKCLR2
 

Enumerations

enum  {
  UNUSED = 0, IRL0_LLLL, IRL0_LLLH, IRL0_LLHL,
  IRL0_LLHH, IRL0_LHLL, IRL0_LHLH, IRL0_LHHL,
  IRL0_LHHH, IRL0_HLLL, IRL0_HLLH, IRL0_HLHL,
  IRL0_HLHH, IRL0_HHLL, IRL0_HHLH, IRL0_HHHL,
  IRL4_LLLL, IRL4_LLLH, IRL4_LLHL, IRL4_LLHH,
  IRL4_LHLL, IRL4_LHLH, IRL4_LHHL, IRL4_LHHH,
  IRL4_HLLL, IRL4_HLLH, IRL4_HLHL, IRL4_HLHH,
  IRL4_HHLL, IRL4_HHLH, IRL4_HHHL, IRQ0,
  IRQ1, IRQ2, IRQ3, IRQ4,
  IRQ5, IRQ6, IRQ7, WDT,
  TMU0_0, TMU0_1, TMU0_2, TMU0_3,
  TMU1_0, TMU1_1, TMU1_2, DMAC0_0,
  DMAC0_1, DMAC0_2, DMAC0_3, DMAC0_4,
  DMAC0_5, DMAC0_6, HUDI1, HUDI0,
  DMAC1_0, DMAC1_1, DMAC1_2, DMAC1_3,
  HPB_0, HPB_1, HPB_2, SCIF0_0,
  SCIF0_1, SCIF0_2, SCIF0_3, SCIF1,
  TMU2, TMU3, SCIF2, SCIF3,
  SCIF4, SCIF5, Eth_0, Eth_1,
  PCIeC0_0, PCIeC0_1, PCIeC0_2, PCIeC1_0,
  PCIeC1_1, PCIeC1_2, USB, I2C0,
  I2C1, DU, SSI0, SSI1,
  SSI2, SSI3, PCIeC2_0, PCIeC2_1,
  PCIeC2_2, HAC0, HAC1, FLCTL,
  HSPI, GPIO0, GPIO1, Thermal,
  INTICI0, INTICI1, INTICI2, INTICI3,
  INTICI4, INTICI5, INTICI6, INTICI7,
  TXI1, BRI1, RXI1, ERI1
}
 

Functions

void __init sh7786_usb_use_exclock (void)
 
void __init plat_irq_setup (void)
 
void __init plat_irq_setup_pins (int mode)
 
void __init plat_mem_setup (void)
 
 arch_initcall (sh7786_devices_setup)
 
void __init plat_early_device_setup (void)
 

Macro Definition Documentation

#define ACT_PLL_STATUS   0xc0000000

Definition at line 648 of file setup-sh7786.c.

#define CLOCK_MODE_MASK   0xffffff7f

Definition at line 629 of file setup-sh7786.c.

#define CnINT2MSKCR0   0xfe410a30

Definition at line 778 of file setup-sh7786.c.

#define CnINT2MSKCR1   0xfe410a34

Definition at line 779 of file setup-sh7786.c.

#define CnINT2MSKCR2   0xfe410a38

Definition at line 780 of file setup-sh7786.c.

#define CnINT2MSKCR3   0xfe410a3c

Definition at line 781 of file setup-sh7786.c.

#define CnINT2MSKR0   0xfe410a20

Definition at line 774 of file setup-sh7786.c.

#define CnINT2MSKR1   0xfe410a24

Definition at line 775 of file setup-sh7786.c.

#define CnINT2MSKR2   0xfe410a28

Definition at line 776 of file setup-sh7786.c.

#define CnINT2MSKR3   0xfe410a2c

Definition at line 777 of file setup-sh7786.c.

#define CnINTMSK0   0xfe410030

Definition at line 770 of file setup-sh7786.c.

#define CnINTMSK1   0xfe410040

Definition at line 771 of file setup-sh7786.c.

#define CnINTMSKCLR0   0xfe410050

Definition at line 772 of file setup-sh7786.c.

#define CnINTMSKCLR1   0xfe410060

Definition at line 773 of file setup-sh7786.c.

#define EXT_CLOCK_MODE   0x00000080

Definition at line 630 of file setup-sh7786.c.

#define INT2DISTCR0   0xfe410900

Definition at line 787 of file setup-sh7786.c.

#define INT2DISTCR1   0xfe410904

Definition at line 788 of file setup-sh7786.c.

#define INT2DISTCR2   0xfe410908

Definition at line 789 of file setup-sh7786.c.

#define INT2DISTCR3   0xfe41090c

Definition at line 790 of file setup-sh7786.c.

#define INTC_ICR0   0xfe410000

Definition at line 961 of file setup-sh7786.c.

#define INTC_INTMSK0   CnINTMSK0

Definition at line 962 of file setup-sh7786.c.

#define INTC_INTMSK1   CnINTMSK1

Definition at line 963 of file setup-sh7786.c.

#define INTC_INTMSK2   INTMSK2

Definition at line 964 of file setup-sh7786.c.

#define INTC_INTMSKCLR1   CnINTMSKCLR1

Definition at line 965 of file setup-sh7786.c.

#define INTC_INTMSKCLR2   INTMSKCLR2

Definition at line 966 of file setup-sh7786.c.

#define INTDISTCR0   0xfe4100b0

Definition at line 785 of file setup-sh7786.c.

#define INTDISTCR1   0xfe4100b4

Definition at line 786 of file setup-sh7786.c.

#define INTMSK2   0xfe410068

Definition at line 782 of file setup-sh7786.c.

#define INTMSKCLR2   0xfe41006c

Definition at line 783 of file setup-sh7786.c.

#define PHY_ENB   0x00000001

Definition at line 645 of file setup-sh7786.c.

#define PHY_RST   0x00000004

Definition at line 647 of file setup-sh7786.c.

#define PLL_ENB   0x00000002

Definition at line 646 of file setup-sh7786.c.

#define USB_EHCI_START   0xffe70000

Definition at line 546 of file setup-sh7786.c.

#define USB_OHCI_START   0xffe70400

Definition at line 547 of file setup-sh7786.c.

#define USBCTL0   0xffe70858

Definition at line 628 of file setup-sh7786.c.

#define USBINITREG1   0xffe70094

Definition at line 638 of file setup-sh7786.c.

#define USBINITREG2   0xffe7009c

Definition at line 639 of file setup-sh7786.c.

#define USBINITVAL1   0x00ff0040

Definition at line 640 of file setup-sh7786.c.

#define USBINITVAL2   0x00000001

Definition at line 641 of file setup-sh7786.c.

#define USBPCTL1   0xffe70804

Definition at line 643 of file setup-sh7786.c.

#define USBST   0xffe70808

Definition at line 644 of file setup-sh7786.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
UNUSED 
IRL0_LLLL 
IRL0_LLLH 
IRL0_LLHL 
IRL0_LLHH 
IRL0_LHLL 
IRL0_LHLH 
IRL0_LHHL 
IRL0_LHHH 
IRL0_HLLL 
IRL0_HLLH 
IRL0_HLHL 
IRL0_HLHH 
IRL0_HHLL 
IRL0_HHLH 
IRL0_HHHL 
IRL4_LLLL 
IRL4_LLLH 
IRL4_LLHL 
IRL4_LLHH 
IRL4_LHLL 
IRL4_LHLH 
IRL4_LHHL 
IRL4_LHHH 
IRL4_HLLL 
IRL4_HLLH 
IRL4_HLHL 
IRL4_HLHH 
IRL4_HHLL 
IRL4_HHLH 
IRL4_HHHL 
IRQ0 
IRQ1 
IRQ2 
IRQ3 
IRQ4 
IRQ5 
IRQ6 
IRQ7 
WDT 
TMU0_0 
TMU0_1 
TMU0_2 
TMU0_3 
TMU1_0 
TMU1_1 
TMU1_2 
DMAC0_0 
DMAC0_1 
DMAC0_2 
DMAC0_3 
DMAC0_4 
DMAC0_5 
DMAC0_6 
HUDI1 
HUDI0 
DMAC1_0 
DMAC1_1 
DMAC1_2 
DMAC1_3 
HPB_0 
HPB_1 
HPB_2 
SCIF0_0 
SCIF0_1 
SCIF0_2 
SCIF0_3 
SCIF1 
TMU2 
TMU3 
SCIF2 
SCIF3 
SCIF4 
SCIF5 
Eth_0 
Eth_1 
PCIeC0_0 
PCIeC0_1 
PCIeC0_2 
PCIeC1_0 
PCIeC1_1 
PCIeC1_2 
USB 
I2C0 
I2C1 
DU 
SSI0 
SSI1 
SSI2 
SSI3 
PCIeC2_0 
PCIeC2_1 
PCIeC2_2 
HAC0 
HAC1 
FLCTL 
HSPI 
GPIO0 
GPIO1 
Thermal 
INTICI0 
INTICI1 
INTICI2 
INTICI3 
INTICI4 
INTICI5 
INTICI6 
INTICI7 
TXI1 
BRI1 
RXI1 
ERI1 

Definition at line 680 of file setup-sh7786.c.

Function Documentation

arch_initcall ( sh7786_devices_setup  )
void __init plat_early_device_setup ( void  )

Definition at line 1055 of file setup-sh7786.c.

void __init plat_irq_setup ( void  )

Definition at line 968 of file setup-sh7786.c.

void __init plat_irq_setup_pins ( int  mode)

Definition at line 983 of file setup-sh7786.c.

void __init plat_mem_setup ( void  )

Definition at line 1021 of file setup-sh7786.c.

void __init sh7786_usb_use_exclock ( void  )

Definition at line 632 of file setup-sh7786.c.