9
0
Fork 0
Commit Graph

1322 Commits

Author SHA1 Message Date
Alexander Shiyan 0c0fad4942 ARM i.MX51 eukrea_cpuimx51: Remove unused include
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 09:20:42 +02:00
Alexander Shiyan ce4dd8130e ARM i.MX51 babbage: Remove clock raise from power_init.
Because CPU frequency setup called after power initialization,
this call now is not necessary.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-04-02 09:20:42 +02:00
Sascha Hauer 485cee59cf Merge branch 'work/imx51-babbage-clk' into next 2012-03-23 21:22:14 +01:00
Sascha Hauer bbcb301fc2 Merge branch 'work/imx-dcd-size' into next 2012-03-23 21:21:43 +01:00
Asen Chavdarov Dimov 184641ac49 pm9g45: enable USB OHCI host and USB mass storage
FIXME: execute the "usb" command twice to create the /dev/disk0 device.

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 15:12:46 +01:00
Asen Chavdarov Dimov 80547608a2 pm9g45: enable MCI0
FIXME: part of or no data is written. File copy ends
with message: "atmel_mci@atmel_mci0: command/data timeout"

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 15:12:46 +01:00
Asen Chavdarov Dimov 1be31b5229 pm9g45: fix Ethernet
Enable PHY clock.

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 15:12:46 +01:00
Asen Chavdarov Dimov ea4222c942 pm9g45: boot from NAND
- change the kernel and rootfs locations
- correct the NAND mtd partitions
- fix the DDR RAM location(so BareBox load address)
- expect the root file system type to be UBIFS

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 15:12:46 +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 c326cccdf8 ARM i.MX51 babbage: move lowlevel setup after power init
The imx51 lowlevel setup code currently sets the full cpu
speed only for TO3. It turned out that this is not a TO
specific hack but a hack for older babbage boards. Move
the lowlevel init after babbage_power_init() so that we
can remove the hack from the generic i.MX51 lowlevel
function. As this potentially changes the UART clock we
have to flush the console beforehand and call the clock
notifier afterwards.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-23 11:21:19 +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 36bfa7b2a7 ARM linker script: Fix barebox_image_size
barebox_image_size was calculated wrong when PRE_IMAGE is defined.
In this case _text does not refer to the binary image start. We
have to use TEXT_BASE here.

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
Sascha Hauer d8ce4acc9f defenv: remove bogus defaultenv from defconfigs
When CONFIG_DEFAULT_ENVIRONMENT_GENERIC is set the Make system
will automatically compile in defaultenv/ into the environment. Some
boards explicitely add this path again in their defconfig which is
not needed. Remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-20 14:15:36 +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 a5433315df Use mx53-related functions for i.MX53 boards
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-18 16:15:19 +01:00
Alexander Shiyan fdc9dd6fb6 Use register names for MC13892
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-18 16:13:34 +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
Jean-Christophe PLAGNIOL-VILLARD 495dffdaa5 at91: set dhcp vendor id on Atmel Reference board
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-17 17:20:18 +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
Teresa Gámez 5f97fbb3bc pcm049_xload_defconfig: activate Thumb-2 support
To reduce the size of the MLO we have to activate thumb-2 support.
Otherwise the board will not boot.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-15 20:55:07 +01:00
Teresa Gámez 1bdce4699f devices-gpmc-nand: Add OMAP4 gpmc nand timings
Add a OMAP4 specific GMPC nand config for pcm049 and phyCARD-A-XL2 to increase
performance. Also add the possiblility to pass a board GPMC nand config.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-15 20:55:07 +01:00
Teresa Gámez b071db2367 pcm049: Update GPMC net conf
Updated GPMC settings for ethernet to increase performance.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-15 20:55:07 +01:00
Teresa Gámez 1e49da2905 pcm049: Update muxing
Update muxing setup for phyCORE-OMAP4.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-15 20:55:07 +01:00
Teresa Gámez 1486c07a97 pcm049: Update RAM timings
Updated RAM Timings for phyCORE-OMAP4.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-15 20:55:07 +01:00
Teresa Gámez aaf02c6b41 pcm038: increase size of barebox partition
The image built with pcm038_defconfig is >256k so increase
the size of the barebox partition.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-15 20:51:16 +01:00
Sascha Hauer d2fe785465 Merge remote-tracking branch 'jean/at91-update' into next 2012-03-14 20:27:42 +01:00
Jan Weitzel a2f567f3a9 ENV: remove kernelimage_type from env/config
drop kernelimage_type bootm now boots all of them.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-13 13:36:30 +01:00
Jan Weitzel ef00106960 omap: add support for phycard-a-xl2
Support for omap4 based Phytec phyCARD-A-XL2 board

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-13 13:35:25 +01:00
Michael Grzeschik baa23057c5 imx_nand_load_image: change all users to use barebox_image_size
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-13 13:22:27 +01:00
Jean-Christophe PLAGNIOL-VILLARD b3910b1b3e at91sam9260ek/9g20ek: update defconfig
- enable MMU support
 - set max size to 256KiB

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:52:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 21fb88eae7 at91sam9m10g45ek: update defconfig
- use tslf
 - bootm: enable oftree and uimage support
 - enable mmu support
 - drop cfi support (no nor on the board)

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:47:15 +08:00
Jean-Christophe PLAGNIOL-VILLARD 28c8303d9e at91sam9m10g45ek: add leds support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:47:15 +08:00
Jean-Christophe PLAGNIOL-VILLARD f52461431a at91sam9m10g45ek: update partition layout
This will allow to boot from nand with the bootstrap.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:47:15 +08:00
Jean-Christophe PLAGNIOL-VILLARD 3558cd06b5 at91sam9261ek/9g10ek: update board supprt
update fancy prompt to be the same as the other Atmel board
 use the same feature on 9g10ek and 9261ek

 - use tlsf
 - enable MMU
 - set max size to 256KiB
 - bootm: add initrd support
 - nand: drop non used hw ecc and oob device

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:47:13 +08:00
Jean-Christophe PLAGNIOL-VILLARD 65480192e6 at91sam9261ek/9g10ek: add gpio Keyboard support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:32:53 +08:00
Jean-Christophe PLAGNIOL-VILLARD 85f5d9645d at91sam9261ek/9g10ek: add dfu and usb serial support
if bp3 is pressed 5s during boot enable dfu otherwise usbserial

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 18:03:14 +08:00
Jean-Christophe PLAGNIOL-VILLARD 2607cac17b at91sam9261ek/9g10ek: add leds support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 17:59:16 +08:00
Jean-Christophe PLAGNIOL-VILLARD 7c386efb39 at91sam9261ek/9g10ek: update partition layout
Update partition layout to be able to boot from nand with the bootstrap.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 17:59:07 +08:00
Jean-Christophe PLAGNIOL-VILLARD aebd740757 at91sam9263ek: update defconfig
- set max size to 256KiB
 - enable MMU
 - bootm: enable oftree and initrd support
 - nand: drop non used hw ecc

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 17:59:07 +08:00
Jean-Christophe PLAGNIOL-VILLARD a889694323 at91sam9263ek: add dfu and usb serial support
if left_click is pressed 5s during boot enable dfu otherwise usbserial

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 17:59:07 +08:00
Jean-Christophe PLAGNIOL-VILLARD 14f301af85 at91sam9263ek: add leds support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 17:59:07 +08:00
Jean-Christophe PLAGNIOL-VILLARD fc0b8fb688 at91sam9263ek: add runtime nor detection
most of the board does not have a nor soldered

