Skip to content
Snippets Groups Projects
  1. Aug 26, 2008
  2. Aug 25, 2008
    • Gerald Van Baren's avatar
      Add note on dereferencing /aliases pointers · 109c30fb
      Gerald Van Baren authored
      
      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: default avatarGerald Van Baren <vanbaren@cideas.com>
      109c30fb
  3. Aug 20, 2008
  4. Jul 09, 2008
    • Andrew Klossner's avatar
      Fix printf errors. · dc4b0b38
      Andrew Klossner authored
      
      The compiler will help find mismatches between printf formats and
      arguments if you let it.  This patch adds the necessary attributes to
      declarations in include/common.h, then begins to correct the resulting
      compiler warnings.  Some of these were bugs, e.g., "$d" instead of
      "%d" and incorrect arguments.  Others were just annoying, like
      int-long mismatches on a system where both are 32 bits.  It's worth
      fixing the annoying errors to catch the real ones.
      
      Signed-off-by: default avatarAndrew Klossner <andrew@cesa.opbu.xerox.com>
      dc4b0b38
  5. Jun 11, 2008
  6. Jun 10, 2008
  7. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  8. Apr 02, 2008
    • Andy Fleming's avatar
      Fix fdt set command to conform to dts spec · 4abd844d
      Andy Fleming authored
      
      The fdt set command was treating properties specified as <00> and <0011>
      as byte streams, rather than as an array of cells.  As we already have
      syntax for expressing the desire for a stream of bytes ([ xx xx ...]),
      we should use the <> syntax to describe arrays of cells, which are always
      32-bits per element.  If we imagine this likely (IMHO) scenario:
      
      > fdt set /ethernet-phy@1 reg <1>
      
      With the old code, this would create a bad fdt, since the reg cell would be
      made to be one byte in length.  But the cell must be 4 bytes, so this would
      break mysteriously.
      
      Also, the dts spec calls for constants inside the angle brackets (<>)
      to conform to C constant standards as they pertain to base.
      Take this scenario:
      
      > fdt set /ethernet@f00 reg <0xe250000\ 0x1000>
      
      The old fdt command would complain that it couldn't parse that.  Or, if you
      wanted to specify that a certain clock ran at 33 MHz, you'd be required to
      do this:
      
      > fdt set /mydev clock <1f78a40>
      
      Whereas the new code will accept decimal numbers.
      
      While I was in there, I extended the fdt command parser to handle property
      strings which are split across multiple arguments:
      
      > fdt set /ethernet@f00 interrupts < 33 2 34 2 36 2 >
      > fdt p /ethernet@f00
      ethernet@f00 {
      	interrupts = <0x21 0x2 0x22 0x2 0x24 0x2>;
      };
      
      Lastly, the fdt print code was rearranged slightly to print arrays of cells
      if the length of the property is a multiple of 4 bytes, and to not print
      leading zeros.
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      4abd844d
  9. Mar 25, 2008
  10. Mar 19, 2008
  11. Jan 08, 2008
  12. Dec 08, 2007
  13. Nov 22, 2007
  14. Nov 21, 2007
  15. Aug 10, 2007
  16. Apr 06, 2007
  17. Mar 31, 2007
Loading