Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtc_from4.c File Reference
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/rslib.h>
#include <linux/bitrev.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define RTC_FROM4_MAX_CHIPS   2
 
#define SH77X9_BCR1   ((volatile unsigned short *)(0xFFFFFF60))
 
#define SH77X9_BCR2   ((volatile unsigned short *)(0xFFFFFF62))
 
#define SH77X9_WCR1   ((volatile unsigned short *)(0xFFFFFF64))
 
#define SH77X9_WCR2   ((volatile unsigned short *)(0xFFFFFF66))
 
#define SH77X9_MCR   ((volatile unsigned short *)(0xFFFFFF68))
 
#define SH77X9_PCR   ((volatile unsigned short *)(0xFFFFFF6C))
 
#define SH77X9_FRQCR   ((volatile unsigned short *)(0xFFFFFF80))
 
#define RTC_FROM4_FIO_BASE   0x14000000
 
#define RTC_FROM4_CLE   (1 << 5)
 
#define RTC_FROM4_ALE   (1 << 4)
 
#define RTC_FROM4_NAND_ADDR_SLOT3   (0x00800000)
 
#define RTC_FROM4_NAND_ADDR_SLOT4   (0x00C00000)
 
#define RTC_FROM4_NAND_ADDR_FPGA   (0x01000000)
 
#define RTC_FROM4_NAND_ADDR_MASK   (RTC_FROM4_NAND_ADDR_SLOT3 | RTC_FROM4_NAND_ADDR_SLOT4 | RTC_FROM4_NAND_ADDR_FPGA)
 
#define RTC_FROM4_FPGA_SR   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000002)
 
#define RTC_FROM4_DEVICE_READY   0x0001
 
#define RTC_FROM4_RS_ECC_CTL   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000050)
 
#define RTC_FROM4_RS_ECC_CTL_CLR   (1 << 7)
 
#define RTC_FROM4_RS_ECC_CTL_GEN   (1 << 6)
 
#define RTC_FROM4_RS_ECC_CTL_FD_E   (1 << 5)
 
#define RTC_FROM4_RS_ECC   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000060)
 
#define RTC_FROM4_RS_ECCN   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000080)
 
#define RTC_FROM4_RS_ECC_CHK   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000070)
 
#define RTC_FROM4_RS_ECC_CHK_ERROR   (1 << 7)
 
#define ERR_STAT_ECC_AVAILABLE   0x20
 
#define RTC_FROM4_HWECC   1
 
#define RTC_FROM4_NO_VIRTBLOCKS   0
 
#define NUM_PARTITIONS   1
 

Functions

 module_init (rtc_from4_init)
 
 module_exit (rtc_from4_cleanup)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("d.marlin <[email protected]")
 
 MODULE_DESCRIPTION ("Board-specific glue layer for AG-AND flash on Renesas FROM_BOARD4")
 

Macro Definition Documentation

#define ERR_STAT_ECC_AVAILABLE   0x20

Definition at line 84 of file rtc_from4.c.

#define NUM_PARTITIONS   1

Definition at line 104 of file rtc_from4.c.

#define RTC_FROM4_ALE   (1 << 4)

Definition at line 56 of file rtc_from4.c.

#define RTC_FROM4_CLE   (1 << 5)

Definition at line 55 of file rtc_from4.c.

#define RTC_FROM4_DEVICE_READY   0x0001

Definition at line 67 of file rtc_from4.c.

#define RTC_FROM4_FIO_BASE   0x14000000

Definition at line 52 of file rtc_from4.c.

#define RTC_FROM4_FPGA_SR   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000002)

Definition at line 66 of file rtc_from4.c.

#define RTC_FROM4_HWECC   1

Definition at line 87 of file rtc_from4.c.

#define RTC_FROM4_MAX_CHIPS   2

Definition at line 37 of file rtc_from4.c.

#define RTC_FROM4_NAND_ADDR_FPGA   (0x01000000)

Definition at line 61 of file rtc_from4.c.

Definition at line 63 of file rtc_from4.c.

#define RTC_FROM4_NAND_ADDR_SLOT3   (0x00800000)

Definition at line 59 of file rtc_from4.c.

#define RTC_FROM4_NAND_ADDR_SLOT4   (0x00C00000)

Definition at line 60 of file rtc_from4.c.

#define RTC_FROM4_NO_VIRTBLOCKS   0

Definition at line 90 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000060)

Definition at line 77 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC_CHK   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000070)

Definition at line 81 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC_CHK_ERROR   (1 << 7)

Definition at line 82 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC_CTL   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000050)

Definition at line 71 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC_CTL_CLR   (1 << 7)

Definition at line 72 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC_CTL_FD_E   (1 << 5)

Definition at line 74 of file rtc_from4.c.

#define RTC_FROM4_RS_ECC_CTL_GEN   (1 << 6)

Definition at line 73 of file rtc_from4.c.

#define RTC_FROM4_RS_ECCN   (RTC_FROM4_NAND_ADDR_FPGA | 0x00000080)

Definition at line 78 of file rtc_from4.c.

#define SH77X9_BCR1   ((volatile unsigned short *)(0xFFFFFF60))

Definition at line 40 of file rtc_from4.c.

#define SH77X9_BCR2   ((volatile unsigned short *)(0xFFFFFF62))

Definition at line 41 of file rtc_from4.c.

#define SH77X9_FRQCR   ((volatile unsigned short *)(0xFFFFFF80))

Definition at line 46 of file rtc_from4.c.

#define SH77X9_MCR   ((volatile unsigned short *)(0xFFFFFF68))

Definition at line 44 of file rtc_from4.c.

#define SH77X9_PCR   ((volatile unsigned short *)(0xFFFFFF6C))

Definition at line 45 of file rtc_from4.c.

#define SH77X9_WCR1   ((volatile unsigned short *)(0xFFFFFF64))

Definition at line 42 of file rtc_from4.c.

#define SH77X9_WCR2   ((volatile unsigned short *)(0xFFFFFF66))

Definition at line 43 of file rtc_from4.c.

Function Documentation

MODULE_AUTHOR ( )
MODULE_DESCRIPTION ( "Board-specific glue layer for AG-AND flash on Renesas FROM_BOARD4"  )
module_exit ( rtc_from4_cleanup  )
module_init ( rtc_from4_init  )
MODULE_LICENSE ( "GPL"  )