Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
aiutils.c File Reference
#include <linux/delay.h>
#include <defs.h>
#include <chipcommon.h>
#include <brcmu_utils.h>
#include <brcm_hw_ids.h>
#include <soc.h>
#include "types.h"
#include "pub.h"
#include "pmu.h"
#include "aiutils.h"

Go to the source code of this file.

Data Structures

struct  aidmp
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SCC_SS_MASK   0x00000007
 
#define SCC_SS_LPO   0x00000000
 
#define SCC_SS_XTAL   0x00000001
 
#define SCC_SS_PCI   0x00000002
 
#define SCC_LF   0x00000200
 
#define SCC_LP   0x00000400
 
#define SCC_FS   0x00000800
 
#define SCC_IP   0x00001000
 
#define SCC_XC   0x00002000
 
#define SCC_XP   0x00004000
 
#define SCC_CD_MASK   0xffff0000
 
#define SCC_CD_SHIFT   16
 
#define SYCC_IE   0x00000001
 
#define SYCC_AE   0x00000002
 
#define SYCC_FP   0x00000004
 
#define SYCC_AR   0x00000008
 
#define SYCC_HR   0x00000010
 
#define SYCC_CD_MASK   0xffff0000
 
#define SYCC_CD_SHIFT   16
 
#define CST4329_SPROM_OTP_SEL_MASK   0x00000003
 
#define CST4329_DEFCIS_SEL   0
 
#define CST4329_SPROM_SEL   1
 
#define CST4329_OTP_SEL   2
 
#define CST4329_OTP_PWRDN   3
 
#define CST4329_SPI_SDIO_MODE_MASK   0x00000004
 
#define CST4329_SPI_SDIO_MODE_SHIFT   2
 
#define CCTRL43224_GPIO_TOGGLE   0x8000
 
#define CCTRL_43224A0_12MA_LED_DRIVE   0x00F000F0
 
#define CCTRL_43224B0_12MA_LED_DRIVE   0xF0
 
#define CST43236_SFLASH_MASK   0x00000040
 
#define CST43236_OTP_MASK   0x00000080
 
#define CST43236_HSIC_MASK   0x00000100 /* USB/HSIC */
 
#define CST43236_BP_CLK   0x00000200 /* 120/96Mbps */
 
#define CST43236_BOOT_MASK   0x00001800
 
#define CST43236_BOOT_SHIFT   11
 
#define CST43236_BOOT_FROM_SRAM   0 /* boot from SRAM, ARM in reset */
 
#define CST43236_BOOT_FROM_ROM   1 /* boot from ROM */
 
#define CST43236_BOOT_FROM_FLASH   2 /* boot from FLASH */
 
#define CST43236_BOOT_FROM_INVALID   3
 
#define CCTRL4331_BT_COEXIST   (1<<0)
 
#define CCTRL4331_SECI   (1<<1)
 
#define CCTRL4331_EXT_LNA   (1<<2)
 
#define CCTRL4331_SPROM_GPIO13_15   (1<<3)
 
#define CCTRL4331_EXTPA_EN   (1<<4)
 
#define CCTRL4331_GPIOCLK_ON_SPROMCS   (1<<5)
 
#define CCTRL4331_PCIE_MDIO_ON_SPROMCS   (1<<6)
 
#define CCTRL4331_EXTPA_ON_GPIO2_5   (1<<7)
 
#define CCTRL4331_OVR_PIPEAUXCLKEN   (1<<8)
 
#define CCTRL4331_OVR_PIPEAUXPWRDOWN   (1<<9)
 
#define CCTRL4331_PCIE_AUXCLKEN   (1<<10)
 
#define CCTRL4331_PCIE_PIPE_PLLDOWN   (1<<11)
 
#define CCTRL4331_BT_SHD0_ON_GPIO4   (1<<16)
 
#define CCTRL4331_BT_SHD1_ON_GPIO5   (1<<17)
 
#define CST4331_XTAL_FREQ   0x00000001
 
#define CST4331_SPROM_PRESENT   0x00000002
 
#define CST4331_OTP_PRESENT   0x00000004
 
