10 Dec, 2011

3 commits

  • Ventana is a board which is very similar to Seaboard. Support it by
    re-using board/nvidia/seaboard/seaboard.c with minor run-time conditionals.

    v5: Makefile: Use cmd_link_o_target, remove unused clean/distclean targets.
    v6: Make gpio_config_uart_seaboard() static.
    v7: Add MAINTAINERS entry for Ventana. Tom Warren doesn't have Ventana, so
    he asked me to add myself for this board.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • Pass the GPIO numbers for power and card detect to tegra2_mmc_init(), and
    modify that function to perform all required GPIO initialization. This
    removes the need for board files to perform these operations.

    Move board_mmc_getcd() into tegra2_mmc.c now that the driver knows which
    GPIOs to use.

    Update affected call-sites in seaboard.c and harmony.c. Note that this
    change should make all SD ports work on Harmony, since the required GPIO
    setup is now being performed.

    v4: Fix prototype of tegra2_mmc_init() in board.h to match driver change.
    Remove prototype of gpio_config_mmc() from board.h

    Signed-off-by: Stephen Warren
    Cc: Andy Fleming
    Tested-by: Simon Glass
    Acked-by: Simon Glass
    Acked-by: Andy Fleming
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • For Seaboard, this is mostly a cut/paste of board_mmc_init() and
    pin_mux_mmc() into seaboard.c; pin_mux_mmc() was modified to add some
    missing pinmux_tristate_disable calls for the GPIOs.

    For Harmony, those functions were modified to configure SDMMC2 (index 2)
    instead of SDMMC3 (index 1), since that's what is present on the board.

    However, harmony.c is still missing the required GPIO setup, so neither
    port is likely to function correctly yet. This will be fixed in the next
    change.

    v4: Include board.h to prototype tegra2_mmc_init().

    Signed-off-by: Stephen Warren
    Tested-by: Simon Glass
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     

09 Dec, 2011

23 commits


08 Dec, 2011

8 commits

  • Fix:
    nand_boot.c: In function 'nand_read_page':
    nand_boot.c:150:6: warning: variable 'stat' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin
    Signed-off-by: Scott Wood

    Anatolij Gustschin
     
  • Standard Debian powerpc and powerpcspe systems only include hard-float
    libgcc in their native compilers, which causes scary build warnings when
    building U-Boot.

    Debian and other PowerPC-supporting distributions used to provide libgcc
    and other libraries in a "nof" (soft-float) form in the "multilib"
    packages. As they were completely unused by the distribution and
    therefore tended to be very buggy it was decided to save some time on
    the part of the maintainers and build-servers by removing them.

    Admittedly, right now the linker warnings do not indicate any problems,
    as the included routines do not use any floating point at all.

    The concern is that if floating-point code were ever added it might
    cause hard-float code to be unexpectedly included in U-Boot without
    generating a hard error. This would cause unexplained crashes or
    indeterminate results at runtime.

    The easiest way to resolve this is to borrow the routines that U-Boot
    needs from the Linux kernel, which has the same issue.

    Specifically, the routines are: _ashldi3(), _ashrdi3(), and _lshrdi3().
    They were borrowed from arch/powerpc/kernel/misc_32.S as of v2.6.38-rc5,
    commit 85e2efbb1db9a18d218006706d6e4fbeb0216213, and are GPLv2+.

    The Makefile framework was copied from the U-Boot ARM port.

    Signed-off-by: Kyle Moffett
    Cc: Wolfgang Denk
    Cc: Kim Phillips
    Cc: Andy Fleming
    Cc: Kumar Gala
    Cc: Stefan Roese

    Kyle Moffett
     
  • Fix:
    nand_spl_load.c: In function 'nand_boot':
    nand_spl_load.c:31:6: warning: variable 'ret' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin
    Cc: Heiko Schocher
    Cc: Scott Wood
    Acked-by: Heiko Schocher
    Acked-by: Marek Vasut
    Signed-off-by: Scott Wood

    Anatolij Gustschin
     
  • Fix warnings for both cases:

    definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST:
    nand_spl_simple.c: In function 'nand_read_page':
    nand_spl_simple.c:156:6: warning: variable 'stat' set but not used
    [-Wunused-but-set-variable]

    not definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST:
    nand_spl_simple.c: In function 'nand_read_page':
    nand_spl_simple.c:196:6: warning: variable 'stat' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin
    Cc: Heiko Schocher
    Cc: Scott Wood
    Acked-by: Heiko Schocher
    Acked-by: Marek Vasut
    Signed-off-by: Scott Wood

    Anatolij Gustschin
     
  • * 'master' of git://git.denx.de/u-boot-mpc83xx:
    powerpc/83xx: fix sdram initialization for keymile boards
    powerpc/mpc83xx: cleanup makefile for mpc83xx

    Wolfgang Denk
     
  • Fix:
    cfb_console.c:371: warning: 'cursor_state' defined but not used
    cfb_console.c:372: warning: 'old_col' defined but not used
    cfb_console.c:373: warning: 'old_row' defined but not used
    cfb_console.c:435: warning: 'video_invertchar' defined but not used

    Signed-off-by: Anatolij Gustschin
    Tested-by: Wolfgang Denk

    Anatolij Gustschin
     
  • Signed-off-by: Matthias Fuchs

    Matthias Fuchs
     
  • As this "driver" doesn't seem to be really used, let's remove
    it completely.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

