summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use the native 'void' instead of 'Void_t'Juergen Beisert2009-12-102-52/+44
| | | | | | | We are in the *NIX world, so keep a 'void' as is. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Move private settings and configuration into the C sourceJuergen Beisert2009-12-102-476/+458
| | | | | | | | | | | Include the board config first to be able to configure the memory management in the documented way. If not used, the defaults are used. On the other hand, there is no need to pollute the other source files with these local management settings. So, move them from the header into the C source file. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Remove unused codeJuergen Beisert2009-12-101-99/+0
| | | | | | | | Remove unused code to get a better understanding what really is happen in the source. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Include the 'size_t' declarationJuergen Beisert2009-12-101-0/+1
| | | | | | | The 'size_t' declaration is needed for the function prototypes. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Move variables to bssJuergen Beisert2009-12-101-4/+4
| | | | | | | | There is no need to init variables with 0. So, move them to the bss and let the C runtime does this job for us. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Merge branch 'for-sha-i2c-imx' of git://git.pengutronix.de/git/mkl/u-boot-v2Sascha Hauer2009-12-101-8/+27
|\
| * i2c-imx: i2c_imx_xfer return with err if sub-transfer isn't successfullMarc Kleine-Budde2009-12-091-0/+2
| | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * i2c-imx: fix low bitrate problemMarc Kleine-Budde2009-12-091-3/+17
| | | | | | | | | | | | | | | | | | loop in i2c_imx_acked() in low bit rates it takes some time until the ACK comes in. Also add a delay before polling for bus not busy in i2c_imx_read. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * i2c-imx: fix clear IFF race conditionMarc Kleine-Budde2009-12-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During i2c read the original pattern was: 1. write i2c slave address 2. wait for transmit complete + clear IIF 3. wait for receive acknowledge 4. wait for IIF interrupt Due to the clear of the I2SR register, the IIF flag was cleared, too. So in step 4 the Interrupt wasn't detected. To fix this problem, we move the clean of IIF before the writing of the slave address. So that it looks this way: 0. clear IIF 1. write i2c slave address 2. wait for transmit complete 3. wait for receive acknowledge 4. wait for IIF interrupt Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * i2c-imx: print errors with dev_errMarc Kleine-Budde2009-12-091-3/+5
| | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | pcm038: update defconfigSascha Hauer2009-12-101-31/+43
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX Nand: fix bit clearingSascha Hauer2009-12-101-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand bb: Be sure that fd is at the beginning when erasingSascha Hauer2009-12-101-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | crc: Do not lseek if not necessary (bb devs do not allow lseek)Sascha Hauer2009-12-101-4/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pcm038: Use a flash based bbtSascha Hauer2009-12-101-2/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | remove unused include filesSascha Hauer2009-12-103-291/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX31: Fix CCM_UPCTL register offsetSascha Hauer2009-12-101-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | let linker create a link mapJuergen Beisert2009-12-102-0/+3
| | | | | | | | | | Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | omap: Use correct label in arch/arm/MakefileSascha Hauer2009-12-101-1/+1
| | | | | | | | | | | | | | | | | | Currently all omap boards reside in boards/omap. This is probably not a good idea as it leaves no good place to put custom omap boards in. Anyway, make the boards compile again until someone provides a better solution. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | beagle board: Compile fixesSascha Hauer2009-12-101-18/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | omap: Add missing includeSascha Hauer2009-12-101-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pcm043: Add MMU supportSascha Hauer2009-12-102-0/+27
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pcm043: add display supportSascha Hauer2009-12-102-0/+63
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | command line gpio supportSascha Hauer2009-12-103-0/+131
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | introduce GENERIC_GPIO labelSascha Hauer2009-12-102-0/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | complete i.MX GPIO supportSascha Hauer2009-12-1012-38/+271
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX: split out iomux-v1 supportSascha Hauer2009-12-103-63/+90
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mx35 3stack display supportJuergen nogit Beisert2009-12-101-0/+69
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fb: Add a i.MX IPU framebuffer driverJuergen nogit Beisert2009-12-094-1/+961
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fb: Add FB_SYNC_ defines from kernelSascha Hauer2009-12-091-0/+22
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imxfb: show only for relevant i.MXsSascha Hauer2009-12-091-2/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand_imx.c : remove unused codeEric Benard2009-12-091-5/+0
| | | | | | | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand_imx.c : add reset commandEric Benard2009-12-091-0/+1
| | | | | | | | | | | | | | | | | | The RESET command was removed during the nand_imx.c driver rework. The reset commant is necessary in order to get Micron Nand running as they need a RESET command before being able to get any command. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix imx_nand_set_layout for i.MX27Eric Benard2009-12-091-2/+2
|/ | | | | | | | FMCR is (*((volatile u32 *)(x))) (0x10027814) and thus this leads to a data abort. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCA100: initialize pll in assembler codeSascha Hauer2009-12-032-43/+18
| | | | | | | | The PLL initialisation does not work properly if run from SDRAM. Move the initialisation code to lowlevel init which is run in NFC RAM. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: do not write empty pages. Needed for writing UBI imagesSascha Hauer2009-12-031-6/+18
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: refuse to write data if not beginning on a page boundarySascha Hauer2009-12-031-1/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX35 3stack: several enhancementsMarc Kleine-Budde2009-12-035-401/+547
| | | | | | | | | | - Add support for booting from NAND - Add support for internal Boot mode - Add I2C PMIC support - Enable FEC Ethernet controller Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX flash header: make it work on i.MX35Sascha Hauer2009-12-035-50/+71
| | | | | | | | | The flash header is used on different i.MXs other than the i.MX25, so rename it. Also, add a possibility to put a flash header on different offsets (0x100, 0x400 and 0x1000), needed for different boot mediums. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.c: use USECOND and MSECONDMarc Kleine-Budde2009-12-031-2/+2
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clock.h: use types.h not linux/types.hMarc Kleine-Budde2009-12-031-1/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Acked-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NAND: Allow to read oob dataSascha Hauer2009-12-032-0/+42
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX: remove obsolete V2 Nand driverSascha Hauer2009-12-033-1139/+0
| | | | | | Use the generic v1 driver instead Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX Nand: Set correct datawidth/pagesize in CCM moduleSascha Hauer2009-12-034-0/+110
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Eukrea CPUIMX27 : update defconfigEric Benard2009-12-031-7/+26
| | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Eukrea CPUIMX27 : update documentationEric Benard2009-12-031-0/+1
| | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Eukrea CPUIMX27 : Add MMU supportEric Benard2009-12-032-0/+27
| | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Eukrea CPUIMX27 : add console on Quad UART supportEric Benard2009-12-032-7/+70
| | | | | | | | The SOM can integrate a 16550 Quad UART which can be used for serial console. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Eukrea CPUIMX27 : add NOR flash size configurationEric Benard2009-12-032-1/+18
| | | | | | | | | | 64MB strataflash consist in 2x256Mb flashs. So we must declare 2 cfi_flash in order to have both 256Mb flash geometry properly detected. For flash <= 32 MB we prefer not to register the second cfi_flash which would be an alias of the first one. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Eukrea CPUIMX27 : add SDRAM size choiceEric Benard2009-12-033-4/+30
| | | | | | | | Add a menu entry and proper settings for 128MB and 256MB RAM size. Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>