Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tsx1x-common.c File Reference
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/mtd/physmap.h>
#include <linux/spi/flash.h>
#include <linux/spi/spi.h>
#include <linux/serial_reg.h>
#include <mach/kirkwood.h>
#include "common.h"

Go to the source code of this file.

Macros

#define UART1_REG(x)   (UART1_VIRT_BASE + ((UART_##x) << 2))
 

Functions

void __init qnap_tsx1x_register_flash (void)
 
void qnap_tsx1x_power_off (void)
 

Variables

struct mtd_partition qnap_tsx1x_partitions []
 
struct flash_platform_data qnap_tsx1x_flash
 
struct spi_board_info __initdata qnap_tsx1x_spi_slave_info []
 

Macro Definition Documentation

#define UART1_REG (   x)    (UART1_VIRT_BASE + ((UART_##x) << 2))

Definition at line 91 of file tsx1x-common.c.

Function Documentation

void qnap_tsx1x_power_off ( void  )

Definition at line 93 of file tsx1x-common.c.

void __init qnap_tsx1x_register_flash ( void  )

Definition at line 79 of file tsx1x-common.c.

Variable Documentation

struct flash_platform_data qnap_tsx1x_flash
Initial value:
= {
.type = "m25p128",
.name = "spi_flash",
}

Definition at line 61 of file tsx1x-common.c.

struct mtd_partition qnap_tsx1x_partitions[]
Initial value:
= {
{
.name = "U-Boot",
.size = 0x00080000,
.offset = 0,
.mask_flags = MTD_WRITEABLE,
}, {
.name = "Kernel",
.size = 0x00200000,
.offset = 0x00200000,
}, {
.name = "RootFS1",
.size = 0x00900000,
.offset = 0x00400000,
}, {
.name = "RootFS2",
.size = 0x00300000,
.offset = 0x00d00000,
}, {
.name = "U-Boot Config",
.size = 0x00040000,
.offset = 0x00080000,
}, {
.name = "NAS Config",
.size = 0x00140000,
.offset = 0x000c0000,
},
}

Definition at line 32 of file tsx1x-common.c.

struct spi_board_info __initdata qnap_tsx1x_spi_slave_info[]
Initial value:
= {
{
.modalias = "m25p80",
.platform_data = &qnap_tsx1x_flash,
.irq = -1,
.max_speed_hz = 20000000,
.bus_num = 0,
.chip_select = 0,
},
}

Definition at line 68 of file tsx1x-common.c.