summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | ARM omap3: Add change OMAP_ prefix to OMAP3_ for registersSascha Hauer2012-12-2014-333/+333
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap hsmmc: Fix register offsetSascha Hauer2012-12-193-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | The hsmmc module has a 0x100 offset in its register space. The real register space size for the module is 4K, so when we register the device with the size 4k, we have to account for the offset in the driver, not in the resource allocation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap4: Use device register functions in boardsSascha Hauer2012-12-194-51/+17
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap3: Use device register functions in boardsSascha Hauer2012-12-194-49/+16
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap: Add device register convenience functionsSascha Hauer2012-12-195-2/+165
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap: include individual SoC filesSascha Hauer2012-12-1918-55/+19
| | | | | | | | | | | | | | | | | | | | | - 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>
| * | ARM omap: Use SoC specific defines for gpmc and timer baseSascha Hauer2012-12-195-9/+22
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap3: make PRM defines SoC specificSascha Hauer2012-12-192-3/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap4: make PRM defines SoC specificSascha Hauer2012-12-192-5/+5
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap: Make timer base runtime configurableSascha Hauer2012-12-195-6/+14
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap: Make gpmc base runtime configurableSascha Hauer2012-12-193-4/+16
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap4: Add missing double include protectionSascha Hauer2012-12-191-1/+5
| | | | | | | | | | | | | | | | | | missing in omap4-clock.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap4: Add missing assembly protection in header fileSascha Hauer2012-12-191-0/+4
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap4: remove unused structSascha Hauer2012-12-191-9/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM omap: remove unused functionSascha Hauer2012-12-192-20/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mxs'Sascha Hauer2013-01-097-4/+153
|\ \ \
| * | | ARM: cfa10036: Use the board variant to load a different device treeMaxime Ripard2012-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The board variant found on the AT24 EEPROM holds the variant ID that we can use to identify which expansion board we are running on and thus which device tree to load and pass to the kernel. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: cfa10036: Retrieve the board variant from the AT24Maxime Ripard2012-12-144-1/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AT24 found on the expansion boards store the variant of the board it is soldered onto. That means that we are that way able to determine what expansion board is currently plugged in if any. If we can't communicate with the EEPROM, we just assume that only the CFA-10036 is there. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: cfa10036: Add the AT24HC02 I2C EEPROMMaxime Ripard2012-12-143-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This EEPROM is found on the expansion boards available for the 10036 module. Since we won't need to do anything fancy except reading/writing from it, use bitbanging to communicate with it. This EEPROM will hold mostly the board_id so that we can determine if there is an expansion board plugged in and what expansion board it is. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2013-01-092-1/+3
|\ \ \ \
| * | | | ARM: OMAP: Remove unneeded dependencies for GPMCAlexander Shiyan2012-12-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ARCH_OMAP2 missing in barebox. ARCH_OMAP3 and ARCH_OMAP4 is only choice for this target. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | x86: Add formal Kconfig parameter "X86_BOOTLOADER"Alexander Shiyan2012-12-191-0/+3
| | |/ / | |/| | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mips'Sascha Hauer2013-01-0913-0/+440
|\ \ \ \
| * | | | MIPS: qemu-malta_defconfig: use pblAntony Pavlov2012-12-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USAGE $ make qemu-malta_defconfig ... $ make ... $ qemu-system-mips -nodefaults -M malta -m 256 \ -nographic -serial stdio -bios ./barebox-flash-image Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | MIPS: qemu-malta: add trivial pbl supportAntony Pavlov2012-12-142-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trivial pbl support has no cpu specific setup. We will add cache setup routines in the future. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | MIPS: add pre-bootloader (pbl) image supportAntony Pavlov2012-12-1410-0/+403
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is based on ARM pbl support and allows creating a pre-bootloader binary for compressed image. For different MIPS SoCs (or even for different boards based on the same SoC) the operations carried on in start-pbl.S can be very different. The additional constraints can be imposed on the size of the boot code or the special magic labels in the beginning of the boot code; In some cases it could be necessary to show CPU is alive as early as possible (transmit a char via UART or blink a LED). So the demands for pbl start operation can be very different. E.g. malta board store boot code at the NOR flash mapped to the MIPS power-on address (0xbfc00000); it is the most simple case: we need just copy pbl image from direct-mapped flash to RAM and jump there. The XBurst-powered boards store boot code in the beginning of a NAND flash or in the beginning of SD/MMC card. In this case we must use simple and short NAND or SD/MMC access routines to copy pbl image to RAM. To meet so different demands a simple technique is selected: * MIPS pbl entry point located in file arch/mips/boot/start-pbl.S. * MIPS pbl code (see start-pbl.S) assumes that every pbl-enabled board has a arch/mips/boards/<BOARD>/include/board/board_pbl_start.h header file. This file must contain definition of the board_pbl_start macro. This macro is used as start of pbl image; * the most popular asm routines (stack setup, relocation to link address, NS16550 initialization (WIP) and so on) are containt in the arch/mips/include/asm/pbl_macros.h header file. So board pbl macro can use it if necessary. It is possible to create similar headers with macros for each specific SoC; so even if we have many different boards based on the same SoC the board_pbl_start macro for every board can be short and clear. * after board-specific initialization the stack pointer is initialized and pbl C code is started. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2013-01-0955-346/+2377
|\ \ \ \
| * \ \ \ Merge branch 'pu/efikasb' into for-next/imxSascha Hauer2012-12-192-24/+16
| |\ \ \ \
| | * | | | Arm Efika MX Smartbook: coding style fixesSascha Hauer2012-12-192-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some Coding style fixes as suggested by Peter Korsgaard. No functional change. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | Merge branch 'pu/efikasb' into for-next/imxSascha Hauer2012-12-1723-3/+1133
| |\| | | |
| | * | | | USB ehci: Add powerup fixup for EfikaSBSascha Hauer2012-12-171-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EfikaSB has a bug requiring to write to an ULPI register after powerup. It doesn't seem that this this bug is present on any other hardware, so add a workaround directly into the driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM: Add defconfig for Efika MX smartbookSascha Hauer2012-12-171-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM i.MX51: Add support for the Efika MX SmartbookSascha Hauer2012-12-1715-0/+771
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Efika MX Smartbook is a i.MX51 based netbook. This patch adds nearly full support for it including: - USB - SD card slots - Internal SPI NOR flash - Internal flash PATA drive - LEDs Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | mfd mc13893: Add register definesSascha Hauer2012-12-171-0/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add register defines for the mc13892. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | mci i.MX esdhc: Allow to specify devicename from platformdataSascha Hauer2012-12-172-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For boards which need to have persistent names for the device file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | mci: Allow to specify device nameSascha Hauer2012-12-172-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When multiple MMC/SD cards are present in the system we often have to have persistent names to identify them during runtime. This patch allows to overwrite the devicename which is used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ata sff: set device pointer in ata portSascha Hauer2012-12-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was forgotten in the last ata updates and leads to NULL pointer dereferences. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | Merge branch 'pu/usb' into for-next/imxSascha Hauer2012-12-1734-122/+775
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/mach-imx/include/mach/devices-imx31.h
| | * | | | USB ULPI: Add more register/bit definesSascha Hauer2012-12-172-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the register defines for ULPI more complete. Also, Add a proper ULPI_* Namespace to the existing defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | USB ULPI: Add missing ulpi_write functionSascha Hauer2012-12-172-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently only have functions to read/modify registers. Add a function to write registers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM i.MX pcm038: Update defconfig for chipidea driverSascha Hauer2012-12-131-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | pcm038: Stop ongoing ULPI transfers before registering the transceiverSascha Hauer2012-12-131-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ULPI lines are normally input to the USB port. In order to configure the ULPI transceiver properly the ongoing transfers must be stopped. This can be done by configuring the the STP pin as gpio output and drinving it high. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM i.MX pcm038: switch to chipidea supportSascha Hauer2012-12-132-26/+9
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM i.MX31: Add USB device functionsSascha Hauer2012-12-132-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM i.MX51: Add USB device functionsSascha Hauer2012-12-132-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM i.MX27: Add USB device functionsSascha Hauer2012-12-134-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Register the USB misc devices and provide convenience wrappers to register the USB ports for i.MX27. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | USB i.MX: Add chipidea driver supportSascha Hauer2012-12-137-0/+566
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For proper USB function the usbmisc registers have to be initialized. This patch adds a driver which matches for the usbmisc registers. This driver is called from a new driver which binds to the USB ports to configure the misc registers. After that the driver registers the EHCI driver and an ULPI transceiver if necessary. Currently only host mode is supported, but device support can be added later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | USB ehci: Allow to register independently from deviceSascha Hauer2012-12-132-20/+43
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EHCI core often is part of a otg core. Allow it to be registered separately from another driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM i.MX31 pcm037: add mmc supportSascha Hauer2012-12-121-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM i.MX31: Add mmc register convenience functionsSascha Hauer2012-12-121-0/+10
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>