1. 02 Feb, 2015 1 commit
  2. 23 Jan, 2015 2 commits
    • Hans de Goede's avatar
      sunxi: Convert sun7i boards to use auto dram configuration · 389046be
      Hans de Goede authored
      Currently we've separate detailed dram settings for all sun7i boards, this
      moves them over to using auto dram configuration so that we can get rid of
      all the per board dram_foo.c files.
      
      This has been tested on a A20-Olinuxino-Lime, A20-Olinuxino_MICRO, Bananapi,
      Bananapro, Cubieboard2, Cubietruck, Mele_M3 and a Linksprite_pcDuino3.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      389046be
    • Hans de Goede's avatar
      sunxi: Drop qt840a_defconfig · 56333be9
      Hans de Goede authored
      The qt840a is one of the many tv-boxes using the "i12" A20 pcb, but it
      populates only one of the 2 places for a 16 bit dram ic, thus reducing
      the buswidth to 16 bits, and the amount of ram to 512M, which is why we
      had a separate config for it.
      
      This commit switches the generic i12-tvbox_defconfig over to DRAM
      autoconfiguration, so that it will work with the qt840a too, and drops the
      qt840a specific config, like we've done with other memory-amount specific
      configs before.
      
      Tested on a generic i12-tvbox with 32 bit bus-width / 1G RAM, and on a
      qt840a with 16 bit bus-width / 512M RAM.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      56333be9
  3. 22 Jan, 2015 3 commits
    • Hans de Goede's avatar
      sunxi: Add mk802_a10s board / defconfig · 6c46c8e8
      Hans de Goede authored
      The mk802_a10s re-uses is the "classic" mk802 case and functionality, but has
      an A10s SoC inside rather then the A10, it features 512M or 1G RAM, 4G nand,
      a mini-hdmi female connector, USB-A receptacle, mini-usb receptacle (OTG)
      and a sdio realtek wifi chip. Unlike the original mk802 it does have a pmic,
      the axp152.
      
      For more details see: http://linux-sunxi.org/Semitime_g2Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      6c46c8e8
    • Hans de Goede's avatar
      sunxi: Convert sun4i boards to use auto dram configuration · 2ddd8012
      Hans de Goede authored
      Currently we've separate detailed dram settings for all sun4i boards, this
      moves them over to using auto dram configuration so that we can get rid of
      all the per board dram_foo.c files.
      
      Tested-by: Hans de Goede <hdegoede@redhat.com> on a A10-OLinuXino-Lime,
       Chuwi_V7_CW0825 and ba10_tv_box
      Tested-by: Zoltan HERPAI <wigyori@uid0.hu> on a pcduino
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      2ddd8012
    • Hans de Goede's avatar
      sunxi: Stop differentiating between 512M and 1G variants of the same board · 8ffc487c
      Hans de Goede authored
      While working on adding more boards I noticed that we lack a config for
      the 512M cubieboard, and that some of the new boards which I want to add also
      have 512M and 1G variants, rather then adding 2 defconfig's for all of these,
      lets switch the exising boards which have both a 512M and 1024M variant over
      to the sun4i dram autoconfig code.
      
      This also drops the foo_RAMSIZE_defconfig variants of boards where we currently
      have 2 separate configs already.
      
      Note:
      1) The newly introduced CONFIG_DRAM_EMR1 kconfig value is not used with
      a value other then its default for now, but we need this to be configurable
      to support some new boards with auto dram config.
      
      2) We always set all CONFIG_DRAM_foo values in defconfigs, even if they match
      the defaults, this is done to make it more clear what values are used for a
      certain board.
      
      This has been tested on a Mele A1000, Mini-X and a Cubieboard, all 1G
      variants, the dram autoconfig code has also been tested on a 512M mk802
      (a defconfig for the mk802 is added in a later patch).
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      8ffc487c
  4. 14 Jan, 2015 3 commits
  5. 05 Nov, 2014 1 commit
    • Ian Campbell's avatar
      sunxi: kconfig: Introduce CONFIG_TARGET_<BOARD> · d9a20476
      Ian Campbell authored
      This was done automatically with the following bits of scripting.
      
      The Kconfig choice content was generated with this script snippet:
          for i in $(git grep -l CONFIG_ARCH_SUNXI configs/*) ; do
              TARGET=$(sed -n -e 's/CONFIG_SYS_EXTRA_OPTIONS="\([^,"]\+\).*/\1/p' $i);
              MACH=$(sed -n -e 's/.*CONFIG_\(MACH_SUN.I\)=./\1/p' $i)
              echo "config TARGET_$TARGET"
              echo "	bool \"$TARGET\""
              echo "	depends on $MACH"
              echo
          done
      
      defconfigs were updated with a sed script (t):
          # Extract board from first entry of CONFIG_SYS_EXTRA_OPTIONS,
          /^CONFIG_SYS_EXTRA_OPTIONS/ {
              s/^\(CONFIG_SYS_EXTRA_OPTIONS="\)\([^,"]\+\),\?\(.*\)/\1\3\nCONFIG_TARGET_\2=y/;
      
              # Print and delete first line (CONFIG_SYS_EXTRA_OPTIONS), leaving
              # CONFIG_TARGET_<BOARD> in pattern space
              P;D;
          };
      
          # Move CONFIG_TARGET_<BOARD> to hold space
          /^CONFIG_TARGET/{h;n}
      
          # Print CONFIG_TARGET_<BOARD> after CONFIG_MACH_<SOC> in either SPL or
          # normal mode.
          /^CONFIG_MACH/{p;g;p;n};
          /^\+S:CONFIG_MACH/{p;g;s/^CONFIG_TARGET/+S:&/;p;n};
      
          # Print any remaining lines normally
          p;
      Run as:
          sed -i -n -f t $(git grep -l CONFIG_ARCH_SUNXI configs/*)
      and then manually removing the one instance of CONFIG_SYS_EXTRA_OPTIONS="" from
      Colombus_defconfig
      
      board/sunxi/Makefile was updated with:
          sed -e 's/^\(obj-\$(CONFIG_\)\(.*\)\().*+= dram_.*\)/\1TARGET_\2\3/g' board/sunxi/Makefile
      and manually retabbing a few lines to line up again.
      
      The board descriptions could certainly be improved.
      Signed-off-by: default avatarIan Campbell <ijc@hellion.org.uk>
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      d9a20476
  6. 24 Oct, 2014 2 commits
  7. 05 Sep, 2014 1 commit
  8. 31 Jul, 2014 5 commits
  9. 18 Jul, 2014 1 commit
  10. 06 Jul, 2014 2 commits
  11. 25 May, 2014 6 commits