9
0
Fork 0
Commit Graph

4506 Commits

Author SHA1 Message Date
Ivo Clarysse a81786a053 mx25 3ds: Fix compilation
On barebox-next, I get:

board/freescale-mx25-3-stack/built-in.o: In function `go':
3stack.c:(.flash_header_start+0x0): undefined reference to `_start'
board/freescale-mx25-3-stack/built-in.o: In function `imx25_3ds_fec_init':
3stack.c:(.text.imx25_3ds_fec_init+0x4): undefined reference to `mc34704_get'
3stack.c:(.text.imx25_3ds_fec_init+0x1c): undefined reference to
`mc34704_reg_write'

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-15 13:00:22 +02:00
Sascha Hauer c21a7fb9f1 arm start.c: Make runtime function address calculation tolerant for more compilers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-13 13:07:12 +02:00
Eric Benard f2fdfe875f Add support for Eukrea CPUIMX35
this modules is based on Freescale's i.MX357 CPU, with 128MB of
mDDR, 256 MB NAND, and ethernet PHY.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 15:57:18 +02:00
Sascha Hauer ce971c2367 arm: use processor specififc functions to turn off MMU
The way it was done before does not work on Cortex processors.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Orjan Friberg <of@flatfrog.com>
Tested-by: Luca Ceresoli <list@lucaceresoli.net>
2010-06-10 14:20:39 +02:00
Eric Bénard fa9153df32 cpuimx25: remove unused define
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:45:07 +02:00
Eric Bénard f0bbbb9aae eukrea_cpuimx25: update defconfig
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:44:46 +02:00
Eric Bénard 5ba33bf2e6 eukrea_cpuimx25: add compressed logo support
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:44:46 +02:00
Baruch Siach c985627227 mx25 3ds: fix memory initialization
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:13:03 +02:00
Baruch Siach 1b1fa988ba mx25 3ds: fix fec initialization
The fec network interface initialization depends on the initialization of the
PMIC. Once the MC34704 driver is registered we can enable the PHY power supply,
and go on with the PHY initialization.

While we are at it convert the hard-coded GPIO registers access to the general
GPIO API for shorter and clearer code.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:27 +02:00
Baruch Siach dcdd890e0c mx25 3ds: add support for i2c master and PMIC
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach 514387711f i2c: add driver for the MC34704 PMIC
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach c672f6fcd7 mx25: add support for i2c
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach ca593071ec mx25 3ds: cleanup lowlevel_init code
* remove unused asm/cache-l2x0.h header include
* remove out of place comment
* remove redundant defines

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach e490bd6715 mx25: fix typo in imx25-regs.h
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach c925dcdb37 mx25 3ds: fix build failure
Remove redundant parameters from the imx_nand_load_image() call.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Sascha Hauer f2abce5336 Merge branch 'next' 2010-06-03 13:06:39 +02:00
Sascha Hauer 7f37262ee5 v2010-06.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-02 10:36:28 +02:00
Eric Bénard 043efce517 eukrea_cpuimx27_defconfig: increase MALLOC_SIZE
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-02 10:33:46 +02:00
Eric Bénard e9a966e0ef eukrea_cpuimx25: update env
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 a95f418c3b eukrea_cpuimx25: fix machine ID
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 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
Sascha Hauer f93bf4f5cd pcm043: Fix check for being inside NFC space
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-25 09:25:32 +02:00
Eric Bénard 2abc73db03 i.MX27: add required defines for I2C2
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-18 08:30:45 +02:00
Eric Bénard 7b416988bb eukrea_cpuimx27: allow compilation without LP3972 selected
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-18 08:27:48 +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
Eric Benard 33d0633f8e freescale-mx*5-3-stack : fix __flash_header_start
_start is now exception_vectors since it was rewritten in C
(not tested on these boards but compile should fail without
this patch)

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 11:15:38 +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