u-boot git: update beagleboard patchset to match http://gitorious.org/beagleboard...
[openembedded.git] / recipes / u-boot / u-boot-git / beagleboard / 0009-OMAP3-beagle-add-more-expansionboards-based-on-http-.patch
blob53020a00ab235ed40ebdd710f8d8fa319d0a741c
1 From c5e5d27f80e389ddb8c7107e972b94c8d995dc84 Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Fri, 23 Apr 2010 10:50:43 +0200
4 Subject: [PATCH 09/12] OMAP3: beagle: add more expansionboards, based on http://www.elinux.org/BeagleBoardPinMux#Vendor_and_Device_IDs
6 ---
7 board/ti/beagle/beagle.c | 8 ++++++++
8 board/ti/beagle/beagle.h | 6 ++++++
9 2 files changed, 14 insertions(+), 0 deletions(-)
11 diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
12 index 974a72c..0544178 100644
13 --- a/board/ti/beagle/beagle.c
14 +++ b/board/ti/beagle/beagle.c
15 @@ -55,11 +55,15 @@ static struct {
16 #define TINCANTOOLS_VENDORID 0x0100
17 #define GUMSTIX_VENDORID 0x0200
18 #define SPECIALCOMP_VENDORID 0x0300
19 +#define HYR_VENDORID 0x0400
20 +#define MENTOREL_VENDORID 0x0500
21 +#define KBADC_VENDORID 0x0600
23 #define TINCANTOOLS_ZIPPY 0x01000100
24 #define TINCANTOOLS_ZIPPY2 0x02000100
25 #define TINCANTOOLS_TRAINER 0x04000100
26 #define TINCANTOOLS_SHOWDOG 0x03000100
27 +#define KBADC_BEAGLEFPGA 0x01000600
29 #define BEAGLE_NO_EEPROM 0xffffffff
31 @@ -184,6 +188,10 @@ int misc_init_r(void)
32 /* Place holder for DSS2 definition for showdog lcd */
33 setenv("defaultdisplay", "showdoglcd");
34 break;
35 + case KBADC_BEAGLEFPGA:
36 + printf("Recognized KBADC Beagle FPGA board\n");
37 + MUX_KBADC_BEAGLEFPGA();
38 + break;
39 case BEAGLE_NO_EEPROM:
40 printf("No EEPROM on expansion board\n");
41 break;
42 diff --git a/board/ti/beagle/beagle.h b/board/ti/beagle/beagle.h
43 index 69f9398..90a0ebf 100644
44 --- a/board/ti/beagle/beagle.h
45 +++ b/board/ti/beagle/beagle.h
46 @@ -435,6 +435,12 @@ const omap3_sysinfo sysinfo = {
47 MUX_VAL(CP(MCBSP3_DR), (IEN | PTD | DIS | M4)) /*GPIO_142*/\
48 MUX_VAL(CP(MCBSP3_CLKX), (IEN | PTD | DIS | M4)) /*GPIO_141*/\
50 +#define MUX_KBADC_BEAGLEFPGA() \
51 + MUX_VAL(CP(MCBSP1_CLKR), (IEN | PTU | DIS | M1)) /*MCSPI4_CLK*/\
52 + MUX_VAL(CP(MCBSP1_DX), (IDIS | PTU | DIS | M1)) /*MCSPI4_SIMO*/\
53 + MUX_VAL(CP(MCBSP1_DR), (IEN | PTU | EN | M1)) /*MCSPI4_SOMI*/\
54 + MUX_VAL(CP(MCBSP1_FSX), (IDIS | PTU | DIS | M1)) /*MCSPI4_CS0*/\
57 * Display Configuration
59 --
60 1.6.6.1