#define CST4331_LDO_RF   0x00000008
 
#define CST4331_LDO_PAR   0x00000010
 
#define CST4319_SPI_CPULESSUSB   0x00000001
 
#define CST4319_SPI_CLK_POL   0x00000002
 
#define CST4319_SPI_CLK_PH   0x00000008
 
#define CST4319_SPROM_OTP_SEL_MASK   0x000000c0
 
#define CST4319_SPROM_OTP_SEL_SHIFT   6
 
#define CST4319_DEFCIS_SEL   0x00000000
 
#define CST4319_SPROM_SEL   0x00000040
 
#define CST4319_OTP_SEL   0x00000080
 
#define CST4319_OTP_PWRDN   0x000000c0
 
#define CST4319_SDIO_USB_MODE   0x00000100
 
#define CST4319_REMAP_SEL_MASK   0x00000600
 
#define CST4319_ILPDIV_EN   0x00000800
 
#define CST4319_XTAL_PD_POL   0x00001000
 
#define CST4319_LPO_SEL   0x00002000
 
#define CST4319_RES_INIT_MODE   0x0000c000
 
#define CST4319_PALDO_EXTPNP   0x00010000
 
#define CST4319_CBUCK_MODE_MASK   0x00060000
 
#define CST4319_CBUCK_MODE_BURST   0x00020000
 
#define CST4319_CBUCK_MODE_LPBURST   0x00060000
 
#define CST4319_RCAL_VALID   0x01000000
 
#define CST4319_RCAL_VALUE_MASK   0x3e000000
 
#define CST4319_RCAL_VALUE_SHIFT   25
 
#define CST4336_SPI_MODE_MASK   0x00000001
 
#define CST4336_SPROM_PRESENT   0x00000002
 
#define CST4336_OTP_PRESENT   0x00000004
 
#define CST4336_ARMREMAP_0   0x00000008
 
#define CST4336_ILPDIV_EN_MASK   0x00000010
 
#define CST4336_ILPDIV_EN_SHIFT   4
 
#define CST4336_XTAL_PD_POL_MASK   0x00000020
 
#define CST4336_XTAL_PD_POL_SHIFT   5
 
#define CST4336_LPO_SEL_MASK   0x00000040
 
#define CST4336_LPO_SEL_SHIFT   6
 
#define CST4336_RES_INIT_MODE_MASK   0x00000180
 
#define CST4336_RES_INIT_MODE_SHIFT   7
 
#define CST4336_CBUCK_MODE_MASK   0x00000600
 
#define CST4336_CBUCK_MODE_SHIFT   9
 
#define CST4313_SPROM_PRESENT   1
 
#define CST4313_OTP_PRESENT   2
 
#define CST4313_SPROM_OTP_SEL_MASK   0x00000002
 
#define CST4313_SPROM_OTP_SEL_SHIFT   0
 
#define CCTRL_4313_12MA_LED_DRIVE   0x00000007
 
#define MFGID_ARM   0x43b
 
#define MFGID_BRCM   0x4bf
 
#define MFGID_MIPS   0x4a7
 
#define ER_EROMENTRY   0x000
 
#define ER_REMAPCONTROL   0xe00
 
#define ER_REMAPSELECT   0xe04
 
#define ER_MASTERSELECT   0xe10
 
#define ER_ITCR   0xf00
 
#define ER_ITIP   0xf04
 
#define ER_TAG   0xe
 
#define ER_TAG1   0x6
 
#define ER_VALID   1
 
#define ER_CI   0
 
#define ER_MP   2
 
#define ER_ADD   4
 
#define ER_END   0xe
 
#define ER_BAD   0xffffffff
 
#define CIA_MFG_MASK   0xfff00000
 
#define CIA_MFG_SHIFT   20
 
#define CIA_CID_MASK   0x000fff00
 
#define CIA_CID_SHIFT   8
 
#define CIA_CCL_MASK   0x000000f0
 
#define CIA_CCL_SHIFT   4
 
#define CIB_REV_MASK   0xff000000
 
#define CIB_REV_SHIFT   24
 
