summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9260_devices.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 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>
* at91: add irq fixupJean-Christophe PLAGNIOL-VILLARD2013-09-181-0/+8
| | | | | | | | | | Some of the irq can still be on after a reset or power on as the IP are powered by the backup power. This could lead to an interrupt dead lock when the kernel boot. So disable them before booting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> 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>
* macb: rename platform dataJosh Cartwright2013-04-031-2/+2
| | | | | | | | | | 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>
* at91sam9: drop AT91_BASE_SYS for sdram controllerJean-Christophe PLAGNIOL-VILLARD2013-02-051-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>
* at91: usb: allow to specicfy inverted vbusJean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+9
| | | | | | | add missing vbus to all SoC Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: use gpio_is_valid to check gpioJean-Christophe PLAGNIOL-VILLARD2012-12-221-7/+7
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>
* at91sam9260/sam9g20: add i2c supportJean-Christophe PLAGNIOL-VILLARD2012-11-151-0/+32
| | | | | | | use i2c-gpio as the hw ip is broken Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: sam9260/sam9g20/sam9261/sam9g10/sam9263 add autodetect sdram sizeJean-Christophe PLAGNIOL-VILLARD2012-08-031-0/+4
| | | | | | | | | if 0 is passed to at91_add_device_sdram autodetect the sdram size The amount of available ram is determined by the SDRAMC_CR register. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-011-2/+2
| | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: switch uart registration to inlineJean-Christophe PLAGNIOL-VILLARD2012-05-291-47/+20
| | | | | | | this allow to save between 100 to 300 bytes Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-05-031-4/+4
|\ | | | | | | | | | | | | Conflicts: common/hush.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-4/+4
| | | | | | | | | | | | | | 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>
* | at91: at91_register_uart use number instead of IDsJean-Christophe PLAGNIOL-VILLARD2012-04-241-13/+6
|/ | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM: at91: allow to pass the interface id to at91_add_device_ethJean-Christophe PLAGNIOL-VILLARD2012-04-021-2/+2
| | | | | | | 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: at91_register_uart return deviceJean-Christophe PLAGNIOL-VILLARD2012-02-161-3/+3
| | | | | | this will allow to set the active parameter from C Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'pu/debug' into nextSascha Hauer2012-01-271-12/+12
|\
| * atmel/mci: fix slot_b supportJean-Christophe PLAGNIOL-VILLARD2012-01-161-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in commit commit f60f6c58e atmel_mci: check for device id we use to address the right slot the driver use the dev_id to detect the slot which is wrong on 9263 as we have 2 devices with 2 slots use slot_b paramter to specify the slot as done in linux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | at91: add default spi chipselect ressourcesJean-Christophe PLAGNIOL-VILLARD2012-01-061-0/+18
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | at91: add spi device ressourcesJean-Christophe PLAGNIOL-VILLARD2012-01-061-0/+44
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | at91: 9260 and 9g20 add support of join SRAM Memory MappingJean-Christophe PLAGNIOL-VILLARD2012-01-061-8/+4
|/ | | | | | | on 9269 and 9g20 the sram are mirrored at then of the bank so we can join them Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add sram memory devicesJean-Christophe PLAGNIOL-VILLARD2012-01-021-0/+12
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add at91_udc resourceJean-Christophe PLAGNIOL-VILLARD2011-12-231-0/+19
| | | | | | | | | this device controller is present on rm9200/9260/9g20/9261/9g10/9263 the 9g45 use an other IP Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9260_devices: add flag to change ETX{2,3} pincfg on add_device_ethMichael Grzeschik2011-12-071-2/+7
| | | | | Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91sam9260_devices: properly set slot idMichael Grzeschik2011-12-071-10/+24
| | | | | Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add missing clkdev changesHubert Feurstein2011-09-201-1/+0
| | | | | | | | | | | | | | | | | | | | | This fixes the following compile errors arch/arm/mach-at91/at91sam9g45.c:185:3: error: 'ohci_clk' undeclared here (not in a function) arch/arm/mach-at91/at91sam9g45.c:186:3: error: 'tcb1_clk' undeclared here (not in a function) arch/arm/mach-at91/at91sam9g45_devices.c: In function 'at91_add_device_mci': arch/arm/mach-at91/at91sam9g45_devices.c:258:2: warning: implicit declaration of function 'at91_clock_associate' [...] arch/arm/mach-at91/built-in.o: In function `at91_add_device_mci': sam9_smc.c:(.text.at91_add_device_mci+0x1d0): undefined reference to `at91_clock_associate' arch/arm/mach-at91/at91sam9260_devices.c: In function 'at91_add_device_mci': arch/arm/mach-at91/at91sam9260_devices.c:251:2: warning: implicit declaration of function 'at91_clock_associate' which were introduced in commit: "at91: swtich to clkdev" (ae19fe26cc230bc38238c2d66b8f464761286316) Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add ohci supportJean-Christophe PLAGNIOL-VILLARD2011-09-201-0/+13
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: nand switch ecc base to resourceJean-Christophe PLAGNIOL-VILLARD2011-09-201-2/+15
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: swtich to clkdevJean-Christophe PLAGNIOL-VILLARD2011-08-101-11/+1
| | | | | | | | | | | | | | this will also fix the clock support as we now switch to allocated generic device as we can need to associate the clock and the device but the driver is probe before the association we also change the atmel serial name to "atmel_usart" to simplify sharing with linux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>
* at91: switch to add_generic_deviceJean-Christophe PLAGNIOL-VILLARD2011-07-221-171/+38
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91: add missing IORESOURCE_MEM flags to resourcesJean-Christophe PLAGNIOL-VILLARD2011-07-201-0/+10
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add a add_mem_device functionSascha Hauer2011-07-181-22/+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>
* at91: switch to all resource declaration to "struct resource"Jean-Christophe PLAGNIOL-VILLARD2011-07-181-22/+99
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mci: add Atmel AT91 MCI driverHubert Feurstein2011-06-161-0/+50
| | | | | | | The driver supports push and pull transfers. Tested on at91sam9m10 SoC. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
* at91sam9260/at91sam9263: use the same id as in the kernel for the uart devicesJean-Christophe PLAGNIOL-VILLARD2010-11-111-7/+7
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* driver: use id as -1 for auto assigned idJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+10
| | | | | | | | before if you specify id = 0 the next available id will be taken otherwise fail if already registered now as in linux we use -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: implement clock frameworkJean-Christophe PLAGNIOL-VILLARD2010-08-061-9/+9
| | | | | | | | | | | this implementation is based on linux one (v2.6.35-rc5-76-gd0c6f62) it will calculate all the clock dynamically instead of statictly this will use also the new clock framework it will also print the clock status after the console init Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-221-5/+5
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91sam9: switch to the same api as the kernelJean-Christophe PLAGNIOL-VILLARD2009-10-201-6/+192
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91: add cpu devices common apiJean-Christophe PLAGNIOL-VILLARD2009-10-201-0/+86
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>