update the nand partition table to boot from nand with bootstrap

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-03-12 17:59:06 +08:00
Jan Weitzel 4cf35a6c6d omap: move do_set_mux to omap4_generic
do_set_mux is used by two boards.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-07 09:55:45 +01:00
Jan Weitzel f3ef74832a omap: move scale_vcores to omap4_generic
scale_vcores is used by two boards.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-07 09:55:45 +01:00
Sascha Hauer fea997985c Merge branch 'next' 2012-03-06 10:10:36 +01:00
Sascha Hauer beb36c510b Merge branch 'work/thumb2' into next 2012-03-06 09:39:59 +01:00
Sascha Hauer 276252a559 ARM: use unconditional branch in exception vectors
If we want to trap the processer in the exception vectors
we have to use unconditional branch instructions. I don't
know what I thought when using bne :-/

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-06 09:38:41 +01:00
Sascha Hauer 104a6a7ccf ARM: Allow to compile in thumb-2 mode
This shrinks the resulting binary size by ~25%. Exceptions
are still handled in arm mode, so we have to explicitely
put .arm directives into the exception code. Thumb-2 mode
has been tested on i.MX51 Babbage board.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-06 09:37:59 +01:00
Jan Weitzel e0d674735b mach-omap: add HAS_DEBUG_LL
Add support for debug_ll

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-05 18:13:00 +01:00
Teresa Gámez 6628b5efe8 pca-a-l1: remove duplicate includes
Removed duplicate includes from phyCARD-A-L1 board code.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-04 13:00:43 +01:00
Sascha Hauer 8876de1854 Merge branch 'pu/command' into next 2012-02-29 08:29:52 +01:00
Robert Jarzmik ff79f7a41c arm/mach-pxa: add mioa701 board
Add Mitac MioA701 board initial support.
The support provides basic boot and :
 - a console over USB (serial gadget).
 - the SD card support
 - the MTD docg3 support
 - the LCD support

