9
0
Fork 0
Commit Graph

5208 Commits

Author SHA1 Message Date
Juergen Beisert 073f39c95e MACH-S3C24XX: Add support for flash based BBT
The default configuration of the current 2.6.37 kernel uses a flash based BBT.
So, barebox must also use one, to be in sync with the kernel about bad blocks
in the flash.

Due to the used OOB layout, the generic BBT description coming with the
framework can be used.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:52 +01:00
Juergen Beisert a23e8a61a3 MACH-S3C24XX: Change detection method of the second SDRAM bank
There is no rule how to connect the SDRAMs to the two clocks signales the CPU
provides. Some boards are using them on a per bank base, some others on a per
chip base. So, the check for the enabled second clock cannot be used to detect
if the second SDRAM bank is populated.
A better way is to check the MT bits of the second SDRAM bank register. When
the init code sets these bits to '00' the second bank is not used for SDRAM
and gets ignored.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:52 +01:00
Juergen Beisert d86f8a26f9 MACH-S3C24XX: Fix typo in UART2_SIZE macro
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:52 +01:00
Juergen Beisert 6d6d22e583 S3C24xx: Just remove a trailing whitespace
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:52 +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
Juergen Beisert 1194e279d6 Generic environment: Fix assembling of the 'mtdparts' variable
The semicolon is a delimiter, not an end marker. With a trailing semicolon the
kernel give the confusing message:

mtd: no mtd-id

With this patch, a semicolon gets added on demand only.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:51 +01:00
Jean-Christophe PLAGNIOL-VILLARD 51cbd46d9d at91sam263ek: switch to default env
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:51 +01:00
Sascha Hauer 81eafd2141 Release v2011.03.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 15:59:35 +01:00
Sascha Hauer 91d2891888 network: initialize new net device id with -1
This autoassigns a id to network devices and makes multiple
network devices work again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-18 11:11:01 +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 Kleine-Budde c5dd4c4d0a defaultenv/bin/update: fix return values
This patch fixes the return values of the update script.

- Exit with an error of the "_update" script fails.
- Add a "else; true" to the crc check, otherwise the script
  exits with "1".

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-07 22:10:28 +01:00
Sascha Hauer f5660396eb ARM tx28: Add hook for enabling the display
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-07 22:08:16 +01:00
Sascha Hauer dd18f45e0f fb: For multiple video modes print the available modes in devinfo
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-07 22:08:09 +01:00
Sascha Hauer 96df48516d ARM nhk8815: make config.h nonempty
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-03 10:51:14 +01:00
Sascha Hauer 06ea6c135d Merge branch 'next' 2011-02-03 10:49:18 +01:00
Sascha Hauer 75c38628f7 Release v2011.02.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-03 10:00:14 +01:00
Marc Kleine-Budde 86ddd55dda defaultenv/bin/boot: fix ubi root's name assignment
This patch fixes a regression introduced in commit
d15cfafeef.

While there, use "-z" to check if ubiroot variable is empty.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-By: Eric Bnard<eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-03 09:56:47 +01:00
Jean-Christophe PLAGNIOL-VILLARD b49e601449 sandbox: remove non used functions linux_getc/putc
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-02-03 09:54:51 +01:00
Jean-Christophe PLAGNIOL-VILLARD 628a2d1b5b kconfig: syn with linux kernel v2.6.38-rc3
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-02-02 14:21:57 +08:00
Jean-Christophe PLAGNIOL-VILLARD a3463cc128 lib/decompress_unlzo: use fill and full to read and write data
this will all to simplify the sync with the kernel and later easly add the
self decompression support to barebox

as example with a lzo compression will reduce barebox from 180224 to 99863
bytes so 55.41%
-rwxr-xr-x 1 root root  99863 Jan 28 02:17 build/versatilepb/barebox.bin.lzo

we also reduce the binary size by 224 bytes

Old version
# ls -al build/versatilepb/barebox.bin
-rwxr-xr-x 1 root root 180468 Jan 28 02:14 build/versatilepb/barebox.bin

New version
# ls -al build/versatilepb/barebox*
-rwxr-xr-x 1 root root 180244 Jan 28 02:13 build/versatilepb/barebox.bin

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-28 19:05:00 +01:00
Jean-Christophe PLAGNIOL-VILLARD 488fbba21f at91sam9m10g45ek: add board revision support
we use the board revision to specify to the linux kernel the type of lcd
we use. So we can have only one machine for those 3 boards:
 - sam9m10-ekes (LG)
 - sam9g45-ekes (LG)
 - sam9m10g45-ek (Truly)

today we support 2 lcds model:
 - LG philips LB043WQ1
 - Truly TFT1N4633-E

