9
0
Fork 0
Commit Graph

494 Commits

Author SHA1 Message Date
Alexander Shiyan 6c727af2c2 Final switch to use combined driver mc13xxx
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-11 09:51:01 +02:00
Alexander Shiyan a993c51609 Rename mc13892.c unit to mc13xxx.c
Also renamed config option name to MFD_MC13XXX.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-11 09:51:01 +02:00
Alexander Shiyan f8856d422e Define barebox_loc magic variable only once
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-10 11:24:07 +02:00
Eric Bénard 1674431831 imx27-regs: fix .h usage in assembly file
7ab0a0a i.MX27: Added helper for setup chipselect control register
added an helper which triggers the following error :
arch/arm/mach-imx/include/mach/imx27-regs.h:243: Error: bad instruction `static inline void imx27_setup_weimcs(size_t cs,unsigned upper,unsigned lower,unsigned addional)'

This patch fix this problem.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-05 12:43:38 +02:00
Alexander Shiyan c1a85010e3 i.MX5x: Unused pll definitions removed
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-04 10:55:16 +02:00
Alexander Shiyan a50f9d5487 i.MX51: Removed 1000 MHz pll definition
i.MX51 operates at speeds up to 800 MHz.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-04 10:54:58 +02:00
Alexander Shiyan bba5f543de i.MX51: Use register names for imx_gpio_base
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-04 10:52:51 +02:00
Alexander Shiyan a9f18a2378 i.MX51: Fix NANDF_RDY_INT pin definition
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 10:13:24 +02:00
Alexander Shiyan 904ebefe21 i.MX27: Export boot source to magic variables
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 10:07:48 +02:00
Alexander Shiyan 1960730768 i.MX51: Added definition for 600 mHz PLL setup.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 10:03:06 +02:00
Alexander Shiyan 7ab0a0ac05 i.MX27: Added helper for setup chipselect control register
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 10:02:38 +02:00
Alexander Shiyan 9d9724e178 Completely migrate option ISP1504 to ULPI
Since we do not have ISP1504-related functions, we migrated to ULPI.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 09:32:54 +02:00
Sascha Hauer 485cee59cf Merge branch 'work/imx51-babbage-clk' into next 2012-03-23 21:22:14 +01:00
Sascha Hauer f762f4bf04 ARM i.MX51 lowlevel: setup full cpu speed unconditionally
What looked like a TO specific hack really is a hack for
older babbage boards. As the babbage code now handles this
correctly we can remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 11:33:03 +01:00
Sascha Hauer 1b7a6ef394 ARM i.MX51 clk: select uart clk parent based on hardware setting
The previous code assumed pll2 which is correct when we set the
uart parent to pll2 beforehand. The reset default is different
though, so calculate uart parent based on hardware setting.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 11:19:15 +01:00
Sascha Hauer 04b9b0d537 ARM i.MX flash header: Fix barebox image sizes
The image sizes have been hardcoded to 256K. This is inefficient
for smaller images and nonfunctional for bigger images. Calculate
the image size during compile time and use it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 08:58:18 +01:00
Sascha Hauer 773e35bb94 Revert "ARM i.MX53:: Add i2cclk"
Actually a duplicate of an earlier patch from Eric Benard.

This reverts commit 109629c1dd.
2012-03-23 08:55:42 +01:00
guenter.gebhardt@rafi.de 109629c1dd ARM i.MX53:: Add i2cclk
when compiling for a imx53 with i2c enabled i got the following error:

drivers/built-in.o: In function `i2c_imx_set_clk':
/home/ggebhardt/repos/ecuv6_bl/barebox/drivers/i2c/busses/i2c-imx.c:282:
undefined reference to `imx_get_i2cclk'
make[4]: *** [.tmp_barebox1] Error 1
make[3]: *** [CMakeFiles/bootloader] Error 2
make[2]: *** [CMakeFiles/bootloader.dir/all] Error 2
make[1]: *** [CMakeFiles/bootloader.dir/rule] Error 2
make: *** [bootloader] Error 2

I copied the following from the corresponding imx51 implementation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-22 07:15:03 +01:00
Alexander Shiyan c5c5d33469 i.MX51: Fix name definition for SSI3
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-20 14:08:59 +01:00
Alexander Shiyan 5d62a8bd93 i.MX27: Add support for SDHC1,3
imx27_add_mmc0 really registered SDHC2. Fix this by adding a
imx27_add_mmc1 and use this in the pca100 board file. Also add
imx27_add_mmc2 helper for register SDHC3.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-20 14:08:59 +01:00
Alexander Shiyan 6dd7f8ee7b i.MX27: Define base address for SDHC1,2,3
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-20 14:08:59 +01:00
Alexander Shiyan b705d3ca69 i.MX27: Use resigter name in imx27_add_fb
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-18 16:13:00 +01:00
Alexander Shiyan 105c276faa i.MX51: Remove GPIO2.6 setup from lowlevel_init
Remove GPIO2.6 setup from lowlevel_init. It can be defined in board
initialization code if it necessary.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-17 17:20:58 +01:00
Alexander Shiyan 4f600789c5 i.MX51: add support for UART3
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-17 17:18:28 +01:00
Sascha Hauer 33d1cc4bf2 commands: remove struct command pointer from commands
This is unused in all commands and thus can be removed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 20:28:07 +01:00
Eric Bénard 1270b11d95 i.MX53: enable pull up on I2C0 pins
this allows I2C to work on boards which don't have external pull up
(like LOCO board)

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 19:58:22 +01:00
Eric Bénard e27e6a24b8 i.MX53: add silicon revision functions
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 19:58:22 +01:00
Eric Bénard 64be852b89 add i2c clock support
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 19:58:22 +01:00
Sascha Hauer fa2539bf83 initial tqm53 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-13 11:50:04 +01:00
Sascha Hauer 54fc71251c ARM i.MX5: Allow to pass cpu clock to lowlevel init
Some variants of the i.MX53 do not allow to run at 1GHz, so
pass a cpu frequency parameter to the lowlevel init function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-13 11:38:39 +01:00
Sascha Hauer 3c30f3b971 mci i.MX esdhc: make 8bit modes platform dependent
Whether the controller works in 8bit mode is not only dependent
on the controller but also on the board having wired up 8 data
lines, so put a capabilities field in platform data.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-09 14:35:38 +01:00
Teresa Gámez a0d23c41d0 imx-ipu-fb: Add overlay support
Adding overlay support for i.MX3 sdc.

Foreground channel only works when background is also enabled.
The foreground video mode is always the same as the background.

Also added alpha command to set the alpha value of the foreground.

Tested on a phyCORE-i.MX35.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-23 09:38:27 +01:00
Teresa Gámez 688ed388ef video imx-ipu-fb: add num_modes to imx3 boards
Added num_modes to all imx_ipu_fb_platform_data structs.
Removed defines for pcm043 to choose display.
We may switch this during runtime now.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-23 09:38:27 +01:00
Teresa Gámez 7d61b58596 imx-ipu-fb: Add support for multiple video modes
Make support of multiple video modes possible for i.MX3 boards.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-23 09:38:26 +01:00
Sascha Hauer 16dc67a244 ARM eukrea i.MX51: use generic lowlevel init
The lowlevel init function was a 1:1 copy from the babbage
baord, so it should be safe to switch to the generic C
lowlevel init.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Eric Benard <eric@eukrea.com>
2012-01-02 15:00:28 +01:00
Sascha Hauer dafbbb84f3 ARM i.MX51 babbage: use generic lowlevel init function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-02 15:00:28 +01:00
Sascha Hauer e9cff5cb4a ARM i.MX51: implement a imx51_lowlevel_init
Reimplement the code from lowlevel.S in C. It is run
from SDRAM anyway, so we can safely do this initialization
in a regular barebox environment instead in Assembly.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-02 15:00:28 +01:00
Sascha Hauer 1679cebce7 ARM i.MX5: prepare to add a imx51_lowlevel_init
- move code which can be shared between i.MX53 and i.MX51
  to a common file
- rename mx53_init_lowlevel to imx53_init_lowlevel

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-02 15:00:27 +01:00
Sascha Hauer 1576bbd2a2 Merge branch 'pu/imx27-max' into next 2011-12-15 20:04:54 +01:00
Sascha Hauer 467a675626 Merge branch 'master' into next
Conflicts:
	arch/arm/boards/usb-a926x/init.c
	arch/arm/mach-pxa/include/mach/clock.h
	arch/arm/mach-pxa/speed-pxa27x.c

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-15 19:58:56 +01:00
Christian Hemp 11c137b901 imxfb: Add support for multiple video modes
Add all available video modes to the framebuffer. devinfo fb0
shows the available modes. We can select a mode now.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-13 11:32:43 +01:00
Eric Bénard 82e2a33f56 i.MX25: fix LD16 & LD17 iomux
without this, the pins seems to be opendrain and thus the LCD signals
are not properly driven leading to wrong colors on the screen.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-13 10:43:45 +01:00
Sascha Hauer bbe1404923 ARM i.MX27: initialize MAX
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-08 10:09:29 +01:00
Sascha Hauer 8145c67ff8 remove unused Kconfig variable HAS_CFI
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-07 13:04:54 +01:00
Jean-Christophe PLAGNIOL-VILLARD 2504dcd332 imx: add mx53 SMD board support
with:

 - uarts
 - sd and emmc
 - fec

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-05 17:57:38 +01:00
Jean-Christophe PLAGNIOL-VILLARD 521c8ff41e imx-esdhc: add support of card detect
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-05 17:57:38 +01:00
Jean-Christophe PLAGNIOL-VILLARD 133788546c mx53: fix devid for imx53_add_mmc1/2
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-05 17:57:38 +01:00
Sascha Hauer cf46bb52c6 ARM i.MX53: Adjust MMC clock frequencies to 200MHz
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-12-05 09:56:40 +01:00
Sascha Hauer 51845b0ce0 ARM i.MX boot: Add barebox_loc magicvar
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-29 20:51:32 +01:00
Sascha Hauer 41ee1923e6 Merge branch 'pu/imx53-nand-warning' 2011-11-22 21:09:01 +01:00
Sascha Hauer 2c0e3bb53a ARM i.MX53: silence compiler warning in nand.c
nand.c issues a warning when imx_nand_set_layout is
empty. We don't need this function on i.MX53, so
silence the warning.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-17 22:38:04 +01:00
Sascha Hauer 7c5f706f49 ARM i.MX53: enable l2 cache
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-02 15:36:19 +01:00
Sascha Hauer 7d5aee0467 Merge branch 'master' into next 2011-10-14 09:36:17 +02:00
Sascha Hauer a5257e9cde ARM i.MX53: Fix nand registration helper
We switched to resources recently and the nand controller
of the i.MX53 needs two of them, so fix the helper in the
same way as the i.MX51

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-13 17:27:19 +02:00
Sascha Hauer 64c1007a69 mtd nand i.MX: Add i.MX53 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-13 17:27:19 +02:00
Sascha Hauer 7caed07217 ARM i.MX53: sync iomux data with latest kernel
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-13 17:27:19 +02:00
Sascha Hauer 504d951ec3 ARM i.MX53 Loco: Use generic lowlevel init code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-13 17:27:19 +02:00
Sascha Hauer 2d6568b408 ARM i.MX53: Add lowlevel init code
This adds lowlevel (AIPS, PLL, L2) initialization for i.MX53 boards.
This is a direct transcription of Freescales U-Boot assembler code
with the exception that we initialize PLL1 with 1000MHz and assume
that all necessary voltages are already adjusted when we arrive here.

It must be explicitely called from the boards so a board is free to
do it's own initialization. However, boards should use this code
and make it more configurable if necessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-13 17:27:19 +02:00
Alexander Shiyan d9c41ea692 ID fix for mx51 SDHC2
Hello.

Please review this patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-12 10:28:57 +02:00
Sascha Hauer 597da1b76e Merge branch 'next' 2011-10-09 03:58:49 +02:00
Paul Fertser b47fcc9521 mach-imx: iim: cosmetic changes to the code to make it easier to follow
This brings consistency to the way variables are named and used
according to the Freescale documentation. Also, since user is
supplying row indicies, and not offsets, it's reasonable to amend the
error message accordingly.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-28 13:47:10 +02:00
Paul Fertser 3f21c6e8e4 mach-imx: iim: clarify documentation
This adds additional Kconfig help to clarify the way to use barebox
for eFuses handling.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-28 13:47:09 +02:00
Sascha Hauer 3ee7877a48 introduce io.h
To allow for some generic io accessors introduce io.h and use
this instead of asm/io.h throughout the tree.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-22 19:03:05 +02:00
Sascha Hauer 0972e837c3 i.MX NAND: pass second base address as resource
The nand controller on i.MX51/53 uses two base addresses. Instead
of hardcode the second address use the new shiny resources two specify
it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-21 09:59:36 +02:00
Paul Fertser 8c1f388d88 imx25: imx_spi: support CSPI v0.7 as found on i.MX25
Based on the Linux driver. Tested with m25p80 with CS in GPIO mode.

Clock setting support is ad-hoc as the corresponding mach is not using
the generic clock infrastructure.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-21 09:43:44 +02:00
Alexander Shiyan 57a88d90be Add 600Mhz freq defines for MX51
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-19 12:05:11 +02:00
Alexander Shiyan 2afeae741f Add WEIM registers for MX51
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-19 12:04:38 +02:00
Alexander Shiyan 32a42f98a3 Add "imx_get_i2cclk" for MX51
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-19 12:03:47 +02:00
Sascha Hauer e8d4f5a393 Merge branch 'next' 2011-08-26 16:24:56 +02:00
Paul Fertser 3f4eb716c4 iomux-mx25: fix MDIO pin configuration
According to the datasheet, PUE is not effective without PKE set.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-25 11:52:47 +02:00
Sascha Hauer a4c4c4ff30 ARM i.MX51: fix SD1/2 iomux pads
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 19:48:40 +02:00
Sascha Hauer aa4ff5606b ARM i.MX27: Add spi2 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-24 19:44:06 +02:00
Sascha Hauer 5067d9bcb1 ARM i.MX51: set barebox_loc according to boot source
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
Sascha Hauer d29842a5e0 ARM i.MX25/35: initialize barebox_loc earlier
Now that env_push_context is in a coredevice_initcall
we can initialize barebox_loc earlier so that we can
use it inside later initcalls.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
shc@milas.spb.ru ddbbeee822 I2C support to PCM-038 board
Sascha Hauer <s.hauer@pengutronix.de> wrote ..
> On Thu, Aug 11, 2011 at 02:37:05PM +0400, Alexander Shiyan wrote:
> > Hello.
> >
> > Please review and apply this simple patch.
...
> Please remove the #ifdef CONFIG_I2C
OK.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:34:55 +02:00
Sascha Hauer 8ddfe5911d ARM i.MX51: Fix gpio1 base address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 10:50:16 +02:00
Sascha Hauer 43ebdba64a remove now unnecessary HAVE_MMU from Kconfig
MMU now can be enabled on every ARM board, so remove
the dependency.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:12:16 +02:00
Marc Kleine-Budde 5ba0502901 arm: add support for the i.MX53 loco board
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Marc Kleine-Budde 9eaaf1b1ca ARM: add support for the i.MX53
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Marc Kleine-Budde 672b286a7f mx51: rename clock-imx51.h -> clock-imx51_53.h
...and update all users. The header file can be used on mx51 and mx53.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Sascha Hauer a6aefdeaee Merge branches 'pu-ethaddr', 'pu-fec', 'pu-imx-iim', 'pu-resources' and 'pu-resources1' into next 2011-07-29 12:09:58 +02:00
Sascha Hauer 3d9cd14232 ARM i.MX27: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer 9abfd82817 ARM i.MX IIM: switch to resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer 1bb8f6b047 ARM i.MX51: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer b42dca2df0 ARM i.MX31: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer afa4bff41f ARM i.MX35: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer cd8ab7bd54 ARM i.MX25 IIM: switch IIM support to use resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 4e8a62ac61 ARM i.MX IIM: Make explicit sensing the default
The register based fuse readout is not available on i.MX27/31
SoCs, so make explicit sensing the default.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 97c37f4014 ARM i.MX IIM: add support for more SoCs
Do not depend on the specific SoCs for the IIM module, but
instead exclude the one that don't have this unit.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 6b07e264e6 ARM i.MX: IIM rework
The IIM module uses two drivers, one for the general IIM
module and one for the individual banks.
This patch turns this into a single driver to ease registration
of the resources. This changes the user visible behaviour in
the way that the explicit_sense_enable and permanent_write_enable
device parameters are no longer bank specific but for the
whole device. Also, the IIM module supports a maximum of
8 fuse banks, with these patch all of them are registered, even
if they are not present in a SoC.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 2fd4fa2e99 ARM i.MX: rework IIM MAC address setting
Switch to the generic way of setting a MAC address for a
device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer fee474a22e ARM i.MX IIM: Add a iim read function
To allow reading the iim from code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer ffcf536cef Merge branch 'pu' into next 2011-07-29 12:03:40 +02:00
Sascha Hauer 5fa7a0e786 ARM i.MX: Add missing cpu_is_mx53()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:03:08 +02:00
Sascha Hauer c263809afe ARM i.MX scb9328: create uart registration helpers and use them
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Sascha Hauer 3f57a5e5a5 ARM i.MX35: Fix bogus L2 cache settings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-25 09:59:57 +02:00
Jean-Christophe PLAGNIOL-VILLARD 826708d5d8 imx/devices: switch to add_generic_device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-23 09:22:50 +08:00
Sascha Hauer d25d0d7293 i.MX devices: convert to struct resource
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-19 00:12:53 +08:00
Eric Bénard c28dbd811e add eukrea_cpuimx51 board
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Eric Bénard d66c359396 iomux-mx51: add more pins definitions
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Sascha Hauer 5fb8333d34 ARM i.MX: cleanup boot modes
The i.MX Processors support two different boot modes, the internal
boot mode and the external boot mode. Traditionally the external
NAND boot mode is handled in drivers/mtd/nand and the internal
boot mode is handled in arch/arm/mach-imx. This patch consolidates
the handling of both boot modes in arch/arm/mach-imx so that
the user does not have to look in the mtd kconfig section for
booting from NAND. Also, selecting between internal and external
boot mode now is a clear choice.
The external NAND boot mode has been independent of the mtd nand
driver, but as the code was contained in the NAND driver it was
not possible to support booting from NAND without a mtd nand driver.
This is changed with this patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:57 +01:00
Sascha Hauer 9b9e670650 initial karo tx25 board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Sascha Hauer af7f5e1ca9 ARM i.MX esdctl: Add some missing bitfields
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Sascha Hauer 9d0fe5f73c ARM i.MX: sync i.MX25 iomux support with kernel
At least partly. We have pads in barebox that we do
not have in the kernel. Also, this with this patch we
do not set the sion bit which the kernel does.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:52 +01:00
Robert Schwebel 90613cd09a tx28: fix kconfig warning
Without this patch (against next) I get this:

rsc@thebe:barebox$ make ARCH=arm CROSS_COMPILE=<path>/arm-v5te-linux-gnueabi- menuconfig
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/mconf.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
warning: (ARCH_IMX25 && ARCH_IMX27 && ARCH_IMX35 && ARCH_IMX51 && ARCH_IMX28) selects ARCH_HAS_FEC_IMX which has unmet direct dependencies (ARCH_IMX)
warning: (ARCH_IMX25 && ARCH_IMX27 && ARCH_IMX35 && ARCH_IMX51 && ARCH_IMX28) selects ARCH_HAS_FEC_IMX which has unmet direct dependencies (ARCH_IMX)

Add the option for the FEC on MX28 as well.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-10 08:16:47 +01:00
Marc Reilly 1a0ddc54ef imx: add reg definitions for imx25 and imx35 boot source.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 09:42:34 +01:00
Marc Reilly c69f625a71 imx(25,35): save boot location into $barebox_loc env.
Saves the boot source into an environment variable so env scripts
can more easily use boot source information.

Note only tested on imx35. I haven't added support for any other variants
because I'm not familiar with them. (And can't test them anyway).

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:37:23 +01:00
Sascha Hauer 2f0109b1bb Merge branch 'master' into next 2011-01-17 09:43:40 +01:00
Marc Reilly 9345851a60 imx: add reg definitions for imx25 and imx35 boot source.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-10 20:04:34 +01:00
Sascha Hauer 3d0f543b83 i.MX nand: do not select NAND_IMX_BOOT
NAND_IMX_BOOT is related to the external boot mode, so do not
select it when using internal boot mode.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 11:39:08 +01:00
Sascha Hauer 99afef48a4 add to speed
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 11:35:14 +01:00
Sascha Hauer eec1c582b8 i.MX: fix printf compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 10:37:18 +01:00
Marc Reilly 2d92d08db8 Put the explicit flash header sections back in.
This (re)enables boards to have multiple boot headers so that the one
image can be used for booting from multiple boot sources.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-05 10:29:29 +01:00
Juergen Beisert b70873a219 IMX: Ignore i.MX23/i.MX28 related code in shared devices
At least the FEC and the CAN controller drivers can also be used by the i.MX28.
When still used by IMX, the i.MX28 (and maybe i.MX23) related code must be
ignored.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-14 15:15:06 +01:00
Marc Reilly cebd35e4e8 imx: add IMX_GPIO_NR macro.
Simplifies specifying gpio numbers from bank/number info.
From linux kernel.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-12 09:26:25 +01:00
Jean-Christophe PLAGNIOL-VILLARD f69626c632 clocksource: switch mask to CLOCKSOURCE_MASK
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-29 21:55:25 +01:00
Sascha Hauer 820873b5d6 i.MX device macros: Fix esdhci
The patch introducing device macros for i.MX accidently registered a
imx-mmc device for i.MX25/35/51. It should be a imx-esdhc device. This
patch fixes tis

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-18 09:14:08 +01:00
Marek Belisko b960023b46 pcm037: Fix compilation warning.
This patch fix following compilation warning:
../devices-imx31.h: In function 'imx31_add_fb':
../devices-imx31.h:34: warning: passing argument 2 of 'imx_add_ipufb'
from incompatible pointer type

Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-15 09:20:47 +01:00
Sascha Hauer f99b1d38ee ARM i.MX51: Add nand device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-12 08:08:02 +01:00
Sascha Hauer ce15c024c1 imx nand: Add v3 (i.MX51) support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-12 08:08:02 +01:00
Sascha Hauer 6a84a019ab i.MX device macros: Fix typo
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-10 10:46:03 +01:00
Sascha Hauer 20d03fd82a ARM i.MX35: Add IPU base address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-02 18:11:08 +01:00
Sascha Hauer 27925ee7fb ARM i.MX: Add header protection
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-02 18:11:07 +01:00
Sascha Hauer e4aaf7f27f ARM i.MX: Add device convenience functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-02 18:11:03 +01:00
Sascha Hauer aaf125fa81 ARM i.MX51: Add SPBA0 base addresses
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-02 18:11:03 +01:00
Sascha Hauer 4bfc616111 ARM i.MX27: remove duplicated defines
The esdctl regs are now in a seperate header file, so remove the
duplicates from imx27-regs.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-02 17:55:17 +01:00
Robert Schwebel 724d3d8672 reset_cpu: unify declaration
include/common.h declares this as "unsigned long addr", so we unify it.
This also silences a doxygen warning.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 20:47:02 +02:00
Sascha Hauer e722ea0201 ARM: Add Garz+Fricke Cupid board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 19:32:10 +02:00
Sascha Hauer a930314251 i.MX35 regs: Add watchdog base
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 19:31:57 +02:00
Sascha Hauer db194e3724 i.MX esdctl: Add register bits from redboot
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 19:31:57 +02:00
Sascha Hauer 798a2188a5 i.MX51: Fix mmcclk rate
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 19:31:57 +02:00
Sascha Hauer 107a1ec2cc i.MX speed: add missing include
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:25 +02:00
Sascha Hauer 87982ae7a5 imx-nand: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:24 +02:00
Sascha Hauer f81edffe0e i.MX remove wdog registers from header files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:24 +02:00
Sascha Hauer 3b1e59e2c4 imx_dump_clocks: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:24 +02:00
Sascha Hauer e91b511587 speed-imx35: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:24 +02:00
Sascha Hauer 488e2c3d79 imx clocksource: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:23 +02:00
Sascha Hauer 9702299b42 imx gpio: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:23 +02:00
Eric Bénard b6a68cf1b5 i.MX25 & 35 usb config bits : create mach/usb.h
as suggested by Baruch Siach

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 21:08:22 +02:00
Eric Bénard 220eec272b iomux-mx35: fox IOMUX for SDHC1's pins
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:02 +02:00
Eric Bénard f1bb21aa4f speed-imx35: add support for SDHC1
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:02 +02:00
Eric Bénard 962d8b89d2 imx35-regs: add defines for USB and SD
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:02 +02:00
Eric Bénard 5842345358 MX25: fix IOMUX for ESDHC1 pins
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 13:07:14 +02:00
Eric Bénard 46a19d3ddd mx25: add MMC clock support
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 13:07:14 +02:00
Eric Bénard 049d7a6fa5 imx/clocksource: enable GPT1 before using it on CPUIMX25
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-13 22:34:35 +02:00
Sascha Hauer f550cfe4e1 ARM i.MX51: Add babbage board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:14 +02:00
Sascha Hauer fbad06735b ARM i.MX: Add basic i.MX51 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:14 +02:00
Sascha Hauer e1cd8358d5 i.MX27: Add support for SDHC pins
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:10:39 +02:00
Sascha Hauer 5d502f0a7a i.MX27: Add mmc clock support in order to add an i.MX MCI driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Juergen Beisert <jbe@pengutronix.de>
2010-10-11 13:08:27 +02:00
Jean-Christophe PLAGNIOL-VILLARD 656f0370c1 imx: fix Internal boot source default choice
via
default ARCH_IMX_INTERNAL_BOOT_NAND

and not default y on ARCH_IMX_INTERNAL_BOOT_NAND

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-04 08:35:49 +02:00
Marc Reilly 5785072b37 imx: Internal boot sources, handle all header offsets
Makes the internal boot source configurable.
Also changes section names slightly so that .flash_header_0x1000 isn't
matched to .flash_header_0x100* etc.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:14 +02:00
Marc Reilly 056dd7906f imx35: add base addresses for I2C and SDHC
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:10 +02:00
Juergen Beisert 683e4ef357 Fix watchdog's register size for the i.MX27 CPU
commit 5bd9c57d575126448c7d325547538a55e5cd81d6
Author: Juergen Beisert <jbe@pengutronix.de>
Date:   Fri Sep 24 14:51:42 2010 +0200

    Fix watchdog's register size for the i.MX27 CPU

    The watchdog registers on the i.MX27 CPU are 16 bit registers. This patch
    just fixes the access macro.

    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:23:34 +02:00
Jean-Christophe PLAGNIOL-VILLARD c16ec1f886 imx/fb: struct imx_ipu_fb_platform_data remove const for mode
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD e85c6bb0a7 driver: use id as -1 for auto assigned id
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>
2010-09-20 08:58:52 +02:00
Jean-Christophe PLAGNIOL-VILLARD 44597cd8b3 i2c rename CONFIG_DRIVER_I2C_xx to CONFIG_I2C_xx
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-17 10:56:24 +08:00
Sascha Hauer c52f80cc89 Add missing include
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-22 12:08:10 +02:00
Baruch Siach fb3c39ea75 iim/imx25: fix MAC and UID offsets
IIM_UID and IIM_MAC_ADDR are now fixed addresses.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:21:26 +02:00
Baruch Siach afd8638962 imx25: add iim platform code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:21:26 +02:00
Baruch Siach fc51e779d9 imx25: add chip specific IIM fusebox defines
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:21:26 +02:00
Baruch Siach 4d3234fd67 imx iim: add mac address support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:21:25 +02:00
Baruch Siach 5ccbeb3141 imx: driver for the IIM fusebox
This driver provides an interface for programming and sensing the IIM fusebox
which is present on some i.MX chips.

Since the IIM io addresses of the controlling registers and each fuse bank are
are not contiguous the driver implementation uses two drivers, imx_iim, and
imx_iim_bank.  The imx_iim is the "parent" driver for a device holding the
map_base address of the control registers.  The imx_iim_bank driver is for
child devices holding the map_base of each fuse bank.  The platform code then,
instantiate one imx_iim_bank device per fuse bank.

Fuses blow is a dangerous operation. Thus, the fuses blow functionality can be
disabled independently at configuration time. On run time this functionality
must be enabled explicitly by setting the permanent_write_enable parameter.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:21:17 +02:00
Baruch Siach 2f1a1e6a88 imx: move IIM registers to their own header
This allows the use of IIM registers from code which is not mx35 specific.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-17 10:20:09 +02:00
Baruch Siach 5114582e52 imx25: fix UID endianess
Apparently, the UID is little-endian. Reverse endianess, and add a note in
comment.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-04 10:17:27 +02:00
Baruch Siach 8d657541aa imx25: add support for UID read from eFuse
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-04 09:28:15 +02:00
Sascha Hauer 75f99628fc Add Garz+Fricke Neso support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 12:53:44 +02:00
Eric Bénard c26f09b2c1 imx-ipu-fb: Add board specific hook to enable display
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-30 09:10:35 +02:00
Sascha Hauer f2f02d5ba9 i.MX27: Add some missing device base addresses
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:37:16 +02:00
Sascha Hauer c38883953d i.MX clocksource: Use readl/writel instead of pointer deref
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:53 +02:00
Sascha Hauer 695a4247aa imxfb: Add board specific hook to enable display
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:17 +02:00
Sascha Hauer 6c5f1c0fdf i.MX27: merge iomux pim definitions from kernel
The Kernel pin definitions are more complete and up to date. Being
here we also use seperate files for the iomuxer like the other
i.MX SoCs already do.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:11 +02:00
Sascha Hauer 9c827f121a pcm037: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:30:38 +02:00
Sascha Hauer f7c02aea7b Merge branch 'net' into next 2010-06-17 08:29:09 +02:00
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
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
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 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
Sascha Hauer f2abce5336 Merge branch 'next' 2010-06-03 13:06:39 +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 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
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
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 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
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
Ivo Clarysse 2b7effde81 i.MX21: support framebuffer
This patch allows using the i.MX (LCDC) framebuffer driver on boards
using an i.MX21 SoC.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-02 12:07:56 +02:00
Sascha Hauer c1894b4bc7 Merge branch 'pu' into next 2010-04-02 12:07:48 +02:00
Sascha Hauer 844ca16e1f pcm043: enable l2x0 cache
Also, initialize the MMU in a postcore_initcall to enable
it earlier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer e11c07c339 make reset_cpu a __noreturn function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer c6cdbe71c9 Merge branch 'master' into next 2010-03-22 09:20:34 +01:00
Eric Benard ce2411432e i.MX25 : fix define name for clock frequency
CONFIG_MX35_HCLK_FREQ -> CONFIG_MX25_HCLK_FREQ

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-22 09:20:07 +01:00
Eric Benard 994f82bf9a i.MX25 : change IOMUX for LD16 and LD17
This allows the iomux to reconfigure these pins which are opendrain at
power on and thus can't drive the LCD.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-22 08:35:01 +01:00
Eric Benard 8d6577aeb2 i.MX25 : add lcdc clock support
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-22 08:35:01 +01:00
Sascha Hauer 6cbf70a01a Merge branch 'pu' 2010-02-01 17:25:59 +01:00
Sascha Hauer 7d3da14a7e i.MX: select armv6 for i.MX31/35
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 922bb41a47 remove typedef cmd_tbl_t and replace it with struct command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Juergen Beisert e4ee34a829 i.MX35: Fix pad control bit positions
Using these macros simplify the configuration for special GPIO usage. But they
should use correct bit positions for usage in the IOMUX_PAD() macro.

Note: These are the bit positions of the i.MX35 CPU. Not checked for the other
i.MX3x CPUs.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 16:28:06 +01:00
Sascha Hauer 7ca411ecd2 Merge branch 'next' 2010-02-01 16:16:12 +01:00
Ivo Clarysse 512a1c80ce Fix nand_imx for i.MX21
Recent changes to the nand_imx driver broke it for i.MX21 systems;
the i.MX21 NAND controller is more akin to the one in i.MX27/i.MX31,
than to the one in i.MX25/i.MX35.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-29 09:33:02 +01:00
Eric Benard 21a9d8d87e Add necessary clocks & defines to get I2C support for i.MX27
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-16 12:32:34 +01:00
Sascha Hauer d8bb33b1c2 imx ipu fb: Make fb_videomode const
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer 44738ee7ae i.MX35 3stack: select I2C drivers
Building i.MX35 3stack support without the I2C drivers
does not make much sense as the board will trigger a
watchdog timer soon after start.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-17 13:34:55 +01:00
Sascha Hauer a3ffa97f40 rename U-Boot-v2 project to barebox
This has been done with the following script:

find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
	-e 's/u2boot/barebox/g' \
	-e 's/U2Boot/barebox/g' \
	-e 's/U-boot V2/barebox/g' \
	-e 's/u-boot v2/barebox/g' \
	-e 's/U-Boot V2/barebox/g' \
	-e 's/U-Boot-v2/barebox/g' \
	-e 's/U_BOOT/BAREBOX/g' \
	-e 's/UBOOT/BAREBOX/g' \
	-e 's/uboot/barebox/g' \
	-e 's/u-boot/barebox/g' \
	-e 's/u_boot/barebox/g' \
	-e 's/U-Boot/barebox/g' \
	-e 's/U-boot/barebox/g' \
	-e 's/U-BOOT/barebox/g'

find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
	xargs -0 -r rename 's/u[-_]?boot/barebox/'

It needs some manual fixup following in the next patch

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Sascha Hauer 21b12270f8 i.MX Nand: fix bit clearing
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:02 +01:00
Sascha Hauer 3111655cb1 i.MX31: Fix CCM_UPCTL register offset
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 4300cd1729 pcm043: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 85520cc9f6 pcm043: add display support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer f601b74d01 complete i.MX GPIO support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 6bd5caf6c6 i.MX: split out iomux-v1 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Juergen nogit Beisert 4f24fe1b52 fb: Add a i.MX IPU framebuffer driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-09 17:05:55 +01:00
Eric Benard cf6399b2aa Fix imx_nand_set_layout for i.MX27
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>
2009-12-09 15:35:22 +01:00
Sascha Hauer d870137a17 i.MX flash header: make it work on i.MX35
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>
2009-12-03 11:12:51 +01:00
Sascha Hauer 6986aa092e i.MX Nand: Set correct datawidth/pagesize in CCM module
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:47 +01:00
Eric Benard 4b3e650d10 Eukrea CPUIMX27 : Add MMU support
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:23 +01:00
Eric Benard 2adeb59c22 Eukrea CPUIMX27 : add console on Quad UART support
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>
2009-12-03 10:46:18 +01:00
Eric Benard c24fa6b117 Eukrea CPUIMX27 : add NOR flash size configuration
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>
2009-12-03 10:46:13 +01:00
Eric Benard bf33c69764 Eukrea CPUIMX27 : add SDRAM size choice
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>
2009-12-03 10:46:09 +01:00
Juergen Beisert 81b044f3b6 Adding IPU clock query functions for i.MX31 and i.MX35
Adding IPU clock query functions for i.MX31 and i.MX35
(used to generate their LCD timing).

BTW: All functions are declared with the 'ulong' return type, but some are
defined with 'unsigned long'. And yes, its the same, but IMHO one type should
be used for all.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-25 08:29:40 +01:00
Juergen Beisert 19b98a87fc Adding some documentation
Add some (helpful?) comments about the meaning of 'framebuffer' and
'framebuffer_ovl' structure members.

Signed-off-by: Juergenn Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-25 08:29:40 +01:00
Marc Kleine-Budde 1177321b22 imx35-regs: add CGR1 helper values
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:31 +01:00
Marc Kleine-Budde 3d381d7955 imx35-regs: add base address for I2C1
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:31 +01:00
Marc Kleine-Budde 8dd761338f imx-regs: define IMX_FEC_BASE
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:30 +01:00
Marc Kleine-Budde 590fa6e29c speed-imx35: add function imx_get_i2cclk
Because i2c is connected to ipg_perclk om MX35 it's calls
imx_get_ipg_perclk().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:30 +01:00
Marc Kleine-Budde bb3f431deb speed-imx35: the gptclk is connected to the ipgclk
The gpt clock on MX35 is connected to the ipg clock. But the
implementation uses the ipg_per clock.

This patch lets the gpt use the ipg clock and introduces the
ipg_per clock.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:30 +01:00
Jean-Christophe PLAGNIOL-VILLARD bab3a3b976 arm: introduce CPU CONFIG from linux
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:45:55 +01:00
Jean-Christophe PLAGNIOL-VILLARD 49c95cf86a arm: move config ARCH_TEXT_BASE and BOARDINFO to mach Kconfig
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 6e8345fc68 imx/kconfig: inverse the board selection
instead of select first the board which will select the arch, now
first choice the arch to filter the possible boards

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Sascha Hauer 78c8011603 i.MX1: do not try to print non existent reg CID
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:19:36 +01:00
Sascha Hauer e05858f009 i.MX21: fix compiler warning
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:19:10 +01:00
Sascha Hauer 40a5f3de4e Merge branch 'for-sascha' of git://uboot.jcrosoft.org/u-boot-v2 into from-jean
Conflicts:
	board/a9m2440/a9m2440.c
	board/pcm043/pcm043.c
	drivers/nand/nand_imx.c

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:10:56 +01:00
Jean-Christophe PLAGNIOL-VILLARD f6a579da9c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:25 +02:00
Sascha Hauer 420a3173f0 commands: remove maxargs
No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 16:18:33 +02:00
Sascha Hauer 63e01b4969 call getopt_reset only once
instead of calling getopt_reset in each command,
call it only once before calling the command.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer 87e01f28cc commands: return COMMAND_ERROR_USAGE
instead of calling u_boot_cmd_usage in each command to safe
space.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer d13f32d50a imx: replace imx specific gpio functions with generic ones
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-02 15:34:03 +02:00
Sascha Hauer 24c51dfb3a mx25: remove duplicate function, fix perclk values
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:11 +02:00
Sascha Hauer 6e44db23fe mx25: implement clko command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:06 +02:00
Sascha Hauer 13d3db22d3 Add MX25 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer 222abdccec i.MX: Use more accurate decode pll function from kernel
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:51 +02:00
Sascha Hauer ef523775df i.MX: Do not dump clocks on startup.
Instead, add a command dump_clocks to print the clocks during
runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:52:00 +02:00
Jan Weitzel d36dd1dcc4 i.mx35 fix clock calc
u-boot-2.0.0-rc8
Correct arm and ahb clock calculation.
Write CLKO divider to register

Signed-off-by: Andreas Adam <A.Adam@phytec.de>
Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-03 10:23:29 +02:00
Sascha Hauer 9e3f6a8bbc mx27: Add lcd clock function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-30 16:09:10 +02:00
Luotao Fu 50cbe3e0fc IMX regression: fix GPIO_DR usage
GPIO_DR ist defined already as GPIO_GPIO in imx-regs.h. There's no need to
define archdependent GPIO_DR. This one fixes a regression brought in by
d5ec92129e

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-08 12:27:56 +02:00
Juergen Beisert 2148865ac9 Reorganizing the i.MX menu, to be only visible for a selected i.MX platform
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:13:16 +02:00
Luotao Fu d5ec92129e mx2: add gpio direction/value setting calls
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
2009-06-25 16:20:26 +02:00
Sascha Hauer df14bf29e0 i.MX1: Fix gpt clock speed
got broken in commit:

commit 309a75baaf
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Fri Feb 20 18:14:52 2009 +0100

    i.MX use fecclk for fec and gtpclk for gpt

    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-25 16:53:30 +02:00
Sascha Hauer 3658177775 i.MX35: Add iomux support from kernel
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-19 12:30:42 +02:00
Sascha Hauer a3c3f66abc imx clocksource: add frequency change support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-13 16:01:58 +02:00
Ivo Clarysse e404e46b32 i.MX21: Fixes HCLK decoding for i.MX21, reports NFC clock
Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 11:01:15 +02:00
Ivo Clarysse fcfbd10d3c Add Freescale i.MX21 support
Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 08:55:04 +02:00