[PATCH 2/3] MarSBoard: add new board

Sascha Hauer s.hauer at pengutronix.de
Fri Mar 28 03:46:47 EDT 2014


Hi Eric,

On Wed, Mar 26, 2014 at 09:22:42PM +0100, Eric Bénard wrote:
> +}
> +postcore_initcall(marsboard_lwl_init);
> diff --git a/arch/arm/boards/embest-marsboard/env/config-board b/arch/arm/boards/embest-marsboard/env/config-board
> new file mode 100644
> index 0000000..e8e8378
> --- /dev/null
> +++ b/arch/arm/boards/embest-marsboard/env/config-board
> @@ -0,0 +1,6 @@
> +#!/bin/sh
> +
> +# board defaults, do not change in running system. Change /env/config
> +# instead
> +
> +global.linux.bootargs.base="console=ttymxc0,115200"

For the board specific environment I'd like to do the following:

move the $BOARD/env directory to a board specific name, like
$BOARD/marsboard-env. In your board code (when you know that you're
running on the marsboard), do: defaultenv_append_directory(marsboard_env);

For the environment snippet above: You can simply drop it. barebox will
append a correct 'console=' parameter automatically for you.

> +wm 32 0x020c407c 0x0f0000c3
> +wm 32 0x020c4080 0x000003ff
> +/* enable AXI cache for VDOA/VPU/IPU */
> +wm 32 0x020e0010 0xf00000cf
> +/* set IPU AXI-id0 Qos=0xf(bypass AXI-id1 Qos=0x7 */
> +wm 32 0x020e0018 0x007f007f
> +wm 32 0x020e001c 0x007f007f

You can probably drop these. The -next branch has a patch in it which
should do it:

3739b84 ARM i.MX6q: Mark VPU and IPU AXI transfers as cacheable, increase IPU priority

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list