#define CIB_NSW_MASK   0x00f80000
 
#define CIB_NSW_SHIFT   19
 
#define CIB_NMW_MASK   0x0007c000
 
#define CIB_NMW_SHIFT   14
 
#define CIB_NSP_MASK   0x00003e00
 
#define CIB_NSP_SHIFT   9
 
#define CIB_NMP_MASK   0x000001f0
 
#define CIB_NMP_SHIFT   4
 
#define AD_ADDR_MASK   0xfffff000
 
#define AD_SP_MASK   0x00000f00
 
#define AD_SP_SHIFT   8
 
#define AD_ST_MASK   0x000000c0
 
#define AD_ST_SHIFT   6
 
#define AD_ST_SLAVE   0x00000000
 
#define AD_ST_BRIDGE   0x00000040
 
#define AD_ST_SWRAP   0x00000080
 
#define AD_ST_MWRAP   0x000000c0
 
#define AD_SZ_MASK   0x00000030
 
#define AD_SZ_SHIFT   4
 
#define AD_SZ_4K   0x00000000
 
#define AD_SZ_8K   0x00000010
 
#define AD_SZ_16K   0x00000020
 
#define AD_SZ_SZD   0x00000030
 
#define AD_AG32   0x00000008
 
#define AD_ADDR_ALIGN   0x00000fff
 
#define AD_SZ_BASE   0x00001000 /* 4KB */
 
#define SD_SZ_MASK   0xfffff000
 
#define SD_SG32   0x00000008
 
#define SD_SZ_ALIGN   0x00000fff
 
#define PCI_CFG_GPIO_SCS   0x10
 
#define PCI_CFG_GPIO_XTAL   0x40
 
#define PCI_CFG_GPIO_PLL   0x80
 
#define PLL_DELAY   150 /* us pll on delay */
 
#define FREF_DELAY   200 /* us fref change delay */
 
#define XTAL_ON_DELAY   1000 /* us crystal power-on delay */
 
#define AIRC_RESET   1
 
#define NOREV   -1 /* Invalid rev */
 
#define DEFAULT_GPIO_ONTIME   10 /* Default: 10% on */
 
#define DEFAULT_GPIO_OFFTIME   90 /* Default: 10% on */
 
#define SRC_START   0x80000000
 
#define SRC_BUSY   0x80000000
 
#define SRC_OPCODE   0x60000000
 
#define SRC_OP_READ   0x00000000
 
#define SRC_OP_WRITE   0x20000000
 
#define SRC_OP_WRDIS   0x40000000
 
#define SRC_OP_WREN   0x60000000
 
#define SRC_OTPSEL   0x00000010
 
#define SRC_LOCK   0x00000008
 
#define SRC_SIZE_MASK   0x00000006
 
#define SRC_SIZE_1K   0x00000000
 
#define SRC_SIZE_4K   0x00000002
 
#define SRC_SIZE_16K   0x00000004
 
#define SRC_SIZE_SHIFT   1
 
#define SRC_PRESENT   0x00000001
 
#define GPIO_CTRL_EPA_EN_MASK   0x40
 
#define DEFAULT_GPIOTIMERVAL   ((DEFAULT_GPIO_ONTIME << GPIO_ONTIME_SHIFT) | DEFAULT_GPIO_OFFTIME)
 
#define BADIDX   (SI_MAXCORES + 1)
 
#define IS_SIM(chippkg)   ((chippkg == HDLSIM_PKG_ID) || (chippkg == HWSIM_PKG_ID))
 
#define SI_MSG(fmt,...)   no_printk(fmt, ##__VA_ARGS__)
 
#define GOODCOREADDR(x, b)
 

Functions

struct si_pubai_attach (struct bcma_bus *pbus)
 
void ai_detach (struct si_pub *sih)
 
uint ai_cc_reg (struct si_pub *sih, uint regoff, u32 mask, u32 val)
 
void ai_clkctl_init (struct si_pub *sih)
 
u16 ai_clkctl_fast_pwrup_delay (struct si_pub *sih)
 
bool ai_clkctl_cc (struct si_pub *sih, enum bcma_clkmode mode)
 
