summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/at91sam9m10g45ek
Commit message (Collapse)AuthorAgeFilesLines
* ARM: Cleanup stack offset cargo cultSascha Hauer2019-09-091-1/+1
| | | | | | | | | Most callers of arm_setup_stack substract a fixed offset of 8, 12 or 16 bytes from the stack top. This is unnecessary as on ARM we have a stack that decrements before storing values. Substracting this offset probably goes back to the U-Boot version we forked from. Stop this now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: boards: Harmonize barebox_arm_reset_vector() prototypeSascha Hauer2019-03-181-1/+1
| | | | | | | | | | | | barebox_arm_reset_vector() is a global function but we never provided a prototype anywhere. The prototypes differ for the different boards, so to provide a common prototype we must harmonize them. void barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2) Should be suitable for all boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: remove mach/io.hSascha Hauer2018-11-061-1/+0
| | | | | | | Remove at91_sys_read() and at91_sys_write() since these are no longer used. This makes mach/io.h empty so remove that aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9m10g45ek, at91sam9m10ihd, pm9g45: move reset vector to board codeSam Ravnborg2018-01-092-0/+27
| | | | | | | | | | | | These three board share the same at91sam9g45_lowlevel_init.c file. Introduce lowlevel.c file for the boards that contains the reset vector. Delete the now unused at91sam9g45_lowlevel_init.c file Drop unused CONFIG symbols and Makefile references Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv: add defaultenv-1 in boards via defaultenv_append_directory()Sascha Hauer2016-10-105-0/+5
| | | | | | | | | | | | | | | | | | | | Currently it's hardcoded for each board which defaultenv version is used. This is unfortunate since some people like the other defaultenv version better and may want to select it. This patch removes the board specific environment path CONFIG_DEFAULT_ENVIRONMENT_PATH and instead adds it via: if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT_GENERIC)) defaultenv_append_directory(defaultenv_<board>); This way we can make sure that the defaultenv-1 board specific bits are only compiled in when defaultenv-1 is actually in use. The next step is to make the defaultenv version selection a user visible choice. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* input: gpio-keys: Use KEY_* keycodesSascha Hauer2016-01-131-7/+8
| | | | | | | | The gpio-keys driver takes ascii key codes from platform_data and Linux keycodes from device tree. Convert the ascii keys over to Linux keycodes to get rid of the special cases in the driver. 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>
* mtd: atmel_nand: retrieve ecc_mode from pdataRaphaël Poggi2014-09-021-0/+1
| | | | | | | | | By retrieving the ecc_mode from pdata we can use the same code for device tree and non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to NAND_ECC_SOFT. Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* input: Add BB_ prefix to KEY_ definesSascha Hauer2014-02-171-7/+7
| | | | | | | Our KEY_ defines conflict with the standard Linux KEY_ defines, so add a BB_ prefix to them. 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>
* ARM: remove asm/hardware.hSascha Hauer2013-11-081-1/+1
| | | | | | | asm/hardware.h does not have any content except including mach/hardware.h. include mach/hardware.h directly where needed and get rid of asm/hardware.h 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: AT91: move iomux definitions to iomux.hSascha Hauer2013-08-161-0/+1
| | | | | | | | | | | | | | mach/gpio.h is for the gpio API, so move unrelated stuff away. 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>
* ARM: at91 boards: remove empty config.h filesJean-Christophe PLAGNIOL-VILLARD2013-07-091-4/+0
| | | | | | | | We just keep one on rm9200ek as I did not yet convert this SoC init to C struct and still use Macro. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: move main clock define to CJean-Christophe PLAGNIOL-VILLARD2013-07-092-2/+7
| | | | | | | This will allow to drop the config.h and switch to multi board support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9m10g45ek: add spi dataflash supprtJean-Christophe PLAGNIOL-VILLARD2013-04-161-0/+18
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* macb: rename platform dataJosh Cartwright2013-04-031-1/+1
| | | | | | | | | | The macb/gem core is used by the Zynq SoC. In preparation of sharing the macb driver between at91 and Zynq, rename the platform data to 'struct macb_platform_data', and move the definition to a common location. Signed-off-by: Josh Cartwright <joshc@eso.teric.us> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: use -EINVAL for invalid gpio on atmel_mciFabio Porcedda2013-02-191-0/+1
| | | | | | Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/at91'Sascha Hauer2013-02-042-2/+72
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/boards/at91rm9200ek/init.c arch/arm/boards/pm9263/init.c arch/arm/configs/at91sam9n12ek_defconfig arch/arm/mach-at91/Kconfig
| * macb: allow to pass the phy interfaceJean-Christophe PLAGNIOL-VILLARD2013-01-291-1/+1
| | | | | | | | | | | | | | as we will add later the GMAC IP verion support (GEM) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91sam9m10g45ek: add lcdc supportJean-Christophe PLAGNIOL-VILLARD2013-01-282-0/+50
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: Atmel ref board sam{9x5/9n12/m109g45} EK and Ronetix pm9g45 autodetect ↵Jean-Christophe PLAGNIOL-VILLARD2013-01-271-1/+1
| | | | | | | | | | | | | | ddr size Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91sam9m10g45ek: add usb supportJean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | warning: the ohci work only without MMU enable: - ehci - usb strorage - usb net asix Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | atmel_mci: drop board host capsJean-Christophe PLAGNIOL-VILLARD2013-01-251-1/+0
|/ | | | | | | as it's handle by detecting the IP version and bus with Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: SMC: switch to platform_driverJean-Christophe PLAGNIOL-VILLARD2013-01-071-2/+1
| | | | | | | This will allow to support multiple arch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: use -EINVAL for invalid gpioJean-Christophe PLAGNIOL-VILLARD2012-12-221-1/+1
| | | | | | | switch gpio type from u8 to int in the data struct Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/phylib'Sascha Hauer2012-12-071-1/+1
|\ | | | | | | | | Conflicts: drivers/net/phy/phy.c
| * macb/ether: split flags for drivers and phylibJean-Christophe PLAGNIOL-VILLARD2012-11-191-1/+1
| | | | | | | | | | | | | | | | | | as in the kernel use is_rmii flags for pinctrl phy_flags for phylib flags Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | at91: add_gpio_keys_device: fix missing conversion to DEVICE_ID_DYNAMICAntony Pavlov2012-12-061-1/+1
|/ | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-031-4/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | dhcp: switch to global var supportJean-Christophe PLAGNIOL-VILLARD2012-10-021-1/+1
|/ | | | | | | | | | This way you can specify as previously set the dhcp parameter via global.dhcp.xxx and get the result via global.dhcp.xxx This is need for the defaultenv-2 to add the bootp suppport. Use it on defaultenv too to have only one set of var. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Removed duplicate definition for DEVFS_PARTITION_xxxAlexander Shiyan2012-05-131-4/+4
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Atmel reference board: add oftree boot supportJean-Christophe PLAGNIOL-VILLARD2012-04-131-5/+7
| | | | | | | | | add oftree partition to store the dtb set the oftree location use a zImage by default now Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9m10g45ek: add boot menu supportJean-Christophe PLAGNIOL-VILLARD2012-04-112-0/+88
| | | | | | | | | | by default we boot the same way as before The menu add interactive interface to choice boot, reset or update the system. We still can access the shell. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9m10g45ek: enable kernel console over framebufferJean-Christophe PLAGNIOL-VILLARD2012-04-111-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9m10g45ek: add gpio keys supportJean-Christophe PLAGNIOL-VILLARD2012-04-111-0/+51
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: allow to pass the interface id to at91_add_device_ethJean-Christophe PLAGNIOL-VILLARD2012-04-021-1/+1
| | | | | | | On the sam9x5 series we now support 1 or 2 macb. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: set ip mode to dhcp-bareboxJean-Christophe PLAGNIOL-VILLARD2012-04-021-1/+1
| | | | | | | As the mainline kernel does not enable the bootp support by default Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: set dhcp vendor id on Atmel Reference boardJean-Christophe PLAGNIOL-VILLARD2012-03-171-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9m10g45ek: add leds supportJean-Christophe PLAGNIOL-VILLARD2012-03-121-0/+37
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91sam9m10g45ek: update partition layoutJean-Christophe PLAGNIOL-VILLARD2012-03-122-4/+9
| | | | | | This will allow to boot from nand with the bootstrap. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* atmel: reference boards and Caloa boards bbt option enabledJean-Christophe PLAGNIOL-VILLARD2012-01-021-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv: simplify bootSascha Hauer2011-12-151-5/+0
| | | | | | | | Now that we have a bootm command which boots everything we can simplify the defaultenvironment. We can call bootm on every image type and can remove the kernelimage_type variables. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: at91: fix environment location in flash for multiple boardsThomas Petazzoni2011-10-141-1/+1
| | | | | | | | | The environment partition was overlapping the Barebox partition in those three Atmel boards. Saving the environment resulted in the Barebox being overwritten. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>
* ARM boards: move sdram setup before mmu setupSascha Hauer2011-08-011-1/+7
| | | | | | | | | | | | 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>
* at91sam9m10g45ek: update mci0 supportHubert Feurstein2011-06-161-2/+12
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>