summaryrefslogtreecommitdiffstats
path: root/board/ti/beagle/beagle.c
Commit message (Collapse)AuthorAgeFilesLines
* beagleboard: Update comment in get_board_rev()Tom Rini2013-05-101-2/+3
| | | | | | | | We are able to tell the difference between xM Rev Ax/Bx and xM Rev Cx, and have been for some time. The comment above the function however did not list this, so update. Signed-off-by: Tom Rini <trini@ti.com>
* omap_hsmmc: add driver check for write protectionNikita Kiryanov2013-03-081-1/+1
| | | | | | | | Add check for write protection in omap mmc driver. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Tom Rini <trini@ti.com>
* omap_hsmmc: implement driver check for card detectionNikita Kiryanov2013-03-081-2/+1
| | | | | | | Implement driver check for card detection. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
* beagle: expansion boards: add LSR COM6L adapterrobertcnelson@gmail.com2013-02-181-0/+6
| | | | | | | | http://www.lsr.com/wireless-products/com6l The eeprom on this expansion board requires 16bit addressing. Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* beagle: expansion boards: retry i2c_read with 16bit addressingrobertcnelson@gmail.com2013-02-181-0/+8
| | | | | | | Some expansion boards now ship with at24 eeproms that need to communicate via 16bit addressing. Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* Merge branch 'u-boot-ti/master' into 'u-boot-arm/master'Albert ARIBAUD2013-01-081-27/+26
|\ | | | | | | | | This required manual merging drivers/mtd/nand/Makefile and adding am335x_evm support for CONFIG_SPL_NAND_DRIVERS
| * Pass sdrc timing values through board_sdrc_timings structurePeter Barada2012-12-101-27/+26
| | | | | | | | | | | | | | | | | | Instead of passing individual registers by value to board_get_mem_timings, pass a board_mem_timings structure pointer for the board files to fill in. Pass same structure pointer to write_sdrc_timings. This saves about 90 bytes of space in SPL. Signed-off-by: Peter Barada <peter.barada@logicpd.com>
* | omap3_beagle: add musb-new initIlya Yanok2012-11-201-0/+43
|/ | | | | | Add initialization for new MUSB framework. Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
* usb: ehci: rework to take advantage of new lowlevel interfaceLucas Stach2012-10-151-3/+3
| | | | | | | | | | | | | | Kill off ehci-core.h It was used to specify some static controller data. To support more than one controller being active at any time we have to carry the controller data ourselfes. Change the ehci interface accordingly. NOTE: OMAP implemented the ehci stuff a bit backwards and should be fixed to do the same thing as other platforms. But the change for now is at least compile clean. Signed-off-by: Lucas Stach <dev@lynxeye.de> Reviewed-by: Marek Vasut <marex@denx.de>
* OMAP: networking support for SPLIlya Yanok2012-10-011-1/+1
| | | | | | | | | | | | | | This patch adds support for networking in SPL. Some devices are capable of loading SPL via network so it makes sense to load the main U-Boot binary via network too. This patch tries to use existing network code as much as possible. Unfortunately, it depends on environment which in turn depends on other code so SPL size is increased significantly. No effort was done to decouple network code and environment so far. Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@ti.com>
* beagle: only call DSS code when #defined CONFIG_VIDEO_OMAP3Peter Meerwald2012-09-011-0/+4
| | | | Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
* beagle: removed unused pr_debug #definePeter Meerwald2012-09-011-2/+0
| | | | Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* beagle: make get_expansion_id(), get_board_revision(), beagle_display_init() ↵Peter Meerwald2012-09-011-3/+3
| | | | | | static Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
* beagle: add eeprom expansion board info for bct brettl4Peter Meerwald2012-07-091-2/+6
| | | | | | | | | this is for a prototyping board vendor/product ids have been added to http://elinux.org/BeagleBoardPinMux#List_of_Vendor_and_Device_IDs Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
* ARM:OMAP+:MMC: Add parameters to MMC initJonathan Solnit2012-05-151-1/+1
| | | | | | | | | | Add parameters to the OMAP MMC initialization function so the board can mask host capabilities and set the maximum clock frequency. While the OMAP supports a certain set of MMC host capabilities, individual boards may be more restricted and the OMAP may need to be configured to match the board. The PRG_SDMMC1_SPEEDCTRL bit in the OMAP3 is an example. Signed-off-by: Jonathan Solnit <jsolnit@gmail.com>
* BeagleBoard: Remove userbutton command and use gpio command insteadJoel Fernandes2012-04-161-55/+0
| | | | | | | Remove userbutton command and do the detection in board config file using the gpio command Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com> Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
* board/ti/beagle/beagle.c: Fix build warningsAnatolij Gustschin2012-03-291-1/+2
| | | | | | | | | | | | | | | Fix: beagle.c:257:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] beagle.c:257:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] Also make beagle_dvi_pup() checkpatch clean, fix: ERROR: open brace '{' following function declarations go on the next line Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Tom Rini <trini@ti.com>
* bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress()Simon Glass2012-03-181-1/+1
| | | | | | | | | This changes the number 15 as used in boot_stage_progress() to use the new name provided for it. This is a separate patch because it touches so many files. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
* beagle: enable DVI_PUPPeter Meerwald2012-02-271-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this patch addresses the issue that there is no DVI output on beagleboard-xm in u-boot; the TFP410 is not powered on, DVI_PUP needs to be set high this is done differently on beagleboard-xm rev. B/C versus earlier boards: beagleboard-xm B/C need to set GPIO2 of the TWL4030 earlier boards need to set GPIO170 note that the change occured somewhere inbetween beagleboard-xm rev. A2 and A3 note that beagleboard-xm rev. A and rev. B cannot be distinguished using get_board_revision(), REVISION_XM_A/REVISION_XM_B is bogus due to this glitch, the patch cannot work correctly on some beagleboard-xm rev A/B boards tested on beagleboard-xm rev. C (you should see orange color on a monitor) note that the framebuffer is NOT yet set up, this could be done along the lines below (for 800x480 resolution and RGB24) before calling omap3_dss_enable() static void configure_frame_buffer() { writel(0x80500000, (uint *) 0x48050480); // address writel(0x80500000, (uint *) 0x48050484); writel(0x01df031f, (uint *) 0x4805048c); // size writel(0x00000091, (uint *) 0x480504a0); // RGB24 } Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
* ehci-omap: Clean up added ehci-omap.cGovindraj.R2012-02-121-0/+22
| | | | | | | | | | | | | | | | | | Clean up added ehci-omap.c and make it generic for re-use across omap-soc having same ehci ip block. Also pass the modes to be configured from board file and configure the ports accordingly. All usb layers are not cache aligned, till then keep cache off for usb ops as ehci will use internally dma for all usb ops. * Add a generic common header ehci-omap.h having common ip block data and reg shifts. * Rename and modify ehci-omap3 to ehci.h retain only conflicting sysc reg shifts remove others and move to common header file. * pass the board data for beagle/panda accordinly to use ehci ports. Acked-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
* ehci-omap: driver for EHCI host on OMAP3Ilya Yanok2012-02-121-101/+0
| | | | | | | Taken from Beagle code. Tested on mcx board (AM3517-based). Signed-off-by: Ilya Yanok <yanok@emcraft.com> Tested-by: Stefano Babic <sbabic@denx.de>
* Beagleboard: Correct memory size on rev C4robertcnelson@gmail.com2012-02-121-0/+7
| | | | | | | The logic for the rev C4 boards was missing one of the cases (variant with Micron NAND and 2x128MB). Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* beagle: add eeprom expansion board info for bct brettl3Peter Meerwald2012-01-161-0/+4
| | | | | | | this is for a prototyping board vendor/product ids have been added to http://elinux.org/BeagleBoardPinMux#List_of_Vendor_and_Device_IDs
* OMAP3: Add SPL support to BeagleboardTom Rini2011-12-061-2/+69
| | | | | | | | | | | | | | | | | | This introduces 200MHz Micron parts timing information based on x-loader to <asm/arch-omap3/mem.h> and Numonyx MCFG calculation. The memory init logic is also based on what x-loader does in these cases. Note that while previously u-boot would be flashed in with SW ECC in this case it now must be flashed with HW ECC. We also change CONFIG_SYS_TEXT_BASE to 0x80100000. Cc: Dirk Behme <dirk.behme@gmail.com> Beagleboard rev C5, xM rev A: Tested-by: Tom Rini <trini@ti.com> Beagleboard xM rev C: Tested-by: Matt Ranostay <mranostay@gmail.com> Beagleboard rev B7, C2, xM rev B: Tested-by: Matt Porter <mporter@ti.com> Signed-off-by: Tom Rini <trini@ti.com>
* omap: Don't use gpio_free to change direction to inputJoe Hershberger2011-10-271-6/+0
| | | | | | | | | gpio_free() should not have the side effect of setting the line to input since this prevents the gpio command from being able to set a line as output. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* OMAP3: beagle: Fix build warning in beagle.cDirk Behme2011-09-221-1/+1
| | | | | | | | | | | | | | Fix build warning beagle.c:532: warning: initialization from incompatible pointer type Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> CC: Jason Kridner <jkridner@beagleboard.org> CC: Koen Kooi <koen@dominion.thruhere.net> CC: Joel A Fernandes <agnel.joel@gmail.com> Cc: Greg Turner <gregturner@ti.com> CC: Sandeep Paulraj <s-paulraj@ti.com> Acked-by: Jason Kridner <jkridner@beagleboard.org>
* omap: gpio: Adapt board files to use generic APISanjeev Premi2011-09-131-22/+22
| | | | | | | This patch contains updates the sources in the board files to use the generic API. Signed-off-by: Sanjeev Premi <premi@ti.com>
* beagleboard: enable HUB power on all variants of the BeagleBoardChristian Spielberger2011-09-041-1/+9
| | | | | | | | | | | | | | Changes made by Jason Kridner with inputs from Eric Benard to special case xM Rev A and xM Rev B Relevant discussions: http://www.mail-archive.com/u-boot@lists.denx.de/msg59361.html http://www.mail-archive.com/u-boot@lists.denx.de/msg59589.html Signed-off-by: Joel A Fernandes <joelagnel@ti.com> Cc: Eric Benard <eric@eukrea.com> Cc: Christian Spielberger <c.spielberger@bct-electronic.com> Cc: Jason Kridner <jdk@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* BeagleBoard: Configure DVI/S-videoJason Kridner2011-09-041-0/+24
| | | | | | | | | | | | | | Based on patches from Syed Mohammed Khasim (khasim@ti.com). Configures the output of the BeagleBoard DVI to be orange. Configures the output of the BeagleBoard S-Video to be a colorbar. Changed display_init to beagle_display_init as suggested by Igor Grinberg: http://www.mail-archive.com/u-boot@lists.denx.de/msg51446.html Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* BeagleBoard: Added userbutton commandJason Kridner2011-09-041-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on commit f1099c7c43caf5bac3bf6a65aa266fade4747072 Author: Greg Turner <gregturner@ti.com> Date: Tue May 25 09:19:06 2010 -0500 New u-boot command for status of USER button on BeagleBoard-xM Modified bootcmd to check the staus at boot time and set filename of the boot script. * Moved to a BeagleBoard specific file. * Removed changes to default boot command from adding userbutton command. * Made to handle pre-xM boards. * Flipped polarity of the return value to avoid confusion. Success (0) is when the button is pressed. Failure (1) is when the button is NOT pressed. * Used latest revision getting function. * Used latest macros for board revision. * Added xM-C revision definition (optional, since it was default) * updated default configuration with UserButton functionality * Added a separate bootenv variable to load a user defined .txt file * Added an example, showing how a different environment file can be loaded with the user button pressed Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com> Cc: Greg Turner <gregturner@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* BeagleBoard: turn off clocks in ehci_stopKoen Kooi2011-09-041-0/+6
| | | | | | | | This fixes display problems in linux Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* beagleboard: add support for xM revision CKoen Kooi2011-09-041-0/+10
| | | | | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* OMAP3 Beagle Pin Mux initialization glitch fixBob Feretich2011-09-041-6/+6
| | | | | | | | | | The below patch reverses the order of two segments in the board file. Output pins need to have their values initialized, before they are exposed to the logic outside the chip. Signed-off-by: Bob Feretich <bob.feretich@rafresearch.com> Cc: Wolfgang Denk <wd@denx.de> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* BeagleBoard: fixed typo in typecastJason Kridner2011-05-231-1/+1
| | | | | | | Without this patch, you should get a warning. Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
* omap3_beagle: enable EHCI and USB storage.Alexander Holler2011-04-271-0/+106
| | | | | | | | | | The reset sequence/configuration for ehci is highly board specific, so this will be done in the source for the board, instead of introducing several CONFIG_* which would be needed to make those few lines in beagle.c usable across different OMAP boards. Signed-off-by: Alexander Holler <holler@ahsoftware.de> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* OMAP3: BeagleBoard: add more expansionboard IDsKoen Kooi2011-04-271-1/+29
| | | | | | | | | | | | | | | Information on configurations pulled from http://www.elinux.org/BeagleBoardPinMux#Vendor_and_Device_IDs Boards added: * Added BeagleBoardToys WiFi, VGA and LCD boards * Added KBADC Beagle FPGA board * Added Brainmux LCDog and LCDog Touch * Added Liquidware BeagleTouch Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* OMAP3: BeagleBoard: add xM rev B to ID tableKoen Kooi2011-04-271-5/+17
| | | | | | | | | | | | Patch was updated by Jason Kridner <jkridner@beagleboard.org>: * Use tabs to match style of other board revisions * Only include board revisions that exist * Default to the same configuration as the latest revision, but without setting 'beaglerev' Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* OMAP3: BeagleBoard: Enable pullups on i2c2.Steve Kipisz2011-04-271-0/+4
| | | | | | | | | This allows the reading of EEPROMS on the expansion bus without adding external pull-ups. Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Steve Kipisz <s-kipisz2@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* BeagleBoard: Added LED driverJason Kridner2011-04-271-0/+7
| | | | | | | | | | Added LED driver using status_led. USR0 is set to monitor the boot status. USR1 is set to be the green LED. Included adding configuration and command to the default configuration. Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* Move DECLARE_GLOBAL_DATA_PTR to file scopeJohn Rigby2010-12-211-2/+2
| | | | | | | | | | | | | | | It can be optimised out by the compiler otherwise resulting in obscure errors like a board not booting. This has been documented in README since 2006 when these were first fixed up for GCC 4.x. Signed-off-by: John Rigby <john.rigby@linaro.org> Fix some additional places. Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-By: Albert ARIBAUD <albert.aribaud@free.fr>
* ARMV7: OMAP3: Add expansion board detection for BeagleKoen Kooi2010-11-041-0/+95
| | | | | | | | | | | Beagle expansion boards contain an i2c eeprom to identify themselves. This patch adds code to read and parse the eeprom contents. It prints the expansion board name and revision and modifies environment variables as appropriate. This patch is based on the Overo expansion board code. Signed-off-by: Koen Kooi <k-kooi@ti.com> Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* ARMV7: OMAP4: Use generic mmc driver on BeagleSteve Sakoman2010-10-171-0/+9
| | | | | | This patch switches from the legacy mmc driver to the new generic mmc driver Signed-off-by: Steve Sakoman <steve@sakoman.com>
* ARMV7: OMAP3: Add support for Beagle xMSteve Sakoman2010-09-081-2/+14
| | | | | | | | This patch adds support for the Beagle xM. It uses the board ID GPIO bits to recognize this revision and perform appropriate setup. Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* ARMV7: OMAP: Add detection and support for Beagle C4 revisionSteve Sakoman2010-09-081-37/+53
| | | | | | | | | This patch enhances the revision detection function and adds support for the C4 revision. The board revision is printed and approriate revision specific setup is done automatically. Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
* TWL4030: make LEDs selectable for twl4030_led_init()Grazvydas Ignotas2010-01-041-1/+1
| | | | | | | | | | | | Not all boards have both LEDs hooked, so enabling both on boards with single LED will just waste power. Make it possible to choose LEDs by adding argument to twl4030_led_init(). Using this turn on only LEDB for pandora, leave both LEDs on for all other boards, as it was before this patch. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
* omap: move TI's boards to board/ti/Jean-Christophe PLAGNIOL-VILLARD2009-09-051-0/+143
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
OpenPOWER on IntegriCloud