Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
4xx.c File Reference
#include <stddef.h>
#include "types.h"
#include "string.h"
#include "stdio.h"
#include "ops.h"
#include "reg.h"
#include "dcr.h"

Go to the source code of this file.

Macros

#define DCRN_MQ0_B0BAS   0x40
 
#define DCRN_MQ0_B1BAS   0x41
 
#define DCRN_MQ0_B2BAS   0x42
 
#define DCRN_MQ0_B3BAS   0x43
 
#define DDR0_02   2
 
#define DDR0_08   8
 
#define DDR0_10   10
 
#define DDR0_14   14
 
#define DDR0_42   42
 
#define DDR0_43   43
 
#define DDR_START   0x1
 
#define DDR_START_SHIFT   0
 
#define DDR_MAX_CS_REG   0x3
 
#define DDR_MAX_CS_REG_SHIFT   24
 
#define DDR_MAX_COL_REG   0xf
 
#define DDR_MAX_COL_REG_SHIFT   16
 
#define DDR_MAX_ROW_REG   0xf
 
#define DDR_MAX_ROW_REG_SHIFT   8
 
#define DDR_DDR2_MODE   0x1
 
#define DDR_DDR2_MODE_SHIFT   0
 
#define DDR_CS_MAP   0x3
 
#define DDR_CS_MAP_SHIFT   8
 
#define DDR_REDUC   0x1
 
#define DDR_REDUC_SHIFT   16
 
#define DDR_APIN   0x7
 
#define DDR_APIN_SHIFT   24
 
#define DDR_COL_SZ   0x7
 
#define DDR_COL_SZ_SHIFT   8
 
#define DDR_BANK8   0x1
 
#define DDR_BANK8_SHIFT   0
 
#define DDR_GET_VAL(val, mask, shift)   (((val) >> (shift)) & (mask))
 
#define SPRN_DBCR0_40X   0x3F2
 
#define SPRN_DBCR0_44X   0x134
 
#define DBCR0_RST_SYSTEM   0x30000000
 
#define EMAC_RESET   0x20000000
 
#define SPRN_CCR1   0x378
 

Functions

void ibm4xx_sdram_fixup_memsize (void)
 
void ibm440spe_fixup_memsize (void)
 
void ibm4xx_denali_fixup_memsize (void)
 
void ibm44x_dbcr_reset (void)
 
void ibm40x_dbcr_reset (void)
 
void ibm4xx_quiesce_eth (u32 *emac0, u32 *emac1)
 
void ibm4xx_fixup_ebc_ranges (const char *ebc)
 
void ibm440gp_fixup_clocks (unsigned int sys_clk, unsigned int ser_clk)
 
void ibm440ep_fixup_clocks (unsigned int sys_clk, unsigned int ser_clk, unsigned int tmr_clk)
 
void ibm440gx_fixup_clocks (unsigned int sys_clk, unsigned int ser_clk, unsigned int tmr_clk)
 
void ibm440spe_fixup_clocks (unsigned int sys_clk, unsigned int ser_clk, unsigned int tmr_clk)
 
void ibm405gp_fixup_clocks (unsigned int sys_clk, unsigned int ser_clk)
 
void ibm405ep_fixup_clocks (unsigned int sys_clk)
 
u32 ibm405ex_get_fwdva (unsigned long cpr_fwdv)
 
u32 ibm405ex_get_fbdv (unsigned long cpr_fbdv)
 
void ibm405ex_fixup_clocks (unsigned int sys_clk, unsigned int uart_clk)
 

Macro Definition Documentation

#define DBCR0_RST_SYSTEM   0x30000000

Definition at line 262 of file 4xx.c.

#define DCRN_MQ0_B0BAS   0x40

Definition at line 65 of file 4xx.c.

#define DCRN_MQ0_B1BAS   0x41

Definition at line 66 of file 4xx.c.

#define DCRN_MQ0_B2BAS   0x42

Definition at line 67 of file 4xx.c.

#define DCRN_MQ0_B3BAS   0x43

Definition at line 68 of file 4xx.c.

#define DDR0_02   2

Definition at line 129 of file 4xx.c.

#define DDR0_08   8

Definition at line 130 of file 4xx.c.

#define DDR0_10   10

Definition at line 131 of file 4xx.c.

#define DDR0_14   14

Definition at line 132 of file 4xx.c.

#define DDR0_42   42

Definition at line 133 of file 4xx.c.

#define DDR0_43   43

Definition at line 134 of file 4xx.c.

#define DDR_APIN   0x7

Definition at line 155 of file 4xx.c.

