Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mach-mx51_babbage.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/input.h>
#include <linux/spi/flash.h>
#include <linux/spi/spi.h>
#include <mach/common.h>
#include <mach/hardware.h>
#include <mach/iomux-mx51.h>
#include <asm/setup.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include "devices-imx51.h"
#include "cpu_op-mx51.h"

Go to the source code of this file.

Macros

#define BABBAGE_USB_HUB_RESET   IMX_GPIO_NR(1, 7)
 
#define BABBAGE_USBH1_STP   IMX_GPIO_NR(1, 27)
 
#define BABBAGE_USB_PHY_RESET   IMX_GPIO_NR(2, 5)
 
#define BABBAGE_FEC_PHY_RESET   IMX_GPIO_NR(2, 14)
 
#define BABBAGE_POWER_KEY   IMX_GPIO_NR(2, 21)
 
#define BABBAGE_ECSPI1_CS0   IMX_GPIO_NR(4, 24)
 
#define BABBAGE_ECSPI1_CS1   IMX_GPIO_NR(4, 25)
 
#define BABBAGE_SD2_CD   IMX_GPIO_NR(1, 6)
 
#define BABBAGE_SD2_WP   IMX_GPIO_NR(1, 5)
 
#define MX51_USB_CTRL_1_OFFSET   0x10
 
#define MX51_USB_CTRL_UH1_EXT_CLK_EN   (1 << 25)
 
#define MX51_USB_PLLDIV_12_MHZ   0x00
 
#define MX51_USB_PLL_DIV_19_2_MHZ   0x01
 
#define MX51_USB_PLL_DIV_24_MHZ   0x02
 

Functions

 __setup ("otg_mode=", babbage_otg_mode)
 
void __init imx51_babbage_common_init (void)
 

Variables

 atag_offset = 0x100
 
 map_io = mx51_map_io
 
 init_early = imx51_init_early
 
 init_irq = mx51_init_irq
 
 handle_irq = imx51_handle_irq
 
 timer = &mx51_babbage_timer
 
 init_machine = mx51_babbage_init
 
 init_late = imx51_init_late
 
 restart = mxc_restart
 

Macro Definition Documentation

#define BABBAGE_ECSPI1_CS0   IMX_GPIO_NR(4, 24)

Definition at line 40 of file mach-mx51_babbage.c.

#define BABBAGE_ECSPI1_CS1   IMX_GPIO_NR(4, 25)

Definition at line 41 of file mach-mx51_babbage.c.

#define BABBAGE_FEC_PHY_RESET   IMX_GPIO_NR(2, 14)

Definition at line 38 of file mach-mx51_babbage.c.

#define BABBAGE_POWER_KEY   IMX_GPIO_NR(2, 21)

Definition at line 39 of file mach-mx51_babbage.c.

#define BABBAGE_SD2_CD   IMX_GPIO_NR(1, 6)

Definition at line 42 of file mach-mx51_babbage.c.

#define BABBAGE_SD2_WP   IMX_GPIO_NR(1, 5)

Definition at line 43 of file mach-mx51_babbage.c.

#define BABBAGE_USB_HUB_RESET   IMX_GPIO_NR(1, 7)

Definition at line 35 of file mach-mx51_babbage.c.

#define BABBAGE_USB_PHY_RESET   IMX_GPIO_NR(2, 5)

Definition at line 37 of file mach-mx51_babbage.c.

#define BABBAGE_USBH1_STP   IMX_GPIO_NR(1, 27)

Definition at line 36 of file mach-mx51_babbage.c.

#define MX51_USB_CTRL_1_OFFSET   0x10

Definition at line 46 of file mach-mx51_babbage.c.

#define MX51_USB_CTRL_UH1_EXT_CLK_EN   (1 << 25)

Definition at line 47 of file mach-mx51_babbage.c.

#define MX51_USB_PLL_DIV_19_2_MHZ   0x01

Definition at line 50 of file mach-mx51_babbage.c.

#define MX51_USB_PLL_DIV_24_MHZ   0x02

Definition at line 51 of file mach-mx51_babbage.c.

#define MX51_USB_PLLDIV_12_MHZ   0x00

Definition at line 49 of file mach-mx51_babbage.c.

Function Documentation

__setup ( )
void __init imx51_babbage_common_init ( void  )

Definition at line 358 of file mach-mx51_babbage.c.

Variable Documentation

atag_offset = 0x100

Definition at line 428 of file mach-mx51_babbage.c.

handle_irq = imx51_handle_irq

Definition at line 432 of file mach-mx51_babbage.c.

init_early = imx51_init_early

Definition at line 430 of file mach-mx51_babbage.c.

init_irq = mx51_init_irq

Definition at line 431 of file mach-mx51_babbage.c.

init_late = imx51_init_late

Definition at line 435 of file mach-mx51_babbage.c.

init_machine = mx51_babbage_init

Definition at line 434 of file mach-mx51_babbage.c.

map_io = mx51_map_io

Definition at line 429 of file mach-mx51_babbage.c.

restart = mxc_restart

Definition at line 436 of file mach-mx51_babbage.c.

timer = &mx51_babbage_timer

Definition at line 433 of file mach-mx51_babbage.c.