1. 13 10月, 2009 5 次提交
    • S
      TI DaVinci: DM6446: Fix Compilation error in NAND mode · 5d0f5362
      Sandeep Paulraj 提交于
      The Default mode that is built for the Davinci DVEVM happens
      to be the NOR mode.
      When we want to build for the NAND mode, we get a compilation
      error. This is overcome by defining the CONFIG_MTD_DEVICE
      flag in the NAND mode.
      The image built for NAND mode was successfully tested on the
      DaVinci DM6446 EVM.
      Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
      5d0f5362
    • T
      OMAP3 Move cache routine to cache.S · 7a2aa8b6
      Tom Rix 提交于
      v7_flush_dcache_all, because it depends on omap ROM code is not
      generic.  Rename the function to 'invalidate_dcache' and move it
      to the omap cpu directory.
      
      Collect the other omap cache routines l2_cache_enable and
      l2_cache_disable with invalide_dcache into cache.S.  This
      means removing the old cache.c file that contained l2_cache_enable
      and l2_cache_disable.
      
      The conversion from cache.c to cache.S was done most through
      disassembling the uboot binary.  The only significant change was
      to change the comparision for the return of get_cpu_rev from
      
         cmp	r0, #0
         beq	earlier_than_label
      
      Which was lost information to
      
         cmp	r0, #CPU_3XX_ES20
         blt	earlier_than_label
      
      The paths through the enable routine were verified by
      adding an infinite loop and seeing the hang.  Then
      removing the infinite loop and seeing it continue.
      
      The disable routine is similar enough that it was not
      tested with this method.
      
      Run tested by cold booting from nand on beagle and zoom1.
      Compile tested on MAKEALL arm.
      Signed-off-by: NTom Rix <Tom.Rix@windriver.com>
      7a2aa8b6
    • S
      TI DaVinci: Remove references to SZ_xx · a16df2c1
      Sandeep Paulraj 提交于
      This patch removes the asm/sizes.h header file from being
      included in the DaVinci SOC configs.
      References to SZ_xx have been replaced by appropriate
      bit shifted values.
      Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
      Acked-by: NWolfgang Denk <wd@denx.de>
      a16df2c1
    • W
      14abfe36
    • E
      Leave x86emu op code tables in default section · 285870f7
      Ed Swarthout 提交于
      Forcing the tables into got2 caused extra relocation when using -mrelocatable.
      This patch requires any board defining CONFIG_BIOSEMU to use -mrelocatable.
      Signed-off-by: NEd Swarthout <Ed.Swarthout@freescale.com>
      Acked-by: NJin Zhengxiong <Jason.Jin@freescale.com>
      285870f7
  2. 11 10月, 2009 3 次提交
    • L
    • L
    • L
      Rewrite the miiphybb (Bit-banged MII bus driver) in order to support an... · 4ba31ab3
      Luigi 'Comio' Mantellini 提交于
      Rewrite the miiphybb (Bit-banged MII bus driver) in order to support an arbitrary number of mii buses.
      
      This feature is useful when your board uses different mii buses for different
      phys and all (or a part) of these buses are implemented via bit-banging mode.
      
      The driver requires that the following macros should be defined into the board
      configuration file:
      
      CONFIG_BITBANGMII       - Enable the miiphybb driver
      CONFIG_BITBANGMII_MULTI - Enable the multi bus support
      
      If the CONFIG_BITBANGMII_MULTI is not defined, the board's config file needs
      to define at least the following macros:
      
      MII_INIT      - Generic code to enable the MII bus (optional)
      MDIO_DECLARE  - Declaration needed to access to the MDIO pin (optional)
      MDIO_ACTIVE   - Activate the MDIO pin as out pin
      MDIO_TRISTATE - Activate the MDIO pin as input/tristate pin
      MDIO_READ     - Read the MDIO pin
      MDIO(v)       - Write v on the MDIO pin
      MDC_DECLARE   - Declaration needed to access to the MDC pin (optional)
      MDC(v)        - Write v on the MDC pin
      
      The previous macros make the driver compatible with the previous version
      (that didn't support the multi-bus).
      
      When the CONFIG_BITBANGMII_MULTI is also defined, the board code needs to fill
      the bb_miiphy_buses[] array with a record for each required bus and declare
      the bb_miiphy_buses_num variable with the number of mii buses.
      The record (struct bb_miiphy_bus) has the following fields/callbacks (see
      miiphy.h for details):
      
      char name[]            - The symbolic name that must be equal to the MII bus
                               registered name
      int (*init)()          - Initialization function called at startup time (just
                               before the Ethernet initialization)
      int (*mdio_active)()   - Activate the MDIO pin as output
      int (*mdio_tristate)() - Activate the MDIO pin as input/tristate pin
      int (*set_mdio)()      - Write the MDIO pin
      int (*get_mdio)()      - Read the MDIO pin
      int (*set_mdc)()       - Write the MDC pin
      int (*delay)()         - Delay function
      void *priv             - Private data used by board specific code
      
      The board code will look like:
      
      struct bb_miiphy_bus bb_miiphy_buses[] = {
       { .name = miibus#1, .init = b1_init, .mdio_active = b1_mdio_active, ... },
       { .name = miibus#2, .init = b2_init, .mdio_active = b2_mdio_active, ... },
       ...
      int bb_miiphy_buses_num = sizeof(bb_miiphy_buses) /
                                sizeof(bb_miiphy_buses[0]);
      Signed-off-by: NLuigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
      Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
      4ba31ab3
  3. 09 10月, 2009 1 次提交
  4. 08 10月, 2009 4 次提交
    • J
      relocation: Do not relocate NULL pointers. · afc3ba0f
      Joakim Tjernlund 提交于
      NULL is an absolute value and should not be relocated.
      After this correction code like:
       void weak_fun(void) __attribute__((weak));
       printf("weak_fun:%p\n", weak_fun);
      will still print null after relocation.
      Signed-off-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      afc3ba0f
    • P
      85xx: Ensure BSS segment isn't linked at address 0 · 3beb40c2
      Peter Tyser 提交于
      When U-Boot is relocated from flash to RAM pointers are modified
      accordingly.  However, pointers initialzed with NULL values should not
      be modified so that they maintain their intended NULL value.  If the
      BSS segment is linked at address 0 its address will not be
      updated as necessary during relocation.
      
      This is a temporary workaround.  The end goal is to add support to
      U-Boot to dynamically locate the BSS at an arbitrary address at
      runtime.  When the ability to fixup the BSS inteligently is
      added, this workaround can be removed and the 85xx link script
      can put the BSS at a fixed address at link time.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      3beb40c2
    • D
      tqm5200: Correct comment and code in post_hotkeys_pressed. · 95c44ec4
      Detlev Zundel 提交于
      This fixes the code and the comment according to the original intent of
      doing an intensive memory test when PSC6_3 is pulled low on the STK52xx.
      Notably PORT_CONFIG will be overridden with this correct code now,
      so beware.
      
      The original code only worked by coincidence depending on the PORT_CONFIG
      setting from the header file.  The new code was tested to ensure that the
      (undocumented) memory test still works on the STK52x.
      Signed-off-by: NDetlev Zundel <dzu@denx.de>
      CC: Martin Krause <Martin.Krause@tqs.de>
      
      Minor white-space cleanup.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      95c44ec4
    • W
      mpc512x: fix fixed_sdram() init code. · da01f534
      Wolfgang Denk 提交于
      Commit 054197ba and later fixes used an array to initialize some of
      the MDDRC parameters; however, the use of an array turned out to be a
      bad idea as it was not possible to correlate structure entries to
      array indices in readable and reliable way. Now we use a struct
      instead, which makes this self-explanatory.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      da01f534
  5. 07 10月, 2009 7 次提交
  6. 05 10月, 2009 7 次提交
  7. 04 10月, 2009 2 次提交
  8. 03 10月, 2009 11 次提交