#define DDR_APIN_SHIFT   24

Definition at line 156 of file 4xx.c.

#define DDR_BANK8   0x1

Definition at line 160 of file 4xx.c.

#define DDR_BANK8_SHIFT   0

Definition at line 161 of file 4xx.c.

#define DDR_COL_SZ   0x7

Definition at line 158 of file 4xx.c.

#define DDR_COL_SZ_SHIFT   8

Definition at line 159 of file 4xx.c.

#define DDR_CS_MAP   0x3

Definition at line 149 of file 4xx.c.

#define DDR_CS_MAP_SHIFT   8

Definition at line 150 of file 4xx.c.

#define DDR_DDR2_MODE   0x1

Definition at line 146 of file 4xx.c.

#define DDR_DDR2_MODE_SHIFT   0

Definition at line 147 of file 4xx.c.

#define DDR_GET_VAL (   val,
  mask,
  shift 
)    (((val) >> (shift)) & (mask))

Definition at line 163 of file 4xx.c.

#define DDR_MAX_COL_REG   0xf

Definition at line 141 of file 4xx.c.

#define DDR_MAX_COL_REG_SHIFT   16

Definition at line 142 of file 4xx.c.

#define DDR_MAX_CS_REG   0x3

Definition at line 139 of file 4xx.c.

#define DDR_MAX_CS_REG_SHIFT   24

Definition at line 140 of file 4xx.c.

#define DDR_MAX_ROW_REG   0xf

Definition at line 143 of file 4xx.c.

#define DDR_MAX_ROW_REG_SHIFT   8

Definition at line 144 of file 4xx.c.

#define DDR_REDUC   0x1

Definition at line 152 of file 4xx.c.

#define DDR_REDUC_SHIFT   16

Definition at line 153 of file 4xx.c.

#define DDR_START   0x1

Definition at line 137 of file 4xx.c.

#define DDR_START_SHIFT   0

Definition at line 138 of file 4xx.c.

#define EMAC_RESET   0x20000000

Definition at line 289 of file 4xx.c.

#define SPRN_CCR1   0x378

Definition at line 394 of file 4xx.c.

#define SPRN_DBCR0_40X   0x3F2

Definition at line 260 of file 4xx.c.

#define SPRN_DBCR0_44X   0x134

Definition at line 261 of file 4xx.c.

Function Documentation

void ibm405ep_fixup_clocks ( unsigned int  sys_clk)

Definition at line 625 of file 4xx.c.

void ibm405ex_fixup_clocks ( unsigned int  sys_clk,
unsigned int  uart_clk 
)

Definition at line 727 of file 4xx.c.

u32 ibm405ex_get_fbdv ( unsigned long  cpr_fbdv)

Definition at line 716 of file 4xx.c.

u32 ibm405ex_get_fwdva ( unsigned long  cpr_fwdv)

Definition at line 673 of file 4xx.c.

void ibm405gp_fixup_clocks ( unsigned int  sys_clk,
unsigned int  ser_clk 
)

Definition at line 552 of file 4xx.c.

void ibm40x_dbcr_reset ( void  )

Definition at line 277 of file 4xx.c.

void ibm440ep_fixup_clocks ( unsigned int  sys_clk,
unsigned int  ser_clk,
unsigned int  tmr_clk 
)

Definition at line 516 of file 4xx.c.

void ibm440gp_fixup_clocks ( unsigned int  sys_clk,
unsigned int  ser_clk 
)

Definition at line 335 of file 4xx.c.

void ibm440gx_fixup_clocks ( unsigned int  sys_clk,
unsigned int  ser_clk,
unsigned int  tmr_clk 
)

Definition at line 529 of file 4xx.c.

void ibm440spe_fixup_clocks ( unsigned int  sys_clk,
unsigned int  ser_clk,
unsigned int  tmr_clk 
)

Definition at line 540 of file 4xx.c.

void ibm440spe_fixup_memsize ( void  )

Definition at line 103 of file 4xx.c.

void ibm44x_dbcr_reset ( void  )

Definition at line 264 of file 4xx.c.

void ibm4xx_denali_fixup_memsize ( void  )

Definition at line 205 of file 4xx.c.

void ibm4xx_fixup_ebc_ranges ( const char ebc)

Definition at line 307 of file 4xx.c.

void ibm4xx_quiesce_eth ( u32 emac0,
u32 emac1 
)

Definition at line 290 of file 4xx.c.

void ibm4xx_sdram_fixup_memsize ( void  )

Definition at line 48 of file 4xx.c.