Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:techref:hardware:soc:soc.broadcom.bcm63xx:pinmux [2018/03/31 23:22] – ↷ Page moved from docs:hardware:soc:soc.broadcom.bcm63xx:pinmux to docs:techref:hardware:soc:soc.broadcom.bcm63xx:pinmux bobafetthotmail | docs:techref:hardware:soc:soc.broadcom.bcm63xx:pinmux [2020/05/24 22:21] (current) – [BCM6348 GPIO pinmux] danitool | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Size: 4 bytes | Size: 4 bytes | ||
| - | ^ GPIO pin ^ HW pinmux | + | ^ GPIO ^ |
| - | ^ 0 | + | ^ REG | 0x7 | 0x40 | 0x60 | 0x80 |
| - | ^ 1 | + | ^ |
| - | ^ 2 | '' | + | ^ 1 |
| - | ^ 3 | '' | + | ^ 2 |
| - | ^ 4 | '' | + | ^ 3 |
| - | ^ 5 | '' | + | ^ 4 |
| - | ^ 6 | '' | + | ^ 5 |
| - | ^ 7 | '' | + | ^ 6 |
| - | ^ 8 | '' | + | ^ 7 |
| - | ^ 9 | '' | + | ^ 8 |
| - | ^ 10 | '' | + | ^ 9 |
| - | ^ 11 | + | ^ 10 | |
| - | ^ 12 | + | ^ 11 | |
| - | ^ 13 | '' | + | ^ 12 | |
| - | ^ 14 | + | ^ 13 | |
| - | ^ 15 | '' | + | ^ 14 | |
| - | ^ 16 | + | ^ 15 | |
| - | ^ 17 | + | ^ 16 | |
| - | ^ 18 | + | ^ 17 | | ||| PCI REQ0# | || || |
| - | ^ 19 | + | ^ 18 | | ||| PCI REQ1# | || || |
| - | ^ 20 | + | ^ 19 | | ||| PCI GNT0# | || || |
| - | ^ 21 | + | ^ 20 | | ||| PCI GNT1# | || || |
| - | ^ 22 | '' | + | ^ 21 | |
| - | ^ 23 | + | ^ 22 | |
| - | ^ 24 | + | ^ 23 | | PCCARD |
| - | ^ 25 | '' | + | ^ 24 | | PCCARD |
| - | ^ 26 | '' | + | ^ 25 | |
| - | ^ 27 | + | ^ 26 | |
| - | ^ 28 | '' | + | ^ 27 | | PCCARD |
| - | ^ 29 | + | ^ 28 | |
| - | ^ 30 | + | ^ 29 | |
| - | ^ 31 | + | ^ 30 | | | SPI SS2 | UTO TXADDR0 |
| - | ^ 32 | + | ^ 31 | | | SPI SS3 | UTO TXADDR1 |
| - | ^ ::: | + | ^ 32 | MII MDC | < |
| - | ^ 33 | '' | + | ^ 33 | |
| - | ^ 34 | '' | + | ^ 34 | |
| - | ^ 35 | '' | + | ^ 35 | |
| - | ^ 36 | '' | + | ^ 36 | |
| - | ===== Tags ===== | + | **Note**: the EXT IRQs are shared with the GPIO function, they don't need to be enabled by any gpio mode group. |
| - | [[meta:tags|How | + | |
| - | {{tag> | + | |
| + | Code from Broadcom GPL (// | ||
| + | <code c> | ||
| + | uint32 | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | </ | ||
| + | |||
| + | |||
| + | Code from Broadcom GPL, enabling some GPIO modes. (File '' | ||
| + | |||
| + | <code c>static int __init bcm6348_hw_init(void) | ||
| + | { | ||
| + | unsigned long data; | ||
| + | unsigned short GPIOOverlays; | ||
| + | |||
| + | /* Set MPI clock to 33MHz and Utopia clock to 25MHz */ | ||
| + | data = PERF-> | ||
| + | data &= ~MPI_CLK_MASK; | ||
| + | data |= MPI_CLK_33MHZ; | ||
| + | data &= ~MPI_UTOPIA_MASK; | ||
| + | data |= MPI_UTOPIA_25MHZ; | ||
| + | PERF-> | ||
| + | |||
| + | /* Enable SPI interface */ | ||
| + | PERF-> | ||
| + | |||
| + | GPIO-> | ||
| + | |||
| + | if( BpGetGPIOverlays(& | ||
| + | |||
| + | if (GPIOOverlays & BP_UTOPIA) { | ||
| + | /* Enable UTOPIA interface */ | ||
| + | GPIO-> | ||
| + | PERF-> | ||
| + | } | ||
| + | |||
| + | if (GPIOOverlays & BP_MII2) { | ||
| + | if (GPIOOverlays & BP_UTOPIA) { | ||
| + | printk (" | ||
| + | printk (" | ||
| + | } | ||
| + | /* Enable external MII interface */ | ||
| + | GPIO-> | ||
| + | } | ||
| + | |||
| + | if (GPIOOverlays & BP_SPI_EXT_CS) { | ||
| + | if (GPIOOverlays & BP_UTOPIA) { | ||
| + | printk (" | ||
| + | printk (" | ||
| + | } | ||
| + | /* Enable Extra SPI CS */ | ||
| + | GPIO-> | ||
| + | } | ||
| + | |||
| + | #if defined(CONFIG_PCI) | ||
| + | if (GPIOOverlays & BP_PCI) { | ||
| + | /* Enable PCI interface */ | ||
| + | GPIO-> | ||
| + | |||
| + | mpi_init(); | ||
| + | if (GPIOOverlays & BP_CB) { | ||
| + | mpi_DetectPcCard(); | ||
| + | } | ||
| + | else { | ||
| + | /* | ||
| + | * CardBus support is defaulted to Slot 0 because there is no external | ||
| + | * IDSEL for CardBus. | ||
| + | * card in Slot 0 set the cbus_idsel field to 0x1f. | ||
| + | */ | ||
| + | data = MPI-> | ||
| + | data |= CARDBUS_IDSEL; | ||
| + | MPI-> | ||
| + | } | ||
| + | } | ||
| + | #endif | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Devices ===== | ||
| + | The list of related devices: | ||
| + | {{tagpage> | ||
| + | {{tagpage> | ||
| + | {{tagpage> | ||