07 Dec, 2011

6 commits

  • * 'master' of git://git.denx.de/u-boot-arm:
    davinci: Remove unwanted memsize.c from hawkboard's nand spl build
    devkit8000: Move CONFIG_SYS_TEXT_BASE out of bss
    da850evm: pass board revision info to kernel
    arch/arm/include/asm/arch-omap5/clocks.h: Fix GCC 4.2 warnings
    arch/arm/cpu/armv7/omap-common/clocks-common.c: Fix GCC 4.6 warnings
    arch/arm/cpu/armv7/omap-common/spl.c: Fix GCC 4.2 warnings
    MX35: flea3: changes due to hardware revision B
    MX: serial_mxc: cleanup removing nasty #ifdef
    M28: Fix OB1 bug in GPIO driver
    MXS: Add static annotations to dma driver
    apbh_dma: return error value on timeout
    Efika: Configure additional regulators for HDMI output
    mx5: Correct a warning in clock.c
    MC13892: Add REGMODE0 bits definitions
    mx51evk: Configure the pins as GPIOs prior to using gpio_get_value
    mx53smd: Configure the pins as GPIOs prior to using gpio_get_value
    mx53evk: Configure the pins as GPIOs prior to using gpio_get_value
    mx53ard: Configure the pins as GPIOs prior to using gpio_get_value
    mx53loco: Configure the pins as GPIOs prior to using gpio_get_value
    OMAP3: Add SPL_BOARD_INIT hook
    AM3517 CraneBoard: Add SPL support
    AM3517: Add SPL support
    OMAP3: Add SPL support to omap3_evm
    OMAP3: Add SPL support to Beagleboard
    OMAP3 SPL: Add identify_nand_chip function
    OMAP3 SPL: Rework memory initalization and devkit8000 support
    OMAP3: Suffix all Micron memory timing parts with their speed
    OMAP3: Add optimal SDRC autorefresh control values
    omap3: mem: Add MCFG helper macro
    OMAP3: Remove get_mem_type prototype
    OMAP3: Change mem_ok to clear again after reading back
    OMAP3: Add a helper function to set timings in SDRC
    OMAP3: Update SDRC dram_init to always call make_cs1_contiguous()
    omap3: mem: Comment enable_gpmc_cs_config more
    ARM: davici_emac: Fix condition for number of phy detects
    arm: printf() is not available in some SPL configurations
    arm, davinci: add support for am1808 based enbw_cmc board
    arm, davinci: move misc function in arch tree
    arm, board/davinci/common/misc.c: Codingstyle cleanup
    arm, davinci, da850: add uart1 tx rx pinmux config
    arm, davinci: move davinci_rtc struct to hardware.h
    arm, davinci: Remove duplication of pinmux configuration code
    arm, hawkboard: Use the pinmux configurations defined in the arch tree
    arm, da850evm: Use the pinmux configurations defined in the arch tree
    arm, da850: Add pinmux configurations to the arch tree
    arm, da850evm: Do pinmux configuration for EMAC together with other pinmuxes
    arm, hawkboard: Remove obsolete struct pinmux_config i2c_pins
    arm, davinci: Move pinmux functions from board to arch tree
    arm, arm926ejs: always do cpu critical inits
    omap_gpmc: use SOFTECC in SPL if it's enabled
    nand_spl_simple: add support for software ECC
    AM3517: move AM3517 specific mux defines to generic header
    AM35xx: add EMAC support
    davinci_emac: hardcode 100Mbps for AM35xx and RMII
    davinci_emac: fix for running with dcache enabled
    arm926ejs: add noop implementation for dcache ops
    davinci_emac: conditionally compile specific PHY support
    davinci_emac: use internal addresses in buffer descriptors
    davinci_emac: move arch-independent defines to separate header
    BeagleBoard: config: Really switch to ttyO2
    ARM: davinci_dm6467Tevm: Fix build breakage
    ARM: OMAP: Remove STACKSIZE for IRQ and FIQ if unused
    ARM: OMAP3: Remove unused define SDRC_R_C_B
    ARM: OMAP3: Remove unused define CONFIG_OMAP3430
    omap4: fix IO setting
    omap4+: streamline CONFIG_SYS_TEXT_BASE and other SDRAM addresses
    omap4460: add ES1.1 identification
    omap4: emif: fix error in driver
    omap: remove I2C from SPL
    omap4460: fix TPS initialization
    omap: fix cache line size for omap3/omap4 boards
    omap4: ttyO2 instead of ttyS2 in default bootargs
    omap: Improve PLL parameter calculation tool
    start.S: remove omap3 specific code from start.S
    armv7: setup vector
    armv7: include armv7/cpu.c in SPL build
    armv7: disable L2 cache in cleanup_before_linux()
    arm, arm926ejs: Fix clear bss loop for zero length bss
    PXA: Move colibri_pxa270 to board/toradex/
    PXA: Flip colibri_pxa27x to pxa-common.h
    PXA: Introduce common configuration header for PXA
    PXA: Rename pxa_dram_init to pxa2xx_dram_init
    PXA: Squash extern pxa_dram_init()
    PXA: Export cpu_is_ and pxa_dram_init functions
    PXA: Cleanup Colibri PXA270
    PXA: Replace timer driver
    PXA: Add cpuinfo display for PXA2xx
    PXA: Separate PXA2xx CPU init
    PXA: Rename CONFIG_PXA2[57]X to CONFIG_CPU_PXA2[57]X
    PXA: Unify vpac270 environment size
    PXA: Enable command line editing for vpac270
    PXA: Adapt Voipac PXA270 to OneNAND SPL
    PXA: Drop Voipac PXA270 OneNAND IPL
    PXA: Fixup PXA25x boards after start.S update
    PXA: Re-add the Dcache locking as RAM for pxa250
    PXA: Rework start.S to be closer to other ARMs
    PXA: Drop XM250 board
    PXA: Drop PLEB2 board
    PXA: Drop CRADLE board
    PXA: Drop CERF250 board
    Fix regression in SMDK6400
    nand: Add common functions to linux/mtd/nand.h
    Ethernut 5 board support
    net: Armada100: Fix compilation warnings
    ARM: remove duplicated code for LaCie boards
    ARM: add support for LaCie 2Big Network v2
    mvsata: fix ide_preinit for missing disks
    netspace_v2: Read Ethernet MAC address from EEPROM
    omap3evm: Add support for EFI partitions
    part_efi: Fix compile errors

    Wolfgang Denk
     
  • * 'master' of git://git.denx.de/u-boot-mpc85xx:
    p2041rdb: fix serdes clock map

    Wolfgang Denk
     
  • * 'master' of git://git.denx.de/u-boot-video:
    video: cfb_console: Make the software cursor non-destructive

    Wolfgang Denk
     
  • TPM (Trusted Platform Module) is an integrated circuit and
    software platform that provides computer manufacturers with the
    core components of a subsystem used to assure authenticity,
    integrity and confidentiality.

    This driver supports version 1.2 of the TCG (Trusted Computing
    Group) specifications.

    The TCG specification defines several so called localities in a
    TPM chip, to be controlled by different software layers. When
    used on a typical x86 platform during the firmware phase, only
    locality 0 can be accessed by the CPU, so this driver even while
    supporting the locality concept presumes that only locality zero
    is used.

    This implementation is loosely based on the article "Writing a
    TPM Device Driver" published on http://ptgmedia.pearsoncmg.com

    Compiling this driver with DEBUG defined will generate trace of
    all accesses to TMP registers.

    This driver has been tested and is being used in three different
    functional ChromeOS machines (Pinetrail and Sandy Bridge Intel
    chipsets) all using the same Infineon SLB 9635 TT 1.2 device.

    A u-boot cli command allowing access to the TPM was also
    implemented and is being submitted as a second patch.

    Change-Id: I22a33c3e5b2e20eec9557a7621bd463b30389d73
    Signed-off-by: Vadim Bendebury
    CC: Wolfgang Denk

    Vadim Bendebury
     
  • It is fine to use __maybe_unused instead of #ifdef, but we also need one
    for print_eth() since not all boards have Ethernet. This fixes this
    warning:

    cmd_bdinfo.c:39:13: warning: 'print_eth' defined but not used [-Wunused-function]

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The spi.h include is no longer included in exports.h, so must be included
    here.

    This fixes these errors:

    In file included from exports.c:41:0:
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h: In function 'jumptable_init':
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:27:1: error: 'spi_init' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:27:1: note: each undeclared identifier is reported only once for each function it appears in
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:28:1: error: 'spi_setup_slave' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:29:1: error: 'spi_free_slave' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:30:1: error: 'spi_claim_bus' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:31:1: error: 'spi_release_bus' undeclared (first use in this function)
    /home/sjg/trunk/src/third_party/u-boot/files/include/_exports.h:32:1: error: 'spi_xfer' undeclared (first use in this function)

    Signed-off-by: Simon Glass

    Simon Glass