Add a check in the default environment for a barebox.env
file on the first partition (FAT). If the file exists,
source it instead of the normal boot procedure.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-29 08:28:20 +01:00
Sascha Hauer cb1bd905dc ARM: get runtime offset of board_init_lowlevel_return by using separate section
We used to get the runtime offset of the board_init_lowlevel_return
by doing a &board_init_lowlevel_return. This does not work in thumb-2
mode, so use a separate linker section for this function instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-28 09:55:04 +01:00
Sascha Hauer 2c2d00a281 ARM: move exception vectors away from start of binary
Traditionally U-Boot and barebox have the exception vectors at
the start of the binary. There is no real reason in doing so,
because in the majority of cases this data will not be at 0x0
where it could be used as vectors directly anyway.
This patch puts the vectors into a separate linker section and
defines an head function which is placed at the start of the
image instead. Putting this in a separate function also has
the advantage that it can be placed at the start of images
which require an additional header like several Freescale i.MX
images. As the head function contains the barebox arm magic
those images can now also be detected as barebox images.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-28 09:55:02 +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
Sascha Hauer bb2a1ea60c ARM boot[zu]: return COMMAND_ERROR_USAGE instead of calling barebox_cmd_usage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 20:08:09 +01:00
Eric Bénard 5c50423b70 mx53-loco: update defconfig
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 19:58:23 +01:00
Eric Bénard 96ecdf0a46 mx53-loco: add board revision support
- this is taken from freescale-mx35-3-stack/3stack.c and allows
this board to run Freescale's kernel which relies on the system
revision to configure the correct PMIC.

- On rev0 boards (with DA9053), the log is :
detected i.MX53 rev 2.1
MCIMX53-START board 1.0

On newer boards (rev A or B with MC34708), the log is :
mc34708-i2c@mc34708-i2c0: MC34708 ID: 0x0014
detected i.MX53 rev 2.1
MCIMX53-START-R board 1.0 rev B

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 77649c1857 mx53-loco: add i2c support
and register mc34708 which is present on MCIMX53-START-R 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 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
Asen Chavdarov Dimov 35ccfb9a3d Typo fix in pm9261 init file
Fixing this typo lets the barebox for pm9261 to be build.

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 19:55:00 +01:00
Robert Jarzmik 5d9e5134a0 arm/mach-pxa: add CCCR bits definitions
Add CCCR bits definition for PXA SoC, so that the bootloader
can setup a stable core clock frequency, which is not the
initial reset clock, as required by Intel's PXA27x Processor
family developer's guide, chapter 3.5.5, table 3.7 (clock
frequencies).

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-22 08:27:26 +01:00
Robert Jarzmik 513def13ce arm/mach-pxa: add standard LCD panel GPIO settings
Add standard GPIO routings for LCD panels, taken from linux
kernel.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-22 08:27:26 +01:00
Sascha Hauer 4e0f084ea1 Merge branch 'gpio_keys' of git://uboot.jcrosoft.org/barebox into next
Conflicts:
	drivers/Makefile

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-17 10:19:25 +01:00
Robert Jarzmik b1cf1685d3 drivers/video: remove pxafb enable on load
As pxafb can rely on a PWM to control backlight, and because
driver dependencies are hard to deal with, remove automatic
enable of PXAFB on probe.

The user should in its environment do a :
 - fb0.enable=1

This way, the PWM has been probed and is ready to work, and
the pxafb backlight control works.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-17 10:18:30 +01:00
Robert Jarzmik bf841a598e drivers/pwm: add PXA pulse width modulator controller
Add PXA embedded pulse width modulator support. The PWM can
generate signals from 49.6kHz to 1.625MHz.
The driver is for pxa2xx family. The pxa3xx was not handled yet.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-17 10:18:30 +01:00
Jean-Christophe PLAGNIOL-VILLARD 4f7b18e937 usb-a926x: add DAB MMX Daughter board support
- gpio_keys support
 - leds
 - uarts 2 and 4 (for oled)

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-02-16 18:17:35 +08:00
Jean-Christophe PLAGNIOL-VILLARD 77a8d36b90 at91: at91_register_uart return device
this will allow to set the active parameter from C

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-02-16 18:17:34 +08:00
Sascha Hauer c20952a621 Merge branch 'master' into next 2012-02-15 12:59:10 +01:00
Sanjeev Premi 4cea8b94e5 omap: xload: Make error more specific
Current message indicating that SD card isn't
mounted is misleading if the card has only one
partition.