void ai_pci_up (struct si_pub *sih)
 
void ai_pci_down (struct si_pub *sih)
 
void ai_epa_4313war (struct si_pub *sih)
 
bool ai_deviceremoved (struct si_pub *sih)
 

Macro Definition Documentation

#define AD_ADDR_ALIGN   0x00000fff

Definition at line 264 of file aiutils.c.

#define AD_ADDR_MASK   0xfffff000

Definition at line 248 of file aiutils.c.

#define AD_AG32   0x00000008

Definition at line 263 of file aiutils.c.

#define AD_SP_MASK   0x00000f00

Definition at line 249 of file aiutils.c.

#define AD_SP_SHIFT   8

Definition at line 250 of file aiutils.c.

#define AD_ST_BRIDGE   0x00000040

Definition at line 254 of file aiutils.c.

#define AD_ST_MASK   0x000000c0

Definition at line 251 of file aiutils.c.

#define AD_ST_MWRAP   0x000000c0

Definition at line 256 of file aiutils.c.

#define AD_ST_SHIFT   6

Definition at line 252 of file aiutils.c.

#define AD_ST_SLAVE   0x00000000

Definition at line 253 of file aiutils.c.

#define AD_ST_SWRAP   0x00000080

Definition at line 255 of file aiutils.c.

#define AD_SZ_16K   0x00000020

Definition at line 261 of file aiutils.c.

#define AD_SZ_4K   0x00000000

Definition at line 259 of file aiutils.c.

#define AD_SZ_8K   0x00000010

Definition at line 260 of file aiutils.c.

#define AD_SZ_BASE   0x00001000 /* 4KB */

Definition at line 265 of file aiutils.c.

#define AD_SZ_MASK   0x00000030

Definition at line 257 of file aiutils.c.

#define AD_SZ_SHIFT   4

Definition at line 258 of file aiutils.c.

#define AD_SZ_SZD   0x00000030

Definition at line 262 of file aiutils.c.

#define AIRC_RESET   1

Definition at line 285 of file aiutils.c.

#define BADIDX   (SI_MAXCORES + 1)

Definition at line 316 of file aiutils.c.

#define CCTRL43224_GPIO_TOGGLE   0x8000

Definition at line 91 of file aiutils.c.

#define CCTRL4331_BT_COEXIST   (1<<0)

Definition at line 111 of file aiutils.c.

#define CCTRL4331_BT_SHD0_ON_GPIO4   (1<<16)

Definition at line 135 of file aiutils.c.

#define CCTRL4331_BT_SHD1_ON_GPIO5   (1<<17)

Definition at line 137 of file aiutils.c.

#define CCTRL4331_EXT_LNA   (1<<2)

Definition at line 115 of file aiutils.c.

#define CCTRL4331_EXTPA_EN   (1<<4)

Definition at line 119 of file aiutils.c.

#define CCTRL4331_EXTPA_ON_GPIO2_5   (1<<7)

Definition at line 125 of file aiutils.c.

#define CCTRL4331_GPIOCLK_ON_SPROMCS   (1<<5)

Definition at line 121 of file aiutils.c.

#define CCTRL4331_OVR_PIPEAUXCLKEN   (1<<8)

Definition at line 127 of file aiutils.c.

#define CCTRL4331_OVR_PIPEAUXPWRDOWN   (1<<9)

Definition at line 129 of file aiutils.c.

#define CCTRL4331_PCIE_AUXCLKEN   (1<<10)

Definition at line 131 of file aiutils.c.

#define CCTRL4331_PCIE_MDIO_ON_SPROMCS   (1<<6)

Definition at line 123 of file aiutils.c.

#define CCTRL4331_PCIE_PIPE_PLLDOWN   (1<<11)

Definition at line 133 of file aiutils.c.

#define CCTRL4331_SECI   (1<<1)

Definition at line 113 of file aiutils.c.

#define CCTRL4331_SPROM_GPIO13_15   (1<<3)

Definition at line 117 of file aiutils.c.

#define CCTRL_4313_12MA_LED_DRIVE   0x00000007

Definition at line 202 of file aiutils.c.

