1. 27 8月, 2008 2 次提交
  2. 26 8月, 2008 13 次提交
  3. 25 8月, 2008 12 次提交
    • G
      Correct ARM Versatile Timer Initialization · e8f1207b
      Gururaja Hebbar K R 提交于
       - According to ARM Dual-Timer Module (SP804) TRM (ARM DDI0271),
         -- Timer Value Register @ TIMER Base + 4 is Read-only.
         -- Prescale Value (Bits 3-2 of TIMER Control register)
      	can only be one of 00,01,10. 11 is undefined.
         -- CFG_HZ for Versatile board is set to
      	#define CFG_HZ		(1000000 / 256)
      	So Prescale bits is set to indicate
      	- 8 Stages of Prescale, Clock divided by 256
       - The Timer Control Register has one Undefined/Shouldn't Use Bit
         So we should do read/modify/write Operation
      Signed-off-by: NGururaja Hebbar <gururajakr@sanyo.co.in>
      e8f1207b
    • G
      Add ARM AMBA PL031 RTC Support · 535cfa4f
      Gururaja Hebbar K R 提交于
      Signed-off-by: NGururaja Hebbar K R <gururajakr@sanyo.co.in>
      535cfa4f
    • H
      ARM DaVinci: Removed redundant NAND initialization code. · e3941167
      Hugo Villeneuve 提交于
      ARM DaVinci: Removed redundant NAND initialization code.
      Signed-off-by: NHugo Villeneuve <hugo.villeneuve@lyrtech.com>
      e3941167
    • H
      ARM DaVinci: Fix compilation error with new MTD code. · b3fb663b
      Hugo Villeneuve 提交于
      ARM DaVinci: Fix compilation error with new MTD code.
      Signed-off-by: NHugo Villeneuve <hugo.villeneuve@lyrtech.com>
      b3fb663b
    • G
      Add note on dereferencing /aliases pointers · 109c30fb
      Gerald Van Baren 提交于
      Replace the "must quote special characters" note with a hint on
      how to dereference /aliases pointers by omitting the leading "/".
      This feature was introduced by Kumar Gala as a libfdt enhancement
      in commit ed035708235332c3c117ee3bb1a426063f03cfcb.
      
      Example:
      
      => fdt print /aliases
      aliases {
              ethernet0 = "/qe@e0100000/ucc@2000";
              ethernet1 = "/qe@e0100000/ucc@3000";
              serial0 = "/soc8360@e0000000/serial@4500";
              serial1 = "/soc8360@e0000000/serial@4600";
              pci0 = "/pci@e0008500";
      };
      => fdt print ethernet0
      ucc@2000 {
              device_type = "network";
              compatible = "ucc_geth";
              cell-index = <0x1>;
              reg = <0x2000 0x200>;
              interrupts = <0x20>;
              interrupt-parent = <0x2>;
              local-mac-address = [00 00 00 00 00 00];
              rx-clock-name = "none";
              tx-clock-name = "clk9";
              phy-handle = <0x3>;
              phy-connection-type = "rgmii-id";
              pio-handle = <0x4>;
      };
      Signed-off-by: NGerald Van Baren <vanbaren@cideas.com>
      109c30fb
    • K
      libfdt: Add support for using aliases in fdt_path_offset() · feeca3f5
      Kumar Gala 提交于
      If the path doesn't start with '/' check to see if it matches some alias
      under "/aliases" and substitute the matching alias value in the path
      and retry the lookup.
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NGerald Van Baren <vanbaren@cideas.com>
      feeca3f5
    • D
      libfdt: Implement fdt_get_property_namelen() and fdt_getprop_namelen() · 0219399a
      David Gibson 提交于
      As well as fdt_subnode_offset(), libfdt includes an
      fdt_subnode_offset_namelen() function that takes the subnode name to
      look up not as a NUL-terminated string, but as a string with an
      explicit length.  This can be useful when the caller has the name as
      part of a longer string, such as a full path.
      
      However, we don't have corresponding 'namelen' versions for
      fdt_get_property() and fdt_getprop().  There are less obvious use
      cases for these variants on property names, but there are
      circumstances where they can be useful e.g. looking up property names
      which need to be parsed from a longer string buffer such as user input
      or a configuration file, or looking up an alias in a path with
      IEEE1275 style aliases.
      
      So, since it's very easy to implement such variants, this patch does
      so.  The original NUL-terminated variants are, of course, implemented
      in terms of the namelen versions.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      0219399a
    • D
      libfdt: Forgot one function when cleaning the namespace · f171746f
      David Gibson 提交于
      In commit b6d80a20fc293f3b995c3ce1a6744a5574192125, we renamed all
      libfdt functions to be prefixed with fdt_ or _fdt_ to minimise the
      chance of collisions with things from whatever package libfdt is
      embedded in, pulled into the libfdt build via that environment's
      libfdt_env.h.
      
      Except... I missed one.  This patch applies the same treatment to
      _stringlist_contains().  While we're at it, also make it static since
      it's only used in the same file.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      f171746f
    • W
      libfdt: Improve documentation in libfdt.h · 46390da1
      Wolfram Sang 提交于
      Fix a few typos and mistakes.
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      46390da1
    • D
      libfdt: Increase namespace-pollution paranoia · fc7758ee
      David Gibson 提交于
      libfdt is supposed to easy to embed in projects all and sundry.
      Often, it won't be practical to separate the embedded libfdt's
      namespace from that of the surrounding project.  Which means there can
      be namespace conflicts between even libfdt's internal/static functions
      and functions or macros coming from the surrounding project's headers
      via libfdt_env.h.
      
      This patch, therefore, renames a bunch of libfdt internal functions
      and macros and makes a few other chances to reduce the chances of
      namespace collisions with embedding projects.  Specifically:
      	- Internal functions (even static ones) are now named _fdt_*()
      
      	- The type and (static) global for the error table in
                fdt_strerror() gain an fdt_ prefix
      
      	- The unused macro PALIGN is removed
      
      	- The memeq and streq macros are removed and open-coded in the
                users (they were only used once each)
      
      	- Other macros gain an FDT_ prefix
      
      	- To save some of the bulk from the previous change, an
                FDT_TAGALIGN() macro is introduced, where FDT_TAGALIGN(x) ==
                FDT_ALIGN(x, FDT_TAGSIZE)
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      fc7758ee
    • D
      dtc: Enable and fix -Wcast-qual warnings · c6683026
      David Gibson 提交于
      Enabling -Wcast-qual warnings in dtc shows up a number of places where
      we are incorrectly discarding a const qualification.  There are also
      some places where we are intentionally discarding the 'const', and we
      need an ugly cast through uintptr_t to suppress the warning.  However,
      most of these are pretty well isolated with the *_w() functions.  So
      in the interests of maximum safety with const qualifications, this
      patch enables the warnings and fixes the existing complaints.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NGerald Van Baren <vanbaren@cideas.com>
      c6683026
    • D
      dtc: Enable and fix -Wpointer-arith warnings · ef4e8ce1
      David Gibson 提交于
      This patch turns on the -Wpointer-arith option in the dtc Makefile,
      and fixes the resulting warnings due to using (void *) in pointer
      arithmetic.  While convenient, pointer arithmetic on void * is not
      portable, so it's better that we avoid it, particularly in libfdt.
      
      Also add necessary definition of uintptr_t needed by David Gibson's
      changeset "dtc: Enable and fix -Wpointer-arith warnings" (the definition
      comes from stdint.h, which u-boot doesn't have). -- gvb
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NGerald Van Baren <vanbaren@cideas.com>
      ef4e8ce1
  4. 23 8月, 2008 1 次提交
  5. 22 8月, 2008 4 次提交
  6. 21 8月, 2008 8 次提交