mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
58 lines
1.7 KiB
C
58 lines
1.7 KiB
C
/*
|
|
* Broadcom PCIe 1570 webcam driver
|
|
* Some of the register defines are taken from the crystalhd driver
|
|
*
|
|
* Copyright (C) 2014 Patrik Jakobsson (patrik.r.jakobsson@gmail.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published by
|
|
* the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#ifndef _BCWC_REG_H
|
|
#define _BCWC_REG_H
|
|
|
|
/* On iomem with pointer at 0x0fd0 */
|
|
#define DDR_PHY_2C 0x2c
|
|
#define DDR_PHY_9C 0x9c
|
|
|
|
#define S2_PCIE_LINK_D000 0xd000
|
|
#define S2_PCIE_LINK_D120 0xd120
|
|
#define S2_PCIE_LINK_D124 0xd124
|
|
|
|
#define DDR_PHY_REG_BASE 0x2800
|
|
#define DDR_PHY_NUM_REGS 127 /* Found in AppleCamIn::Start() */
|
|
|
|
/* On iomem with pointer at ...fill me in... */
|
|
#define S2_PLL_STATUS_04 0x04
|
|
#define S2_PLL_STATUS_REFCLK (1 << 3) /* 1 = 25MHz, 0 = 24MHz */
|
|
|
|
#define S2_PLL_STATUS_0C 0x0c /* Register is called CMU_R_PLL_STS_MEMADDR */
|
|
#define S2_PLL_STATUS_LOCKED (1 << 7) /* 1 = PLL locked, 0 = PLL not locked */
|
|
|
|
#define S2_PLL_STATUS_A8 0xa8 /* Bit 0 is PLL bypass mode (1 = bypass, 0 = non-bypass mode */
|
|
|
|
#define S2_PLL_CTRL_20 0x20 /* S2 PLL CLK REG 1 */
|
|
#define S2_PLL_CTRL_24 0x24 /* S2 PLL CLK REG 2 */
|
|
#define S2_PLL_CTRL_510 0x510 /* S2 PLL CLK REG 4 */
|
|
|
|
/* On iomem with pointer at 0x0ff0 (Bar 4: 1MB) */
|
|
#define IRQ_IPC_NUM_CHAN 0xc3000
|
|
#define IRQ_IPC_QUEUE_SIZE 0xc3004
|
|
#define IRQ_REG_08 0xc3008
|
|
#define IRQ_REG_0C 0xc300c
|
|
#define IRQ_REG_10 0xc3010
|
|
#define IRQ_REG_14 0xc3014
|
|
#define IRQ_REG_18 0xc3018
|
|
#define IRQ_REG_1C 0xc301c
|
|
#define IRQ_REG_40004 0x40004
|
|
#define IRQ_REG_40008 0x40008
|
|
#define IRQ_REG_41000 0x41000
|
|
#define IRQ_REG_41024 0x41024
|
|
|
|
#define IRQ_REG_RANGE_START 0x0128
|
|
#define IRQ_REG_RANGE_END 0x0220
|
|
|
|
#endif
|