9
0
Fork 0
Commit Graph

4432 Commits

Author SHA1 Message Date
Eric Bénard 9404bd294d arm: update mach-types
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:42:35 +02:00
Eric Bénard d784202e07 eukrea_cpuimx27: update defconfig
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Bénard 6aaef710ce eukrea_cpuimx27: update env
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Bénard b6738258b8 eukrea_cpuimx27: add fb support
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Bénard c70443b5c7 commands: add i2c commands
theses commands allow low level access to i2c bus and can be useful
to setup an i2c device without having to add code, compile and flash
barebox.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Sascha Hauer 624f936032 i2c: implement i2c_get_adapter()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Bénard d57a64c28e i2c-imx: change log level for No ACK
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Eric Benard 3466b8b2bc Add support for Eukrea's CPUIMX25
This boards integrates 64mB of DDR, a 256MB NAND flash, a RMII Ethernet PHY
and a i.MX257 CPU.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-25 09:27:00 +02:00
Eric Benard 8a3032fde5 i.MX25 : add Framebuffer support
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 11:16:27 +02:00
Marc Reilly f8541b9d52 imx35pdk: Detect and set silicon and board revision for boot params.
The kernel for the imx35 pdk doesn't do any detection for board and chip revision. This patch passes the info to the kernel so that v2 boards/chips boot properly.

imx35pdk: make COMPARE pad a GPIO1_5 output

This pad is an interrupt source, active low for one of the external ICs.

fix up/remove unnecessary white space.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:54:16 +02:00
Marc Reilly 9edb35dcc9 imx35pdk: correct mode for display contrast pin
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:54:12 +02:00
Marc Reilly c2f9285511 imx35: add detection of silicon revision
Implemented imx_silicon_revision() for imx35.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:53:28 +02:00
Marc Reilly 55626da787 arm boot: Formatting
Changed to be consistent with surrounding code.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:52:50 +02:00
Marc Reilly 0df45f5599 arm: Add revision tag to boot parameters
Revision info required for some boards at boot time.
Only adds if the system_rev has been set to non-zero.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:52:46 +02:00
Sascha Hauer 9c0c26a084 pcm038: reimplement lowlevel code in C
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:07:02 +02:00
Sascha Hauer 8464f0e1c0 i.MX35: Fix ahbclock calculation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:07:02 +02:00
Sascha Hauer 6087daaa53 pcm043: reimplement lowlevel code in C
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:07:00 +02:00
Sascha Hauer ee397c9b54 i.MX: remove __REG from esd controller regs. use readl/writel instead
So far these registers are unused in C, so we can remove the __REG without
harm.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:05:38 +02:00
Sascha Hauer 78104ae181 arm: reimplement startup code in C
Lets translate the startup code to a language we all understand better.
Tested on pcm038 (arm v5) and pcm043 (arm v6).

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:05:38 +02:00
Sascha Hauer bd9e5ca89e arm: move __mmu_cache_flush to bare_init section
Instead of having seperate cache flush functions in the startup code
we want to call the generic functions. To accomplish this they have
to be in the bare_init section.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:05:38 +02:00
Sascha Hauer 64a6eb6a38 arm: remove unused variables from header file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:05:38 +02:00
Sascha Hauer 6b8e614bac add arm helper function to determine the program counter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:05:38 +02:00
Sascha Hauer acbeeab989 ARM: update icache functions to use get_cr/set_cr
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer 1381445eac ARM: Add get_cr/set_cr functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer 0418f39688 define __LINUX_ARM_ARCH__ for armv6 processors
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer e314896a4b fix _update scripts
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer 3246e13271 Increase MAX_FILES to 128
I already hit the limit while doing DFU on a custom board. Increase the
value to a safe limit.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer ea343ab9e8 fsl_udc: make it work with MMU on
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer 51b4009f3c ARM: use memalign in dma_alloc_coherent to assure alignment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:03 +02:00
Sascha Hauer 6b17b6d6cc i.MX35 stack: Fix mc9sdz60 reset register offset
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:02:02 +02:00
Uwe Kleine-König 33241e6f97 give nice output when generating barebox.bin and barebox.S
As a side effect don't build barebox.S when barebox.bin is updated.  I
didn't manage to keep the old behaviour and I consider it cleaner this
way.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Uwe Kleine-König 76da3708c8 imx/gpio: make gpio_get_value actually work
The value read at the pin is provided by Sample Status Register, not the
Data Register.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Ivo Clarysse 7eb1a15954 MX25PDK: Add support for 64MiB DDR2 SDRAM
Newer Freescale 3-Stack development systems are equipped
with 64MiB of DDR2 SDRAM, instead of the 128MiB of mDDR SDRAM
with which earlier versions were shipped.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Uwe Kleine-König 7a0a29ca36 cfi_flash: use flash_write_word instead of reimplementing it again
While at it remove some unused code and an unbalanced
enable_interrupts().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Wolfram Sang ac2d4d71ba nor: Don't use the sector for the unlock sequence
Copy the behaviour from Linux which does:

cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL);
...

(Notice the third parameter which is simply chip->start).

Solves erase problems with SST flashes.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Luotao Fu f498576cb6 fix error return value while loading environment
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:01:28 +02:00
Sascha Hauer 1d6d5108e5 barebox 2010.05.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 14:32:02 +02:00
Sascha Hauer d840493e28 Revert "nand_imx: Speed up sequential read"
This breaks at least on v1 type controllers with 2k pages. Lets
revert it for now and rework it.

This reverts commit d5578b8179.
2010-05-03 14:19:19 +02:00
Uwe Kleine-König 3a1617d96f clock: fix possible error on overflow in is_timeout
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-22 13:29:22 +02:00
Uwe Kleine-König 94e69bc97f board/pcm038: document value written to ESDCFG0
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-22 13:29:22 +02:00
Uwe Kleine-König 7b116156d3 arm: update mach-types
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-22 13:29:22 +02:00
Jan Weitzel 0a28ada177 tftp return value
tftp returns transfered bytes on success and 1 in error case. Bad for
scripting. Change to 0 on success

Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-14 10:13:07 +02:00
Jan Weitzel 972d116ada fix miiphy alloc
if fec was allocated using malloc. if fec->miiphy->dev->driver != 0
miiphy_probe is not called

Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-14 10:12:51 +02:00
marc 460904fc86 Freescale i.MX35 3stack: Remove comment about LCD power enable.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-12 12:14:24 +02:00
marc 3aa519797e Freescale i.MX35 3stack: Enable power to LCD.
Changed register names in f3s_pmic_init_all so that they have
the same effect with the corrected address values.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-12 12:14:17 +02:00
marc 74a895b923 mc9s08dz60: Fixed incorrect register offsets.
These values dervied from Freescale source code for the mc9s08dz60

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-12 12:13:25 +02:00
Sascha Hauer 52784a2708 i.MX35 3stack: fix typo in comment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-06 09:37:18 +02:00
Sascha Hauer eed255609d Merge branch 'next' 2010-04-06 08:44:32 +02:00
Sascha Hauer 9c3df274ac Release v2010.04.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-06 08:35:32 +02:00
Sascha Hauer 86d1c12dd3 i.MX35 3stack: Add a comment about the nonworking display
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-06 08:28:00 +02:00