9
0
Fork 0
Commit Graph

12198 Commits

Author SHA1 Message Date
Jan Luebbe bdcdcaad81 ARM: imx233-olinuxino: update defconfig
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-07 09:55:22 +01:00
Jan Luebbe faccc5e82f ARM: imx233-olinuxino: update defaultenv
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-07 09:55:19 +01:00
Jan Luebbe 99d800bf89 ARM: imx233-olinuxino: use LED1 as heartbeat
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-07 09:54:59 +01:00
Jan Luebbe 6aa45b2b22 ARM: imx233-olinuxino: generate complete bootstream
- Enable multi-image support to generate bootstream, sd-card and 2nd stage
  images.
- Handle pin-mux in lowlevel.c only.
- Use fine-tuned memory setup from u-boot.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:15 +01:00
Jan Luebbe dc0c32fa4c arm: mxs: fix pin voltage register value for EMI
The EMI pins are documented in the reference manual as using value 0 for both
1.8V and 2.5V. Value 1 is reserved.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:15 +01:00
Sascha Hauer 6a17795e5e Documentation: Add documentation for booting Freescale MXS SoCs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:15 +01:00
Sascha Hauer 417116c783 ARM: MXS: Update Karo TX28 board support
- enable multiimage support to generate bootstream, sd-card and 2nd
  stage images
- Enable new defaultenv support
- Enable more features

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:14 +01:00
Sascha Hauer ba4ace8110 ARM: MXS: Add multiimage support
The Freescale MXS SoCs have a multi staged boot process which needs
different images composed out of different binaries. The ROM executes
a so called bootstream which contains multiple executables. The first
one is executed in SRAM and the purpose of this binary is to setup
the internal PMIC and the SDRAM. The second image is usually the
bootloader itself. In case of barebox the bootstream is composed
out of the self extracting barebox image (pblx) and the prepare
stage for setting up the SDRAM.

The bootstream image itself is useful for USB boot, but for booting from
SD cards or NAND a BCB header has to be prepended to the image. In case
of SD boot the image has the .mxssd file extension in barebox.

Since the bootstream images are encrypted they are not suitable for
2nd stage execution. For this purpose the 2nd stage images are generated.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:07 +01:00
Sascha Hauer 30aad4a4ce ARM: MXS: Enable iomux support for pbl
Upcoming lowlevel code for MXS needs the iomux setup functions

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:00 +01:00
Sascha Hauer 1708b4b009 ARM: MXS: Add more base address defines
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:00 +01:00
Sascha Hauer 0160f83492 ARM: Add get_sp() and get_lr() functions
In case it's needed for some early code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:00 +01:00
Sascha Hauer a47c7d1ecb ARM: mxs: Add lowlevel setup from U-Boot
U-Boot has code to replace the infamous Freescale bootlet code.
This patch adds this for barebox with some changes:
- Separate it more into mx23/mx28 functions instead of mxs functions
  with #ifdefs for the actual SoC
- Add mx2x_power_init_battery_input() power entry point for boards
  which have a regulated input on the battery pin to supply the board.
- Export more functions to be more flexible when boards need non standard
  setup.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:00 +01:00
Sascha Hauer 7f00863010 ARM: Add U-Boot specific io functions
To make it easier to adopt code from U-Boot.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:00 +01:00
Sascha Hauer 7a17b47240 ARM: MXS: remove unnecessary mach/imx-regs.h include
And replace the ones needed with the SoC specific header.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:00 +01:00
Sascha Hauer df9879c65d drivers: remove unnecessary mach/imx-regs.h include
And replace the ones needed with the SoC specific header.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer 27114b30bc scripts: Add mxs-usb-loader tool
This is directly taken from the rockbox projects sbloader tool,
just renamed to mxs-usb-loader to avoid confusion with bareboxes
several different image tools.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer 2b50a12c1e scripts: Add mxsboot tool
Copied from U-Boot v2014.10 and changed to use getopt instead
of handcrafted parsing.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer d19dff8f15 scripts: add mxsimage tool
This is copied from U-Boot v2014.10 and modified for use with
barebox:

- Add a main() function to make it a standalone tool
- Add option to pass in the prepare stage and bootloader
  image as options. If the config file contains @PREP@ or
  @BOOTLOADER@ the string will be replaced with the actual
  image file passed via the -p and -b options.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer 447d299fd7 ARM: uncompress.c: Add some debugging messages