#define CCTRL_43224A0_12MA_LED_DRIVE   0x00F000F0

Definition at line 93 of file aiutils.c.

#define CCTRL_43224B0_12MA_LED_DRIVE   0xF0

Definition at line 95 of file aiutils.c.

#define CIA_CCL_MASK   0x000000f0

Definition at line 232 of file aiutils.c.

#define CIA_CCL_SHIFT   4

Definition at line 233 of file aiutils.c.

#define CIA_CID_MASK   0x000fff00

Definition at line 230 of file aiutils.c.

#define CIA_CID_SHIFT   8

Definition at line 231 of file aiutils.c.

#define CIA_MFG_MASK   0xfff00000

Definition at line 228 of file aiutils.c.

#define CIA_MFG_SHIFT   20

Definition at line 229 of file aiutils.c.

#define CIB_NMP_MASK   0x000001f0

Definition at line 244 of file aiutils.c.

#define CIB_NMP_SHIFT   4

Definition at line 245 of file aiutils.c.

#define CIB_NMW_MASK   0x0007c000

Definition at line 240 of file aiutils.c.

#define CIB_NMW_SHIFT   14

Definition at line 241 of file aiutils.c.

#define CIB_NSP_MASK   0x00003e00

Definition at line 242 of file aiutils.c.

#define CIB_NSP_SHIFT   9

Definition at line 243 of file aiutils.c.

#define CIB_NSW_MASK   0x00f80000

Definition at line 238 of file aiutils.c.

#define CIB_NSW_SHIFT   19

Definition at line 239 of file aiutils.c.

#define CIB_REV_MASK   0xff000000

Definition at line 236 of file aiutils.c.

#define CIB_REV_SHIFT   24

Definition at line 237 of file aiutils.c.

#define CST4313_OTP_PRESENT   2

Definition at line 196 of file aiutils.c.

#define CST4313_SPROM_OTP_SEL_MASK   0x00000002

Definition at line 197 of file aiutils.c.

#define CST4313_SPROM_OTP_SEL_SHIFT   0

Definition at line 198 of file aiutils.c.

#define CST4313_SPROM_PRESENT   1

Definition at line 195 of file aiutils.c.

#define CST4319_CBUCK_MODE_BURST   0x00020000

Definition at line 172 of file aiutils.c.

#define CST4319_CBUCK_MODE_LPBURST   0x00060000

Definition at line 173 of file aiutils.c.

#define CST4319_CBUCK_MODE_MASK   0x00060000

Definition at line 171 of file aiutils.c.

#define CST4319_DEFCIS_SEL   0x00000000

Definition at line 155 of file aiutils.c.

#define CST4319_ILPDIV_EN   0x00000800

Definition at line 165 of file aiutils.c.

#define CST4319_LPO_SEL   0x00002000

Definition at line 167 of file aiutils.c.

#define CST4319_OTP_PWRDN   0x000000c0

Definition at line 161 of file aiutils.c.

#define CST4319_OTP_SEL   0x00000080

Definition at line 159 of file aiutils.c.

#define CST4319_PALDO_EXTPNP   0x00010000

Definition at line 170 of file aiutils.c.

#define CST4319_RCAL_VALID   0x01000000

Definition at line 174 of file aiutils.c.

#define CST4319_RCAL_VALUE_MASK   0x3e000000

Definition at line 175 of file aiutils.c.

#define CST4319_RCAL_VALUE_SHIFT   25

Definition at line 176 of file aiutils.c.

#define CST4319_REMAP_SEL_MASK   0x00000600

Definition at line 164 of file aiutils.c.

#define CST4319_RES_INIT_MODE   0x0000c000

Definition at line 168 of file aiutils.c.

#define CST4319_SDIO_USB_MODE   0x00000100

Definition at line 163 of file aiutils.c.

#define CST4319_SPI_CLK_PH   0x00000008

Definition at line 150 of file aiutils.c.

#define CST4319_SPI_CLK_POL   0x00000002

Definition at line 149 of file aiutils.c.

#define CST4319_SPI_CPULESSUSB   0x00000001

