1. 21 6月, 2013 9 次提交
  2. 14 6月, 2013 3 次提交
  3. 13 6月, 2013 3 次提交
    • S
      arm: pxa: Add support for ICP DAS LP-8x4x · c3442c1e
      Sergey Yanovich 提交于
      LP-8x4x is a programmable automation controller by ICP DAS. It is
      shipped with outdated U-Boot v1.3.0
      
      This patch adds enough supports to boot the board:
       - 128M of 128M SDRAM
       - 32M of 48M NOR Flash memory
       - 1 of 4 Serial consoles (PXA FFUART)
       - 2 of 2 Ethernet controllers (DM9000)
      Signed-off-by: NSergey Yanovich <ynvich@gmail.com>
      Series-to: u-boot
      Series-cc: marex
      c3442c1e
    • K
      usb: ehci: add Faraday USB 2.0 EHCI support · e82a316d
      Kuo-Jung Su 提交于
      This patch adds support to both Faraday FUSBH200 and FOTG210,
      the differences between Faraday EHCI and standard EHCI are
      listed bellow:
      
      1. The PORTSC starts at 0x30 instead of 0x44.
      2. The CONFIGFLAG(0x40) is not only un-implemented, and
         also has its address space removed.
      3. Faraday EHCI is a TDI design, but it doesn't
         compatible with the general TDI implementation
         found at both U-Boot and Linux.
      4. The ISOC descriptors differ from standard EHCI in
         several ways. But since U-boot doesn't support ISOC,
         we don't have to worry about that.
      Signed-off-by: NKuo-Jung Su <dantesu@faraday-tech.com>
      CC: Marek Vasut <marex@denx.de>
      e82a316d
    • V
      usb: Use get_unaligned() in usb_endpoint_maxp() for wMaxPacketSize · f903a20d
      Vivek Gautam 提交于
      Use unaligned access to fetch wMaxPacketSize in usb_endpoint_maxp()
      api.
      In its absence we see following data abort message:
      ==============================================================
      data abort
      
          MAYBE you should read doc/README.arm-unaligned-accesses
      
      pc : [<bf794e24>]          lr : [<bf794e1c>]
      sp : bf37c7b0  ip : 0000002f     fp : 00000000
      r10: 00000000  r9 : 00000002     r8 : bf37fecc
      r7 : 00000001  r6 : bf7d8931     r5 : bf7d891c  r4 : bf7d8800
      r3 : bf7d65b0  r2 : 00000002     r1 : bf7d65b4  r0 : 00000027
      Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
      Resetting CPU ...
      
      resetting ...
      ==============================================================
      Signed-off-by: NVivek Gautam <gautam.vivek@samsung.com>
      Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
      Cc: Marek Vasut <marex@denx.de>
      f903a20d
  4. 12 6月, 2013 2 次提交
    • M
      ppc: ppmc7xx: Fix possible out-of-bound access · 8cf69553
      Marek Vasut 提交于
      The flash_info_t->start[] field is limited in size by CONFIG_SYS_MAX_FLASH_SECT
      macro, which is set to 19 for this board in the board config file. If we inspect
      the board/ppmc7xx/flash.c closely, especially the flash_get_size() function, we
      can notice the "switch ((long)flashtest)" at around line 80 having a few results
      which will set flash_info_t->sector_count to value higher than 19, for example
      "case AMD_ID_LV640U" will set it to 128. Notice that right underneath, iteration
      over flash_info_t->start[] happens and the upper bound for the interation is
      flash_info_t->sector_count. Now if the sector_count is 128 as it is for the
      AMD_ID_LV640U case, but the CONFIG_SYS_MAX_FLASH_SECT limiting the start[] is
      only 19, an access past the start[] array much happen. Moreover, during this
      iteration, the field is written to, so memory corruption is inevitable.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Richard Danter <richard.danter@windriver.com>
      8cf69553
    • S
      powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 · a166fbca
      Scott Wood 提交于
      C99's strict aliasing rules are insane to use in low-level code such as a
      bootloader, but as Wolfgang has rejected -fno-strict-aliasing in the
      past, add a union so that 16-bit accesses can be performed.
      
      Compile-tested only.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Acked-by: NWolfgang Denk <wd@denx.de>
      a166fbca
  5. 10 6月, 2013 9 次提交
  6. 08 6月, 2013 4 次提交
    • G
      pci: introduce CONFIG_PCI_INDIRECT_BRIDGE option · 842033e6
      Gabor Juhos 提交于
      The pci_indirect.c file is always compiled when
      CONFIG_PCI is defined although the indirect PCI
      bridge support is not needed by every board.
      
      Introduce a new CONFIG_PCI_INDIRECT_BRIDGE
      config option and only compile indirect PCI
      bridge support if this options is enabled.
      
      Also add the new option into the configuration
      files of the boards which needs that.
      
      Compile tested for powerpc, x86, arm and nds32.
      MAKEALL results:
      
      powerpc:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 641
        Boards with warnings but no errors: 2 ( ELPPC MPC8323ERDB )
        ----------------------------------------------------------
        Note: the warnings for ELPPC and MPC8323ERDB are present even
        without the actual patch.
      
      x86:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 1
        ----------------------------------------------------------
      
      arm:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 311
        ----------------------------------------------------------
      
      nds32:
        --------------------- SUMMARY ----------------------------
        Boards compiled: 3
        ----------------------------------------------------------
      
      Cc: Tom Rini <trini@ti.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      Signed-off-by: NGabor Juhos <juhosg@openwrt.org>
      842033e6
    • M
      generic_board: reduce the redundancy of gd_t struct members · a0ba279a
      Masahiro Yamada 提交于
      This commit refactors common/board_f.c and common/board_r.c
      in order to delete the dest_addr and dest_addr_sp from
      gd_t struct.
      
      As mentioned as follows in include/asm-generic/global_data.h,
      
        /* TODO: is this the same as relocaddr, or something else? */
        unsigned long dest_addr;        /* Post-relocation address of U-Boot */
      
      dest_addr is the same as relocaddr.
      Likewise, dest_addr_sp is the same as start_addr_sp.
      
      It seemed dest_addr/dest_addr_sp was used only as a scratch variable
      to calculate relocaddr/start_addr_sp, respectively.
      
      With a little refactoring, we can delete dest_addr and dest_addr_sp.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      a0ba279a
    • P
      am335x: enable falcon boot mode for mmc (raw and fat) and nand · 12d7a474
      Peter Korsgaard 提交于
      Jump into full u-boot mode if a 'c' character is received on the uart.
      
      We need to adjust the spl bss/malloc area to not overlap with the
      loadaddr of the kernel (sdram + 32k), so move it past u-boot instead.
      
      For raw mmc, we store the kernel parameter area in the free space after
      the MBR (if used). For nand, we use the last sector of the partition
      reserved for u-boot.
      
      This also enables the spl command in the full u-boot so the kernel
      parameter area snapshot can be created.
      Signed-off-by: NPeter Korsgaard <peter.korsgaard@barco.com>
      12d7a474
    • T
      devkit8000: Add SPL_OS for MMC support · b6144dfc
      Tom Rini 提交于
      Signed-off-by: NTom Rini <trini@ti.com>
      b6144dfc
  7. 06 6月, 2013 4 次提交
    • F
      ARM: imx: Fix incorrect usage of CONFIG_SYS_MMC_ENV_PART · 7fb72c79
      Fabio Estevam 提交于
      When running the "save" command several times on a mx6qsabresd we see:
      
      U-Boot > save
      Saving Environment to MMC...
      Writing to MMC(1)... done
      U-Boot > save
      Saving Environment to MMC...
      MMC partition switch failed
      U-Boot > save
      Saving Environment to MMC...
      Writing to MMC(1)... done
      U-Boot > save
      Saving Environment to MMC...
      MMC partition switch failed
      U-Boot > save
      Saving Environment to MMC...
      Writing to MMC(1)... done
      U-Boot > save
      Saving Environment to MMC...
      MMC partition switch failed
      
      This issue is caused by the incorrect usage of CONFIG_SYS_MMC_ENV_PART.
      
      CONFIG_SYS_MMC_ENV_PART should be used to specify the mmc partition that stores
      the environment variables.
      
      On some imx boards it is been incorrectly used to pass the partition of kernel
      and dtb files for the 'mmcpart' script variable.
      
      Remove the CONFIG_SYS_MMC_ENV_PART usage and configure the 'mmcpart' variable
      directly.
      Reported-by: NJason Liu <r64343@freescale.com>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Acked-by: NJason Liu <r64343@freescale.com>
      7fb72c79
    • T
      am33xx/omap4+: Move SRAM_SCRATCH_SPACE_ADDR to <asm/arch/omap.h> · edfcf85a
      Tom Rini 提交于
      The location of valid scratch space is dependent on SoC, so move that
      there.  On OMAP4+ we continue to use SRAM_SCRATCH_SPACE_ADDR.  On
      am33xx/ti814x we want to use what the ROM defines as "public stack"
      which is the area after our defined download image space.  Correct the
      comment about and location of CONFIG_SPL_TEXT_BASE.
      Signed-off-by: NTom Rini <trini@ti.com>
      edfcf85a
    • S
      ARM: bcm2835: add simplefb DT node during bootz/m · ea697ae7
      Stephen Warren 提交于
      Add a DT simple-framebuffer node to DT when booting the Linux kernel.
      This will allow the kernel to inherit the framebuffer configuration from
      U-Boot, and display a graphical boot console, and even run a full SW-
      rendered X server.
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      ea697ae7
    • S
      lcd: add functions to set up simplefb device tree · 6a195d2d
      Stephen Warren 提交于
      simple-framebuffer is a new device tree binding that describes a pre-
      configured frame-buffer memory region and its format. The Linux kernel
      contains a driver that supports this binding. Implement functions to
      create a DT node (or fill in an existing node) with parameters that
      describe the framebuffer format that U-Boot is using.
      
      This will be immediately used by the Raspberry Pi board in U-Boot, and
      likely will be used by the Samsung ARM ChromeBook support soon too. It
      could well be used by many other boards (e.g. Tegra boards with built-in
      LCD panels, which aren't yet supported by the Linux kernel).
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      6a195d2d
  8. 05 6月, 2013 6 次提交