Changes

Jump to: navigation, search

Enabling SPI1 on Linux (Diva)

8 bytes removed, 13:11, 19 January 2018
no edit summary
The files <code>arch/arm/mach-omap2/board-diva.c</code> and <code>arch/arm/mach-omap2/diva_pinmux_table.h</code> must be modified according to the following patches:
<diffpre>
diff --git a/arch/arm/mach-omap2/board-diva.c b/arch/arm/mach-omap2/board-diva.c
index f6b77fc..a8b3996 100644
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
</diffpre>
<diffpre>
diff --git a/arch/arm/mach-omap2/diva_pinmux_table.h b/arch/arm/mach-omap2/diva_pinmux_table.h
index 5a2646a..9509b46 100644
* the following mux configurations are un-tested but are left here for
* reference. They are all comment-out to avoid "defined but not used" warning
</diffpre>
The kernel must be rebuilt to make these modifications effective.
The files <code>arch/arm/mach-omap2/board-diva.c</code> and <code>arch/arm/mach-omap2/diva_pinmux_table.h</code> must be modified according to the following patches:
<diffpre>
diff --git a/arch/arm/mach-omap2/board-diva.c b/arch/arm/mach-omap2/board-diva.c
index 42898e9..8f7810d 100644
{w1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
</diffpre>
{{ImportantMessage|text=With this pinmux configuration, the SPI1 signals are shared with the McASP0 signals. Thus, for a proper setup, the MCASP0 interface initialization must be disabled in <code>evm_dev_cfg diva_dev_cfg[]</code> (please see the patch above).}}
<diffpre>
diff --git a/arch/arm/mach-omap2/diva_pinmux_table.h b/arch/arm/mach-omap2/diva_pinmux_table.h
index f6647b0..d2722a3 100644
/* Module pin mux for rgmii1 */
static struct pinmux_config rgmii1_pin_mux[] = {
</diffpre>
The kernel must be rebuilt to make these modifications effective.
8,157
edits

Navigation menu