summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/panda/board.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: mach-types: don't generate header at buildtimeAhmad Fatoum2024-01-041-1/+1
| | | | | | | | | | | | Now that we have removed 4642 machine types unused by barebox, we are just left with 65 boards. Let's just include the generated header in the source tree and stop generating the header anew at build time. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231212120949.3459707-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: move include files to place where Linux has themSascha Hauer2023-03-201-1/+1
| | | | | | | | | For easier patch merging and comparison with Linux move the usb gadget files to where Linux has them. For now do a plain git mv include/usb include/linux/usb, eventhough there might be some files which are purely barebox specific. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap: Move mach header files to include/mach/omapSascha Hauer2023-03-061-6/+6
| | | | | | | | | | Currently arch specific headers can be included with longer possible as there won't be a single mach anymore. Move all omap specific header files to include/mach/omap/ to prepare for multi-arch support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch: add SPDX-License-Identifier to all .c filesAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | Record GPL-2.0-only as license for all files lacking an explicit license statement. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-11-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARN: boards: Remove duplicate includesAlexander Shiyan2019-01-181-1/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: Move ns16550 serial platform_data to include/platform_dataSascha Hauer2016-04-151-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-081-1/+1
| | | | | | | | | | | | | | This file originates in Linux. Linux has it under include/linux/ directory since commit dccd2304cc90. Let's move it to the same place as well in barebox. This commit was generated by the following commands: find -name '*.[chS]' | xargs sed -i -e 's:<sizes.h>:<linux/sizes.h>:' git mv include/sizes.h include/linux/ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove armlinux_set_bootparams() calls from boardsSascha Hauer2014-01-061-1/+0
| | | | | | | As the place for the atags now is determined automatically the call from the boards can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/boardinfo'Sascha Hauer2013-09-051-0/+3
|\ | | | | | | | | | | | | Conflicts: arch/mips/boards/qemu-malta/init.c commands/bootm.c drivers/of/base.c
| * Set model and hostname at boardlevelSascha Hauer2013-08-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | With multiboard support the compiletime generated BOARDINFO string gets more and more meaningless. This removes it from Kconfig and replaces it with a variable that can be set at boardlevel. Also many boards have a standard setting for the hostname in the environment. This patch also moves the standard to C code by calling barebox_set_hostname(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: include <gpio.h> instead of <mach/gpio.h>Sascha Hauer2013-08-161-1/+1
|/ | | | | | The gpio api should be used from <gpio.h> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OMAP: Add option to use environment from MMCTeresa Gámez2013-04-031-30/+0
| | | | | | | | | | Make loading environment from MMC generic for all OMAP. Tested on AM335x, OMAP4. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Tested-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OMAP: Move bootsource functionsTeresa Gámez2013-04-031-1/+1
| | | | | | | | | | | The bootsource functions are not specific to the first stage bootloader. They may also be used for detecting the bootsource to decide where to load the environment from. Also clean up includes in board files. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move prototypes for envfs_* to envfs.hSascha Hauer2013-01-201-1/+1
| | | | | | | environment.h is for environment variables, not for the environment storage (envfs), so move the prototypes to envfs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM panda: do not set gpio direction of heartbeat LEDSascha Hauer2013-01-141-1/+0
| | | | | | | | | | | We now have gpio_request. When we call gpio_direction_output before registering a led_gpio the gpio will be implicitely requested by the gpio core. gpio_request in the led core will then fail resulting in an unregistered LED. Fix this by removing the call to gpio_direction_output. The LED core will do this anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM OMAP: Apply EHCI device register functionsTeresa Gámez2012-12-211-2/+1
| | | | | Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM OMAP: Apply RAM device register functions to boardsTeresa Gámez2012-12-211-1/+1
| | | | | | | Apply RAM and SRAM register functions to all OMAP boards. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap4: Use device register functions in boardsSascha Hauer2012-12-191-14/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: include individual SoC filesSascha Hauer2012-12-191-1/+1
| | | | | | | - remove mach/silicon.h and include omap?-silicon.h directly - include mach/omap?-clock.h directly where needed Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devices: fix missing conversion to DEVICE_ID_DYNAMICJean-Christophe PLAGNIOL-VILLARD2012-08-121-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-06-061-0/+32
|\
| * panda: add LED supportAnand Gadiyar2012-05-211-0/+19
| | | | | | | | | | | | | | Register GPIO7 as heartbeat LED, same as in the linux kernel. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * panda: add i2c and twlcore to pandaAnand Gadiyar2012-05-211-0/+13
| | | | | | | | | | | | | | | | Add i2c-omap and twlcore driver to panda board. (Based on similar patch for pcm049). Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | panda: fix crash when not using barebox as second stageAnand Gadiyar2012-05-211-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If barebox is not used as the MLO, then it crashes during boot with the below error message: Board: Texas Instrument's Panda PandaBoard Revision: 003 omap-hsmmc@mci0: registered as mci0 unable to handle paging request at address 0x4a064010 pc : [<8f01e820>] lr : [<8f0049a0>] sp : 8cffff80 ip : 00000016 fp : 00100103 r10: 00000000 r9 : 00000ae7 r8 : 4030b76c r7 : 40300200 r6 : e28f8028 r5 : 0000003e r4 : 00000000 r3 : 4a064000 r2 : 00000014 r1 : 00000001 r0 : 00000001 Flags: nzCv IRQs off FIQs off Mode SVC_32 [<8f01e820>] (panda_devices_init+0x17c/0x1e0) from [<8f006300>] (start_barebox+0x18/0x10c) [<8f006300>] (start_barebox+0x18/0x10c) from [<8200006c>] (0x8200006c) [<8f021248>] (unwind_backtrace+0x0/0x98) from [<8f011a00>] (panic+0x28/0x3c) [<8f011a00>] (panic+0x28/0x3c) from [<8f02171c>] (do_exception+0x10/0x14) [<8f02171c>] (do_exception+0x10/0x14) from [<8f021784>] (do_data_abort+0x2c/0x38) [<8f021784>] (do_data_abort+0x2c/0x38) from [<8f021470>] (data_abort+0x50/0x60) This is because the USBHOST module is not enabled. The module enable is is normally done in mach-omap/xload.c which never gets called. Since we're configuring the USBHOST CLKCTRL register in the board file anyway, we might as well explicitly enable the module in the same place. Signed-off-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-3/+3
| | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap: Unify run_shell() in xload configurationSanjeev Premi2011-11-111-19/+0
| | | | | | | | | | | | | | Currently, there are multiple definitions of run_shell() for each board that can be build in "xload" configuration. Now there is only one function used by all boards. The functions defined in xload.c are used only when "xload" configuration used; but it gets compiled unconditionally. This has been fixed as well. Signed-off-by: Sanjeev Premi <premi@ti.com> Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-10-091-1/+1
|\
| * introduce io.hSascha Hauer2011-09-221-1/+1
| | | | | | | | | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Corrected ns16550 access at all omap based boards.Juergen Kilb2011-09-121-0/+1
|/ | | | | | | | | | | | | | Commit c71a77ab8 (ns16550: switch to resource) has introduced generic read/write access to 16550 register and a 'shift' parameter to allign register index to physicall registers. The correct 'shift' value was missing in all omap based boards. Corrected this to 2 which has fixed the problem. Tested on a PCM-049 phyCORE-OMAP4 board. Signed-off-by: Juergen Kilb <J.Kilb@phytec.de> Tested-by: Jan Weitzel <J.Weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM boards: remove now unnecessary mmu callsSascha Hauer2011-08-031-8/+0
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM boards: move sdram setup before mmu setupSascha Hauer2011-08-011-6/+6
| | | | | | | | | | | | The new MMU setup will need SDRAM base addresses and sizes. For this reason convert the MMU enabled ARM boards: - move mem setup to mem_initcall. This is early but still makes sure that we already have the console available - move MMU setup in this initcall temporary as after the mmu_init will generic Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* arm: introduce arm_add_mem_device to register dram deviceJean-Christophe PLAGNIOL-VILLARD2011-08-011-5/+1
| | | | | | this will automaticaly register the device to armlinux_add_dram Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ns16550: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-011-3/+2
| | | | | | | use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ns16550: if not specific f_caps defined use default stdin, stdout, stderrJean-Christophe PLAGNIOL-VILLARD2011-07-301-1/+0
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* omap: switch to add_generic_deviceJean-Christophe PLAGNIOL-VILLARD2011-07-291-8/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* resource: introduce add_usb_ehci_device to register echi deviceJean-Christophe PLAGNIOL-VILLARD2011-07-291-11/+7
| | | | | | | | | pass the hccr and hcor register base via resource instroduce add_generic_usb_echi_device with hccr = base + 0x100 and hcor = base + 0x140 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* add a ns16550 registration helper and use itSascha Hauer2011-07-291-9/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a add_mem_device functionSascha Hauer2011-07-181-15/+5
| | | | | | | | | | | Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data. And switch all of the memory to it Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLEJean-Christophe PLAGNIOL-VILLARD2011-07-181-1/+1
| | | | | | | we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM omap4: panda board supportSascha Hauer2011-04-121-0/+230
This patch adds support for the TI omap4 panda board. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>