23 Nov, 2014

6 commits


21 Nov, 2014

6 commits

  • U-Boot has imported various utility macros from Linux
    scattering them to various places without consistency.

    In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
    container_of, DIV_ROUND_UP, etc.
    In include/linux/compat.h are min_t, max_t, round_up, round_down,
    etc.
    We also have duplicated defines of min_t in some *.c files.

    Moreover, we are suffering from too cluttered include/common.h.

    This commit moves various macros that originate in
    include/linux/kernel.h of Linux to their original position.

    Note:
    This commit simply moves the macros; the macros roundup,
    min, max, min2, max3, ARRAY_SIZE are different
    from those of Linux at this point.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
    and safer than DIV_ROUND.

    For example,
    foo = DIV_ROUND_CLOSEST(x, y++)
    works expectedly, but
    foo = DIV_ROUND(x, y++)
    does not. (y is incremented twice.)

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • CONFIG_CPU_ARM1136 was introduced into Kconfig by commit 2e07c249a67e
    (kconfig: arm: introduce symbol for ARM CPUs).

    This commit removes all the defines of CONFIG_ARM1136 and replaces
    the only reference in arch/arm/lib/cache.c with CONFIG_CPU_ARM1136.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • CONFIG_CPU_ARM926EJS was introduced into Kconfig by commit 2e07c249a67e
    (kconfig: arm: introduce symbol for ARM CPUs).

    This commit removes all the defines of CONFIG_ARM926EJS and replaces
    the only reference in arch/arm/lib/cache.c with CONFIG_CPU_ARM926EJS.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • CONFIG_CPU_ARM920T was introduced into Kconfig by commit 2e07c249a67e
    (kconfig: arm: introduce symbol for ARM CPUs).

    This commit removes all the defines of CONFIG_ARM920T and replaces the
    only reference in drivers/usb/host/ohci-hcd.c with CONFIG_CPU_ARM920T.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Some (not all) of ARMv7 boards define CONFIG_ARMV7, which is useless.
    Besides, it is never referenced.

    Signed-off-by: Masahiro Yamada
    Acked-by: Nobuhiro Iwamatsu

    Masahiro Yamada
     

20 Nov, 2014

1 commit


19 Nov, 2014

2 commits

  • When an MPC5200 based board is used with SPL support, the main
    U-Boot needs to clear the GD (global data) struct again.

    Otherwise the generic board init code in board_init_f (when
    CONFIG_SYS_GENERIC_BOARD is defined) will not initialize all
    GD variables correctly. Resulting in a hangup on the a4m2k
    board.

    Signed-off-by: Stefan Roese
    Cc: Wolfgang Denk

    Stefan Roese
     
  • The gdsys hrcon board is based on a Freescale MPC8308 SOC.
    It boots from NOR-Flash, kernel and rootfs are stored on
    SD-Card.

    On board peripherals include:
    - 1x GbE (optional)
    - Lattice ECP3 FPGA connected via eLBC and PCIe

    Signed-off-by: Dirk Eibach
    Signed-off-by: Stefan Roese

    Dirk Eibach
     

17 Nov, 2014

14 commits


15 Nov, 2014

7 commits


14 Nov, 2014

2 commits


13 Nov, 2014

2 commits