by default we select the Truly as the sam9m10g45-ek is the most common board

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-24 08:56:06 +01:00
Jean-Christophe PLAGNIOL-VILLARD 442231fe65 x86/pmjump: rename __bss_end to __bss_stop
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-24 08:38:10 +01:00
Gregory CLEMENT 286117d937 fb i.MX23/28: Add the reset control of LCD
Video controller of STM allow to control the reset bit of an external
LCD controller. When reset_lcd is set, CTRL1_RESET bit is used to
enable and disable LCD.
Handle USE_LCD_RESET as a flag in imx_fb_platformdata.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-21 15:22:45 +01:00
Gregory CLEMENT bd56e41d19 ARM STM/i.MX: Add possibility to choose the bit per pixel for STM video driver
When describing an new video interface, it is now possible to select
the bit per pixel. If nothing is chosen 16bpp is selected by default.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-21 10:36:07 +01:00
Sascha Hauer b82f0d4c09 Merge branch 'defenv' into next 2011-01-21 10:33:33 +01:00
Sascha Hauer 19c0219d4e defaultenv: do not print usage information for update script
This usage printout during startup more looks like there is
something wrong with the environment than a helpful message.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Eric Bénard <eric@eukrea.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-01-21 10:32:47 +01:00
Sascha Hauer 9f19ee2671 ARM chumby defconfig: update with new features
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:44:14 +01:00
Sascha Hauer e88d86a445 ARM: rename STM arch to mxs
We never supported the sigmatel stm chips and probably
never will. So do the first step and rename the architecture
to mxs just like in the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:43:24 +01:00
Sascha Hauer ca2cae2b1a fb i.MX23/28: rename imx_fb_videomode to imx_fb_platformdata
It's not a video mode, it contains video modes, so rename
the struct to what it actually is.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:33:30 +01:00
Sascha Hauer b2d4daca9a ARM chumby: enable backlight in platform data hook
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:33:30 +01:00
Sascha Hauer 8e61335543 fb i.MX23/28: add platform data hook to enable backlight
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:33:30 +01:00
Sascha Hauer 26aeeb97a0 i.MX23/28: Fix setting of lcd clock
Use the correct bitmask for masking out which is
SET_PIXFRAC(MASK_PIXFRAC)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:33:30 +01:00
Sascha Hauer 61a8639441 ARM Chumby: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:33:30 +01:00
Sascha Hauer 6729267643 ARM Chumby: Add USB support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:32:24 +01:00
Sascha Hauer 6e7c00feb1 i.MX23: Add USB (phy) support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 10:32:21 +01:00
Sascha Hauer 203a5fd190 USB ehci: Set to host mode on tt capable controllers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-20 09:54:33 +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
Sascha Hauer 5b2727d5ab Revert "arm: add __bswapsi2 support"
Reverted upon request of Jean-Christophe. Not needed anymore since:

commit be4146161b
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Date:   Sun Jan 16 12:12:32 2011 +0100

    import swab.h arch implementation form linux v2.3.37

    this will avoid __bswapsi2 issue see with gcc 4.5.1

This reverts commit f68dc40804.
2011-01-19 09:44:00 +01:00
Jean-Christophe PLAGNIOL-VILLARD a45c3b961c at91sam9g45: fix ARCH_TEXT_BASE
it's 0x73f00000 not 0x23f00000 as the other at91

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:38:18 +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
Baruch Siach 2f39e0604e miidev: allow read/write of all registers
Ethernet PHY devices have 32 registers, each 16 bits wide. Thus, the size of
the phy device should be 64 bytes.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:36:06 +01:00
Sascha Hauer 8608878013 ARM i.MX28 tx28 defconfig: enable MMU
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:33:27 +01:00
Sascha Hauer 2ac5921eea ARM i.MX28 tx28: use a fixed framebuffer address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:33:22 +01:00
Sascha Hauer 7a815494d7 ARM i.MX pca100: register otg usb host
Also, make sure that the usb ports are in ulpi mode before configuring
the iomuxer. Otherwise the ulpi transceiver cannot be initialized correctly.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:31:31 +01:00
Sascha Hauer cd735df72c video stm/mx2x: allow to pass in fb memory from platform data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:31:31 +01:00
Sascha Hauer 7b2e36e199 video stm/mx2x: simplify memory allocation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:31:31 +01:00
Sascha Hauer 4fb2d9ce0a fb: When setting a mode, also update xres, yres and fb size
Also, set size to 0 when setting up the framebuffer failed so that
the user cannot write to uninitialized framebuffer memory.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-19 09:30:37 +01:00
Juergen Beisert 76dd3e70a5 Fix default baudrate setting
The menu entry to set the default baudrate (CONFIG_BAUDRATE) makes no sense,
as long as its content is not used. This patch makes barebox using the setting
again.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-18 14:24:09 +01:00
Sascha Hauer 3e892255b3 startup: make debug printing of linker variables work again
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-17 11:05:14 +01:00
Sascha Hauer 1979b5d49c reloc.h: remove linker variables which are now in asm/sections.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-17 11:05:14 +01:00