Definition at line 148 of file aiutils.c.

#define CST4319_SPROM_OTP_SEL_MASK   0x000000c0

Definition at line 152 of file aiutils.c.

#define CST4319_SPROM_OTP_SEL_SHIFT   6

Definition at line 153 of file aiutils.c.

#define CST4319_SPROM_SEL   0x00000040

Definition at line 157 of file aiutils.c.

#define CST4319_XTAL_PD_POL   0x00001000

Definition at line 166 of file aiutils.c.

#define CST43236_BOOT_FROM_FLASH   2 /* boot from FLASH */

Definition at line 106 of file aiutils.c.

#define CST43236_BOOT_FROM_INVALID   3

Definition at line 107 of file aiutils.c.

#define CST43236_BOOT_FROM_ROM   1 /* boot from ROM */

Definition at line 105 of file aiutils.c.

#define CST43236_BOOT_FROM_SRAM   0 /* boot from SRAM, ARM in reset */

Definition at line 104 of file aiutils.c.

#define CST43236_BOOT_MASK   0x00001800

Definition at line 102 of file aiutils.c.

#define CST43236_BOOT_SHIFT   11

Definition at line 103 of file aiutils.c.

#define CST43236_BP_CLK   0x00000200 /* 120/96Mbps */

Definition at line 101 of file aiutils.c.

#define CST43236_HSIC_MASK   0x00000100 /* USB/HSIC */

Definition at line 100 of file aiutils.c.

#define CST43236_OTP_MASK   0x00000080

Definition at line 99 of file aiutils.c.

#define CST43236_SFLASH_MASK   0x00000040

Definition at line 98 of file aiutils.c.

#define CST4329_DEFCIS_SEL   0

Definition at line 79 of file aiutils.c.

#define CST4329_OTP_PWRDN   3

Definition at line 85 of file aiutils.c.

#define CST4329_OTP_SEL   2

Definition at line 83 of file aiutils.c.

#define CST4329_SPI_SDIO_MODE_MASK   0x00000004

Definition at line 87 of file aiutils.c.

#define CST4329_SPI_SDIO_MODE_SHIFT   2

Definition at line 88 of file aiutils.c.

#define CST4329_SPROM_OTP_SEL_MASK   0x00000003

Definition at line 77 of file aiutils.c.

#define CST4329_SPROM_SEL   1

Definition at line 81 of file aiutils.c.

#define CST4331_LDO_PAR   0x00000010

Definition at line 145 of file aiutils.c.

#define CST4331_LDO_RF   0x00000008

Definition at line 144 of file aiutils.c.

#define CST4331_OTP_PRESENT   0x00000004

Definition at line 143 of file aiutils.c.

#define CST4331_SPROM_PRESENT   0x00000002

Definition at line 142 of file aiutils.c.

#define CST4331_XTAL_FREQ   0x00000001

Definition at line 141 of file aiutils.c.

#define CST4336_ARMREMAP_0   0x00000008

Definition at line 182 of file aiutils.c.

#define CST4336_CBUCK_MODE_MASK   0x00000600

Definition at line 191 of file aiutils.c.

#define CST4336_CBUCK_MODE_SHIFT   9

Definition at line 192 of file aiutils.c.

#define CST4336_ILPDIV_EN_MASK   0x00000010

Definition at line 183 of file aiutils.c.

#define CST4336_ILPDIV_EN_SHIFT   4

Definition at line 184 of file aiutils.c.

#define CST4336_LPO_SEL_MASK   0x00000040

Definition at line 187 of file aiutils.c.

#define CST4336_LPO_SEL_SHIFT   6

Definition at line 188 of file aiutils.c.

#define CST4336_OTP_PRESENT   0x00000004

Definition at line 181 of file aiutils.c.

#define CST4336_RES_INIT_MODE_MASK   0x00000180

Definition at line 189 of file aiutils.c.

#define CST4336_RES_INIT_MODE_SHIFT   7

Definition at line 190 of file aiutils.c.

#define CST4336_SPI_MODE_MASK   0x00000001

Definition at line 179 of file aiutils.c.

