From bbfb38ccd1e2bb19a1eb698bd37cd1ab50c87b37 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 23 Apr 2010 10:50:43 +0200 Subject: [PATCH 31/37] OMAP3: beagle: add more expansionboards, based on http://www.elinux.org/BeagleBoardPinMux#Vendor_and_Device_IDs --- board/ti/beagle/beagle.c | 8 ++++++++ board/ti/beagle/beagle.h | 6 ++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index 974a72c..0544178 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -55,11 +55,15 @@ static struct { #define TINCANTOOLS_VENDORID 0x0100 #define GUMSTIX_VENDORID 0x0200 #define SPECIALCOMP_VENDORID 0x0300 +#define HYR_VENDORID 0x0400 +#define MENTOREL_VENDORID 0x0500 +#define KBADC_VENDORID 0x0600 #define TINCANTOOLS_ZIPPY 0x01000100 #define TINCANTOOLS_ZIPPY2 0x02000100 #define TINCANTOOLS_TRAINER 0x04000100 #define TINCANTOOLS_SHOWDOG 0x03000100 +#define KBADC_BEAGLEFPGA 0x01000600 #define BEAGLE_NO_EEPROM 0xffffffff @@ -184,6 +188,10 @@ int misc_init_r(void) /* Place holder for DSS2 definition for showdog lcd */ setenv("defaultdisplay", "showdoglcd"); break; + case KBADC_BEAGLEFPGA: + printf("Recognized KBADC Beagle FPGA board\n"); + MUX_KBADC_BEAGLEFPGA(); + break; case BEAGLE_NO_EEPROM: printf("No EEPROM on expansion board\n"); break; diff --git a/board/ti/beagle/beagle.h b/board/ti/beagle/beagle.h index 69f9398..90a0ebf 100644 --- a/board/ti/beagle/beagle.h +++ b/board/ti/beagle/beagle.h @@ -435,6 +435,12 @@ const omap3_sysinfo sysinfo = { MUX_VAL(CP(MCBSP3_DR), (IEN | PTD | DIS | M4)) /*GPIO_142*/\ MUX_VAL(CP(MCBSP3_CLKX), (IEN | PTD | DIS | M4)) /*GPIO_141*/\ +#define MUX_KBADC_BEAGLEFPGA() \ + MUX_VAL(CP(MCBSP1_CLKR), (IEN | PTU | DIS | M1)) /*MCSPI4_CLK*/\ + MUX_VAL(CP(MCBSP1_DX), (IDIS | PTU | DIS | M1)) /*MCSPI4_SIMO*/\ + MUX_VAL(CP(MCBSP1_DR), (IEN | PTU | EN | M1)) /*MCSPI4_SOMI*/\ + MUX_VAL(CP(MCBSP1_FSX), (IDIS | PTU | DIS | M1)) /*MCSPI4_CS0*/\ + /* * Display Configuration */ -- 1.6.6.1