Now that we have printf support in the PBL we can use it right
after setup_c(). Add some debug messages to the early PBL code
to make it more clear what is happening there.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer 577cb0cb51 ARM: start.c: Add some debugging messages
pr_debug can now be used right after setup_c(), so add some debug
messages to the early startup code to make it a bit more clear what
is happening there.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer ab989e4588 console: Make sure xzalloc is only used when it's available
To make it possible to call the pr_* functions very early before
malloc is initialized test if malloc is available before using
it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer 663b895e49 malloc: Add a function to detect if malloc pool is already initialized
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer a9d7b3d00e Add PBL console support
This adds simple console support to the PBL which makes it
possible to print more complex messages in the PBL than just
strings or hex numbers. For now puts_ll is used to print the
messages, so it depends on CONFIG_DEBUG_LL which makes it
more a debugging option. However, this could be extended later
to get regular output from the PBL if desired.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:59 +01:00
Sascha Hauer 017da2273a printf: use local isdigit/isalnum implementation
To be independent of the _ctype array. This makes it possible
to add printf support to the PBL without adding _ctype aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:58 +01:00
Sascha Hauer 8a7335f8b5 printf: move simple_strto*() functions to separate file
These are not needed in the PBL, so move them to a separate file.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:58 +01:00
Sascha Hauer ce5299b0bf printf: move panic() to common/misc.c
panic() is not really a printf like function, so move it to common/misc.c.
This is done because we want to have printf support in the PBL, but PBL
has it's own panic() implementation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:58 +01:00
Sascha Hauer c20983fad5 PBL: Add strnlen, needed for printf support
vsprintf needs strnlen, so in oder to add console support to
the PBL we need a strnlen implementation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:30:58 +01:00
Sascha Hauer 631be8e6cb blspec: print error when devicetree not found
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-16 14:29:23 +01:00
Lucas Stach e91702bd61 fdt: don't strip const qualifier
Fixes:
warning: assignment discards 'const' qualifier from pointer target type

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-11 08:37:09 +01:00
Sascha Hauer 7413dc4258 treewide: Fix typo collumn -> column
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-11 08:07:47 +01:00
Teresa Gámez d15dceb2d0 ARM: AM335x: Fix typo in Phytec boards
Has to be bootsource not boosource.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-11 08:05:27 +01:00
Teresa Gámez 5844f3c3c7 ARM: dts: Add missing gpmc setting for phyFLEX-AM335x
cycle2cycle-diffcsen needs to be enabled.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-09 10:31:28 +01:00
Teresa Gámez 6720c3ef6e ARM: dts: Add missing gpmc setting for phyCORE-AM335x
cycle2cycle-diffcsen needs to be enabled.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-09 10:31:28 +01:00
Teresa Gámez 7de8e80d9f ARM: phytec: am335x: Update enviroment comment
We do not have a root partition in spi flash any more.
Adapt comment.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-09 10:13:48 +01:00
Lucas Stach e88a7c36ed doc: usb: add missing new line in codeblock
Fixes an error during doc generation that leads to the
code block being missing in the resulting docs.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-09 10:00:05 +01:00
Sascha Hauer 38c6f5d351 Merge branch 'for-next/socfpga' 2014-12-08 14:54:12 +01:00
Sascha Hauer b01bc4c810 Merge branch 'for-next/randconfig-1' 2014-12-08 14:54:11 +01:00
Sascha Hauer 9b1d12fff0 Merge branch 'for-next/randconfig' 2014-12-08 14:54:11 +01:00
Sascha Hauer 3eade89c75 Merge branch 'for-next/persistent-vars'
Conflicts:
	arch/arm/boards/efika-mx-smartbook/defaultenv-efikasb/config
2014-12-08 14:54:09 +01:00
Sascha Hauer c2b5a7015b Merge branch 'for-next/misc' 2014-12-08 14:53:59 +01:00
Sascha Hauer d3933bd350 Merge branch 'for-next/marvell' 2014-12-08 14:53:59 +01:00
Sascha Hauer 4b59e92dc7 Merge branch 'for-next/kconfig' 2014-12-08 14:53:59 +01:00
Sascha Hauer 86916569a8 Merge branch 'for-next/imx' 2014-12-08 14:53:59 +01:00
Sascha Hauer 1e5b933b5d Merge branch 'for-next/am335x' 2014-12-08 14:53:58 +01:00
Sascha Hauer 4b579fea5d Release v2014.12.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:52:05 +01:00
Steffen Trumtrar 1018c7f732 ARM: socfpga: socrates: update handoff files to 14.0
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:44:08 +01:00
Steffen Trumtrar e4fc177199 ARM: socfpga: sockit: update handoff files to 14.0
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:44:08 +01:00
Steffen Trumtrar 24532c33fc ARM: socfpga: update sdram calibration to 14.0
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:39:11 +01:00
Steffen Trumtrar bd40638ef0 ARM: socfpga: move iocsr from mach to board folder
The current iocsr-config-cyclone5.c is actually board specific, although the
file name suggests otherwise.
As the file was generated for the SoCkit, move it there and add a new one
for the socrates.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:39:11 +01:00
Steffen Trumtrar 93bbd1c8a5 Documentation: boards: add socfpga
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:39:10 +01:00