#define CST4336_SPROM_PRESENT   0x00000002

Definition at line 180 of file aiutils.c.

#define CST4336_XTAL_PD_POL_MASK   0x00000020

Definition at line 185 of file aiutils.c.

#define CST4336_XTAL_PD_POL_SHIFT   5

Definition at line 186 of file aiutils.c.

#define DEFAULT_GPIO_OFFTIME   90 /* Default: 10% on */

Definition at line 291 of file aiutils.c.

#define DEFAULT_GPIO_ONTIME   10 /* Default: 10% on */

Definition at line 290 of file aiutils.c.

#define DEFAULT_GPIOTIMERVAL   ((DEFAULT_GPIO_ONTIME << GPIO_ONTIME_SHIFT) | DEFAULT_GPIO_OFFTIME)

Definition at line 313 of file aiutils.c.

#define ER_ADD   4

Definition at line 223 of file aiutils.c.

#define ER_BAD   0xffffffff

Definition at line 225 of file aiutils.c.

#define ER_CI   0

Definition at line 221 of file aiutils.c.

#define ER_END   0xe

Definition at line 224 of file aiutils.c.

#define ER_EROMENTRY   0x000

Definition at line 210 of file aiutils.c.

#define ER_ITCR   0xf00

Definition at line 214 of file aiutils.c.

#define ER_ITIP   0xf04

Definition at line 215 of file aiutils.c.

#define ER_MASTERSELECT   0xe10

Definition at line 213 of file aiutils.c.

#define ER_MP   2

Definition at line 222 of file aiutils.c.

#define ER_REMAPCONTROL   0xe00

Definition at line 211 of file aiutils.c.

#define ER_REMAPSELECT   0xe04

Definition at line 212 of file aiutils.c.

#define ER_TAG   0xe

Definition at line 218 of file aiutils.c.

#define ER_TAG1   0x6

Definition at line 219 of file aiutils.c.

#define ER_VALID   1

Definition at line 220 of file aiutils.c.

#define FREF_DELAY   200 /* us fref change delay */

Definition at line 281 of file aiutils.c.

