Skip to content
Snippets Groups Projects
  1. Feb 21, 2014
  2. Feb 20, 2014
  3. Feb 19, 2014
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored
      
      Now we are ready to switch over to real Kbuild.
      
      This commit disables temporary scripts:
        scripts/{Makefile.build.tmp, Makefile.host.tmp}
      and enables real Kbuild scripts:
        scripts/{Makefile.build,Makefile.host,Makefile.lib}.
      
      This switch is triggered by the line in scripts/Kbuild.include
        -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
        +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
      
      We need to adjust some build scripts for U-Boot.
      But smaller amount of modification is preferable.
      
      Additionally, we need to fix compiler flags which are
      locally added or removed.
      
      In Kbuild, it is not allowed to change CFLAGS locally.
      Instead, ccflags-y, asflags-y, cppflags-y,
      CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
      are prepared for that purpose.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      6825a95b
    • Masahiro Yamada's avatar
      kbuild: change out-of-tree build · 9e414032
      Masahiro Yamada authored
      
      This commit changes the working directory
      where the build process occurs.
      
      Before this commit, build process occurred under the source
      tree for both in-tree and out-of-tree build.
      
      That's why we needed to add $(obj) prefix to all generated
      files in makefiles like follows:
        $(obj)u-boot.bin:  $(obj)u-boot
      
      Here, $(obj) is empty for in-tree build, whereas it points
      to the output directory for out-of-tree build.
      
      And our old build system changes the current working directory
      with "make -C <sub-dir>" syntax when descending into the
      sub-directories.
      
      On the other hand, Kbuild uses a different idea
      to handle out-of-tree build and directory descending.
      
      The build process of Kbuild always occurs under the output tree.
      When "O=dir/to/store/output/files" is given, the build system
      changes the current working directory to that directory and
      restarts the make.
      
      Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj=<sub-dir>"
      syntax for descending into sub-directories.
      (We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
      This means the current working directory is always the top
      of the output directory.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      9e414032
    • Heiko Schocher's avatar
      net, phy: atheros ar803x bug · 9137d19b
      Heiko Schocher authored
      
      commit 626ee1e3 "phylib: update atheros ar803x phy"
      
      leads in failing ethernet on the pxm2 board.
      
      Calling genphy_config() instead of ar8021_config(),
      which seems for ar8021 phys not ar803x phys, make
      it working again.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      9137d19b
    • Soren Brinkmann's avatar
      serial_zynq: Migrate to Zynq clock framework · 19605e2e
      Soren Brinkmann authored
      
      Remove hard coded frequencies and use Zynq's clock framework to obtain
      the UART clock frequency.
      
      Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      19605e2e
    • Soren Brinkmann's avatar
      net: zynq_gem: Calculate clock dividers dynamically · 97598fcf
      Soren Brinkmann authored
      
      Remove hard coded clock divider setting and use the Zynq clock framework
      to dynamically calculate appropriate dividers at run time.
      
      Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      97598fcf
    • Soren Brinkmann's avatar
      net: zynq_gem: Move RCLK details out of driver · 1cd46ed2
      Soren Brinkmann authored
      
      The GEM driver should not need to know about Zynq specific details of
      RCLK related registers and bitfields in the SLCR. Move those details to
      the slcr driver.
      
      Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      1cd46ed2
    • Michal Simek's avatar
      zynq: serial: Simplify serial driver initialization · bf834950
      Michal Simek authored
      
      Define both serial uarts in the driver and return
      default uart based on board configuration.
      
      - Move baseaddresses to hardware.h
      - Define default baudrate and clock values
      
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      bf834950
  4. Feb 11, 2014
  5. Feb 07, 2014
  6. Feb 06, 2014
Loading