1. 22 Jan, 2015 5 commits
    • Siarhei Siamashka's avatar
      video: sunxi: Hook up SSD2828 with the sunxi video driver · 97ece830
      Siarhei Siamashka authored
      Convert GPIO names from Kconfig strings into pin numbers for
      the 'ssd2828_config' struct. Add SSD2828 initialization between
      enabling the parallel LCD interface and turning on the backlight.
      Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
      Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      97ece830
    • 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: Remove CONFIG_TARGET_FOO for sun4i, sun6i and sun8i boards · 69152708
      Hans de Goede authored
      CONFIG_TARGET_FOO is only used in board/sunxi/Makefile to select the
      dram config for sun5i and sun7i boards and in board/sunxi/gmac.c for some
      special handling of the bananapi/bananapro (both sun7i), iow it is not used
      at all on any sun4i, sun6i and sun8i boards so lets get rid of it there.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      69152708
    • 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
    • Hans de Goede's avatar
      sunxi: display: Make lcd display clk phase configurable · 6515032e
      Hans de Goede authored
      While running some tests with an Olinuxino-A13-Micro + a 7" Olimex LCD module
      I noticed that the screen flickered. This is caused by the lcd display clk
      phase reg value being set to 0, where it should be 1 in this setup.
      
      This commit adds a Kconfig option for the lcd display clk phase, so that we
      can set it per board. This defaults to 1, because looking at all the fex
      files in sunxi-boards, that is by far the most used value.
      
      This commit updated the Ippo and MSI Primo73 tablet defconfigs to override the
      default of 1 with 0, as that is the correct value for those tablets, this
      keeps the register settings the same as before this commit.
      
      The Olinuxino-A13 defconfigs are not updated, changing the register setting
      for these boards from 0 to 1, this is intentional.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      6515032e
  2. 14 Jan, 2015 16 commits
  3. 12 Jan, 2015 1 commit
  4. 25 Nov, 2014 3 commits
  5. 24 Nov, 2014 1 commit
  6. 13 Nov, 2014 4 commits
  7. 05 Nov, 2014 4 commits
    • 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
    • Ian Campbell's avatar
      sunxi: Kconfig: Make SPL_FEL a toplevel Kconfig option · 4ce9941d
      Ian Campbell authored
      It's unfortunate that this needs to be present in both .config and spl/.config
      since it makes it slightly hard to enable FEL mode for a regular defconfig. It
      can be done with:
          echo CONFIG_SPL_FEL=y >> .config
          echo CONFIG_SPL_FEL=y >> spl/.config
      
      Ideally only one of those would be needed.
      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>
      4ce9941d
    • Ian Campbell's avatar
      sunxi: kconfig: Rename TARGET_SUN[45678]I to MACH_SUN[45678]I. · c3be2793
      Ian Campbell authored
      Now we have CONFIG_ARCH_SUNXI as the toplevel, CONFIG_MACH_SUN[45678]I as the
      per-SoC option and leave CONFIG_TARGET_BLAH free for individual boards in the
      future.
      
      Done automatically with:
          sed -i -e 's/TARGET_\(SUN[45678]I\)/MACH_\1/g' $(git grep -l TARGET_SUN[45678]I)
      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>
      c3be2793
    • Ian Campbell's avatar
      sunxi: kconfig: Add top-level ARCH_SUNXI · 2c7e3b90
      Ian Campbell authored
      And make TARGET_SUN[45678]I a choice variable under this.
      
      configs updated with:
          sed -i -e 's/^\(\+S:\)\?CONFIG_TARGET_SUN.I=y/\1CONFIG_ARCH_SUNXI=y\n&/g' configs/*
      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>
      2c7e3b90
  8. 29 Oct, 2014 1 commit
    • Georges Savoundararadj's avatar
      kconfig: arm: introduce symbol for ARM CPUs · 2e07c249
      Georges Savoundararadj authored
      This commit introduces a Kconfig symbol for each ARM CPU:
      CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,
      CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100.
      Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selected
      for CPU_ARM1176 and CPU_V7.
      
      For each target, the corresponding CPU is selected and the definition of
      SYS_CPU in the corresponding Kconfig file is removed.
      
      Also, it removes redundant "string" type in some Kconfig files.
      Signed-off-by: default avatarGeorges Savoundararadj <savoundg@gmail.com>
      Acked-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
      2e07c249
  9. 24 Oct, 2014 5 commits