Updated the message to indicate that mounting
the specific partition failed.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-14 12:09:55 +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 99d72d3033 ARM: update mach-types
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-13 11:20:11 +01:00
Sascha Hauer 3733e603fa ARM: Fix oftree booting
We forgot to initialize params to the oftree to actually
boot a kernel with devicetree.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-13 09:50:36 +01:00
Robert P. J. Day c9c75e4cf3 Add comment explaining what cortex_a9_rev() is doing.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-10 12:34:53 +01:00
Sascha Hauer 8187c70e4c ARM omap343xdsp: remove nonexistent include
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-09 15:19:36 +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
Sanjeev Premi 675502d73f omap3evm: Setup ATAGs for Linux boot
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-08 10:03:44 +01:00
Sanjeev Premi b1befbba9d omap3evm: Remove inclusion of non-existent header
File 'mach/board.h' doesn't exist any more.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-08 10:03:44 +01:00
Robert P. J. Day c0df8f2fca Remove apparently superfluous Kconfig variable HAS_OMAP_NAND
Remove what is an apparently valueless Kconfig variable HAS_OMAP_NAND.
A search of the entire source tree shows:

$ grep -r HAS_OMAP_NAND *
arch/arm/mach-omap/Kconfig:	select HAS_OMAP_NAND
arch/arm/mach-omap/Kconfig:	select HAS_OMAP_NAND
arch/arm/mach-omap/Kconfig:	select HAS_OMAP_NAND
arch/arm/mach-omap/Kconfig:	select HAS_OMAP_NAND
arch/arm/mach-omap/Kconfig:config HAS_OMAP_NAND
arch/arm/configs/phycard_a_l1_defconfig:CONFIG_HAS_OMAP_NAND=y
$

where the definition of that variable is simply:

config HAS_OMAP_NAND
        bool

so it seems pretty clear it can be removed as nothing is using it.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-07 23:35:45 +01:00
Robert P. J. Day ce013658e2 Add CONFIG_MCI_STARTUP=y to BeagleBoard defconfig.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-07 23:30:53 +01:00
Sascha Hauer 037cf6e80b Merge branch 'next' 2012-02-07 13:54:14 +01:00
Robert P. J. Day b07b5f8689 Add ARCH_OMAP[34] dependencies to Kconfig file
Without the proper OMAP3 or OMAP4 dependency directives, you get the
wrong list of choices displayed based on which OMAP variant you pick.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-07 11:54:47 +01:00
Robert P. J. Day 8676010659 Typo fix in Kconfig file: "Invlidate" -> "Invalidate"
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-06 12:12:28 +01:00
Sascha Hauer ab8a9aad0b ARM omap pandaboard: update defconfig
- enable bootm command
- enable iomem command
- enable magicvar command
- disable nand support, the panda does not have nand

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-27 12:19:31 +01:00
Sascha Hauer c1e62ef1b7 ARM: Add missing ifdef around dump_stack()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-27 12:18:08 +01:00
Sascha Hauer 192d6fe9be Merge branch 'pu/debug' into next 2012-01-27 09:31:13 +01:00
Sascha Hauer 79c2f03aee Add dump_stack function
At least ARM allows us to dump the stack, but we currently
have no prototype for this. Add a dump_stack prototype and
provide a static inline function for architectures without
stack dump support. Also, call dump_stack() in panic() to
provide more information in the case of a panic.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-26 14:12:08 +01:00
Sascha Hauer be3aaa27b9 ARM: panic on div 0
hang() only outputs 'reset the board' whereas panic
can be passed a string which we can use to output
some more information what is happening.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-26 13:59:20 +01:00
Marc Kleine-Budde 268c531d62 ARM: mx3/mx35_3ds: increase kernel partition size to 4 MiB
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-25 18:11:45 +01:00
Marc Kleine-Budde 9374e0c74f ARM: mx3/mx35_3ds: add missing nand device
Otherwise the kernel would not register the nand partitions.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-25 18:11:45 +01:00
Roman Fietze fc3a2cdcab ARM i.MX freescale-mx35-3-stack: support 256 MiB RAM
Extend DCD table and low level init routines. Add barebox SDRAM
device. Also, fix the memory size for bank 0 to 128MB. It was
accidently changed to 124MB here:

commit f928efa818
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Tue Jul 19 09:58:32 2011 +0200

    add a add_mem_device function

    Add a helper function for boards to register their memory
    devices. This makes the board code smaller and also helps
    getting rid of map_base and struct memory_platform_data.

    And switch all of the memory to it

Signed-off-by: Roman Fietze <roman.fietze@telemotive.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-01-24 11:41:35 +01:00