#define GOODCOREADDR (   x,
  b 
)
Value:
(((x) >= (b)) && ((x) < ((b) + SI_MAXCORES * SI_CORE_SIZE)) && \

Definition at line 327 of file aiutils.c.

#define GPIO_CTRL_EPA_EN_MASK   0x40

Definition at line 311 of file aiutils.c.

#define IS_SIM (   chippkg)    ((chippkg == HDLSIM_PKG_ID) || (chippkg == HWSIM_PKG_ID))

Definition at line 318 of file aiutils.c.

#define MFGID_ARM   0x43b

Definition at line 205 of file aiutils.c.

#define MFGID_BRCM   0x4bf

Definition at line 206 of file aiutils.c.

#define MFGID_MIPS   0x4a7

Definition at line 207 of file aiutils.c.

#define NOREV   -1 /* Invalid rev */

Definition at line 287 of file aiutils.c.

#define PCI_CFG_GPIO_PLL   0x80

Definition at line 277 of file aiutils.c.

#define PCI_CFG_GPIO_SCS   0x10

Definition at line 273 of file aiutils.c.

#define PCI_CFG_GPIO_XTAL   0x40

Definition at line 275 of file aiutils.c.

#define PLL_DELAY   150 /* us pll on delay */

Definition at line 280 of file aiutils.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 19 of file aiutils.c.

#define SCC_CD_MASK   0xffff0000

Definition at line 59 of file aiutils.c.

#define SCC_CD_SHIFT   16

Definition at line 60 of file aiutils.c.

#define SCC_FS   0x00000800

Definition at line 47 of file aiutils.c.

#define SCC_IP   0x00001000

Definition at line 51 of file aiutils.c.

#define SCC_LF   0x00000200

Definition at line 43 of file aiutils.c.

#define SCC_LP   0x00000400

Definition at line 45 of file aiutils.c.

#define SCC_SS_LPO   0x00000000

Definition at line 37 of file aiutils.c.

#define SCC_SS_MASK   0x00000007

Definition at line 35 of file aiutils.c.

#define SCC_SS_PCI   0x00000002

Definition at line 41 of file aiutils.c.

#define SCC_SS_XTAL   0x00000001

Definition at line 39 of file aiutils.c.

#define SCC_XC   0x00002000

Definition at line 55 of file aiutils.c.

#define SCC_XP   0x00004000

Definition at line 57 of file aiutils.c.

#define SD_SG32   0x00000008

Definition at line 269 of file aiutils.c.

#define SD_SZ_ALIGN   0x00000fff

Definition at line 270 of file aiutils.c.

#define SD_SZ_MASK   0xfffff000

Definition at line 268 of file aiutils.c.

#define SI_MSG (   fmt,
  ... 
)    no_printk(fmt, ##__VA_ARGS__)

Definition at line 324 of file aiutils.c.

#define SRC_BUSY   0x80000000

Definition at line 295 of file aiutils.c.

#define SRC_LOCK   0x00000008

Definition at line 302 of file aiutils.c.

#define SRC_OP_READ   0x00000000

Definition at line 297 of file aiutils.c.

#define SRC_OP_WRDIS   0x40000000

Definition at line 299 of file aiutils.c.

#define SRC_OP_WREN   0x60000000

Definition at line 300 of file aiutils.c.

#define SRC_OP_WRITE   0x20000000

Definition at line 298 of file aiutils.c.

#define SRC_OPCODE   0x60000000

Definition at line 296 of file aiutils.c.

#define SRC_OTPSEL   0x00000010

Definition at line 301 of file aiutils.c.

#define SRC_PRESENT   0x00000001

Definition at line 308 of file aiutils.c.

#define SRC_SIZE_16K   0x00000004

Definition at line 306 of file aiutils.c.

#define SRC_SIZE_1K   0x00000000

Definition at line 304 of file aiutils.c.

#define SRC_SIZE_4K   0x00000002

Definition at line 305 of file aiutils.c.

#define SRC_SIZE_MASK   0x00000006

Definition at line 303 of file aiutils.c.

#define SRC_SIZE_SHIFT   1

Definition at line 307 of file aiutils.c.

#define SRC_START   0x80000000

Definition at line 294 of file aiutils.c.

#define SYCC_AE   0x00000002

Definition at line 66 of file aiutils.c.

#define SYCC_AR   0x00000008

Definition at line 70 of file aiutils.c.

#define SYCC_CD_MASK   0xffff0000

Definition at line 74 of file aiutils.c.

#define SYCC_CD_SHIFT   16

Definition at line 75 of file aiutils.c.

#define SYCC_FP   0x00000004

Definition at line 68 of file aiutils.c.

#define SYCC_HR   0x00000010

Definition at line 72 of file aiutils.c.

#define SYCC_IE   0x00000001

Definition at line 64 of file aiutils.c.

#define XTAL_ON_DELAY   1000 /* us crystal power-on delay */

Definition at line 282 of file aiutils.c.

Function Documentation

struct si_pub* ai_attach ( struct bcma_bus pbus)
read

Definition at line 516 of file aiutils.c.

uint ai_cc_reg ( struct si_pub sih,
uint  regoff,
u32  mask,
u32  val 
)

Definition at line 549 of file aiutils.c.

bool ai_clkctl_cc ( struct si_pub sih,
enum bcma_clkmode  mode 
)

Definition at line 676 of file aiutils.c.

u16 ai_clkctl_fast_pwrup_delay ( struct si_pub sih)

Definition at line 642 of file aiutils.c.

void ai_clkctl_init ( struct si_pub sih)

Definition at line 619 of file aiutils.c.

void ai_detach ( struct si_pub sih)

Definition at line 534 of file aiutils.c.

bool ai_deviceremoved ( struct si_pub sih)

Definition at line 722 of file aiutils.c.

void ai_epa_4313war ( struct si_pub sih)

Definition at line 710 of file aiutils.c.

void ai_pci_down ( struct si_pub sih)

Definition at line 699 of file aiutils.c.

void ai_pci_up ( struct si_pub sih)

Definition at line 688 of file aiutils.c.