gerrit | 3 Dec 01:39 2013

hstub: add Sansa Express lcd code

commit a15a15ba61d3b153197699e8a4eba452075de056
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Tue Dec 3 01:34:05 2013 +0100

    hstub: add Sansa Express lcd code

    Change-Id: I61fc58e3c97a3666eac98d21226865181b85eef1

diff --git a/utils/hwstub/tools/lua/sansaexpress.lua b/utils/hwstub/tools/lua/sansaexpress.lua
new file mode 100644
index 0000000..f152192
--- /dev/null
+++ b/utils/hwstub/tools/lua/sansaexpress.lua
 <at>  <at>  -0,0 +1,97  <at>  <at> 
+--
+-- Sansa Express
+--
+SANSAEXPRESS = {} 
+
+function SANSAEXPRESS.set_backlight(val)
+    STMP.pinctrl.pin(3, 13).muxsel('GPIO')
+    STMP.pinctrl.pin(3, 13).enable()
+    STMP.pinctrl.pin(3, 13).clr()
+    for i = 0, val - 1 do
+        STMP.pinctrl.pin(3, 13).clr()
+        STMP.pinctrl.pin(3, 13).set()
+    end
+end
+
+function SANSAEXPRESS.lcd_init()
(Continue reading)

gerrit | 2 Dec 20:48 2013

Initial commit for the YP-Z5 port

commit 1deab739803ee768e393bba41446450a792b6410
Author: Lorenzo Miori <memorys60 <at> gmail.com>
Date:   Fri Nov 15 22:05:40 2013 +0100

    Initial commit for the YP-Z5 port
    
    The port uses the imx233 soc, it's a STMP3650 based Samsung player
    
    Change-Id: I50b6d7e77fd292fab5ed26de87853cd5aaf9eaa4
    Reviewed-on: http://gerrit.rockbox.org/490
    Reviewed-by: Amaury Pouly <amaury.pouly <at> gmail.com>

diff --git a/apps/SOURCES b/apps/SOURCES
index 3968666..0e7fc3e 100644
--- a/apps/SOURCES
+++ b/apps/SOURCES
 <at>  <at>  -297,5 +297,7  <at>  <at>  keymaps/keymap-zen.c
 keymaps/keymap-ma.c
 #elif CONFIG_KEYPAD == SONY_NWZ_PAD
 keymaps/keymap-nwz.c
+#elif CONFIG_KEYPAD == SAMSUNG_YPZ5_PAD
+keymaps/keymap-ypz5.c
 #endif
 
diff --git a/apps/keymaps/keymap-ypz5.c b/apps/keymaps/keymap-ypz5.c
new file mode 100644
index 0000000..edeebba
--- /dev/null
+++ b/apps/keymaps/keymap-ypz5.c
 <at>  <at>  -0,0 +1,406  <at>  <at> 
(Continue reading)

gerrit | 2 Dec 20:22 2013

regtools: update xml format documentation

commit 15155ed10006f84c42bc435e354a16b3f391d55e
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Thu Nov 21 15:08:01 2013 +0000

    regtools: update xml format documentation

    Change-Id: I7e293532983f350a6f7cd9c7bc2bc6633c8fd3f2
    Reviewed-on: http://gerrit.rockbox.org/671
    Reviewed-by: Amaury Pouly <amaury.pouly <at> gmail.com>

diff --git a/utils/regtools/desc/XML.txt b/utils/regtools/desc/XML.txt
index 15164a4..a90f875 100644
--- a/utils/regtools/desc/XML.txt
+++ b/utils/regtools/desc/XML.txt
 <at>  <at>  -100,6 +100,8  <at>  <at>  In the special case where the addresses of the register follow a pattern, an
 explicit formula can be described as part of the format. There is no specific
 requirement on the formula except that the register addresses be indexed by
 a variable "n" which range from 0 to N-1 where N is the number of address.
+The formula is not used for anything except header generation where it is
+handy to have a formula rather a long list of conditionals.
 The following properties are defined:
 - "string" (mandatory,string): the equation describing the addresses.

 <at>  <at>  -130,4 +132,4  <at>  <at>  Each value is enclosed in a "value" tag. The following properties are defined:

 Example:
 <value name="DIV_BY_1" value="0x0" />
-<value name="DIV_BY_2" value="0x1" />
\ No newline at end of file
+<value name="DIV_BY_2" value="0x1" />
(Continue reading)

gerrit | 2 Dec 20:10 2013

imx233: don't compile fm tuner code in bootloader

commit 23c6421f38eb2c47b725a3b8f57f8e74eaff2fd6
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Mon Dec 2 20:09:56 2013 +0100

    imx233: don't compile fm tuner code in bootloader

    Change-Id: Icd36e6b03965272eb169a19630b720f38bac6d9e

diff --git a/firmware/SOURCES b/firmware/SOURCES
index 8429b7e..843e5cc 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
 <at>  <at>  -1165,7 +1165,9  <at>  <at>  target/arm/tms320dm320/creative-zvm/usb-creativezvm.c

 #if defined(CREATIVE_ZEN) || defined(CREATIVE_ZENXFI) || defined(CREATIVE_ZENMOZAIC) \
     || defined(CREATIVE_ZENV)
+    #ifndef BOOTLOADER
 target/arm/imx233/fmradio-imx233.c
+#endif
 target/arm/imx233/creative-zen/backlight-zen.c
 # if defined(CREATIVE_ZEN) || defined(CREATIVE_ZENXFI)
 target/arm/imx233/creative-zen/lcd-zen.c
 <at>  <at>  -1182,7 +1184,9  <at>  <at>  target/arm/imx233/button-lradc-imx233.c
 #endif

 #ifdef CREATIVE_ZENXFI2
+#ifndef BOOTLOADER
 target/arm/imx233/fmradio-imx233.c
+#endif
 target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c
(Continue reading)

gerrit | 2 Dec 19:59 2013

imx233: fix red on stmp3600

commit 9dab30adf0d7b4153dfcc4dc5ca5bfc7129924e6
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Mon Dec 2 19:59:16 2013 +0100

    imx233: fix red on stmp3600

    Change-Id: I56527f2d643cb3c453e08cd1f759b80ce10ceb66

diff --git a/firmware/target/arm/imx233/powermgmt-imx233.c b/firmware/target/arm/imx233/powermgmt-imx233.c
index 26fb573..7a1ea83 100644
--- a/firmware/target/arm/imx233/powermgmt-imx233.c
+++ b/firmware/target/arm/imx233/powermgmt-imx233.c
 <at>  <at>  -97,6 +97,7  <at>  <at>  void powermgmt_init_target(void)

 void charging_algorithm_step(void)
 {
+#if IMX233_SUBTARGET >= 3700
     bool is_5v_present = usb_detect() == USB_INSERTED;

     /* initial state & 5v -> battery transition */
 <at>  <at>  -185,6 +186,7  <at>  <at>  void charging_algorithm_step(void)
         BF_SET(POWER_CHARGE, PWD_BATTCHRG);
         charge_state = CHARGE_STATE_DISABLED;
     }
+#endif
 }

 void charging_algorithm_close(void)
_______________________________________________
rockbox-cvs mailing list
(Continue reading)

gerrit | 1 Dec 23:59 2013

imx233: rework power management for work on stmp3700

commit 3f55f01e9210c2c5f83d623dbc7412001303e884
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Sun Dec 1 22:37:36 2013 +0000

    imx233: rework power management for work on stmp3700

    Change-Id: Ia1f7e8b633dfe6ef8dc840b3eb22eaf79c53ce6b

diff --git a/firmware/target/arm/imx233/powermgmt-imx233.c b/firmware/target/arm/imx233/powermgmt-imx233.c
index f2d1981..26fb573 100644
--- a/firmware/target/arm/imx233/powermgmt-imx233.c
+++ b/firmware/target/arm/imx233/powermgmt-imx233.c
 <at>  <at>  -68,16 +68,22  <at>  <at>  void imx233_powermgmt_init(void)
 #endif

 #if IMX233_SUBTARGET >= 3780
+    /* adjust arbitration between 4.2 and battery */
+    BF_WR(POWER_DCDC4P2, CMPTRIP, 0); /* 85% */
+    BF_WR(POWER_DCDC4P2, DROPOUT_CTRL, 0xe); /* select greater, 200 mV drop */
+#endif
+
+#if IMX233_SUBTARGET >= 3700
     /* enable a few bits controlling the DC-DC as recommended by Freescale */
     BF_SET(POWER_LOOPCTRL, TOGGLE_DIF);
     BF_SET(POWER_LOOPCTRL, EN_CM_HYST);
     BF_CLR(POWER_LOOPCTRL, EN_RCSCALE);
     BF_SETV(POWER_LOOPCTRL, EN_RCSCALE, 1);
-    /* adjust arbitration between 4.2 and battery */
-    BF_WR(POWER_DCDC4P2, CMPTRIP, 0); /* 85% */
-    BF_WR(POWER_DCDC4P2, DROPOUT_CTRL, 0xe); /* select greater, 200 mV drop */
(Continue reading)

gerrit | 30 Nov 17:18 2013

Revert "imx233: always keep cards in TRAN mode"

commit 2ce484c658d195d245987a63ac11e61992429867
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Wed Nov 27 19:34:50 2013 +0000

    Revert "imx233: always keep cards in TRAN mode"

    This reverts commit 462adf2a0fefbfdbccfafa11c999ac6beb114e8a.
    Leaving the card in TRAN results in a huge power consumption because some cards
    and internal bridges do not automatically enter power saving mode in TRAN state.

    Change-Id: If79efe8cf99b24174889b3a5ebbcb51b07085f58

diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index a435b14..b43d3b2 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
 <at>  <at>  -530,6 +530,9  <at>  <at>  static int init_mmc_drive(int drive)
         window_start[drive] = 0;
         window_end[drive] = *sec_count;
     }
+    /* deselect card */
+    if(!send_cmd(drive, MMC_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
+        return -13;

     /* MMC always support CMD23 */
     support_set_block_count[drive] = false;
 <at>  <at>  -608,6 +611,18  <at>  <at>  static int transfer_sectors(int drive, unsigned long start, int count, void *buf
         ret = -201;
         goto Lend;
     }
(Continue reading)

gerrit | 26 Nov 16:59 2013

zen: rework lcd enable

commit cbed7ecafed52f41a06fdd1315e06f5601063606
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Tue Nov 26 15:55:14 2013 +0000

    zen: rework lcd enable

    The ZEN/ZEN-XFi seem to be very picky about the lcd. And they do not like
    standby mode so I'm going to drop it, the OF doesn't use it anyway. I still
    don't know what this "power" pin is about, obviously it's not real power but
    the OF toggle it. Let's hope the lcd will finally become more stable with
    fix: the driver now does full power on/off on enable/disable.

    Change-Id: I1c465ee4f2462bc3d9507e5f575f0a181af60214

diff --git a/firmware/target/arm/imx233/creative-zen/lcd-zen.c b/firmware/target/arm/imx233/creative-zen/lcd-zen.c
index d1d690a..7e9e982 100644
--- a/firmware/target/arm/imx233/creative-zen/lcd-zen.c
+++ b/firmware/target/arm/imx233/creative-zen/lcd-zen.c
 <at>  <at>  -36,9 +36,7  <at>  <at> 
 #include "action.h"
 #endif

-#ifdef HAVE_LCD_ENABLE
 static bool lcd_on;
-#endif

 /**
  * DMA
 <at>  <at>  -71,7 +69,7  <at>  <at>  static void wait_frames_cb(void)

(Continue reading)

gerrit | 26 Nov 00:29 2013

regtools: add shortcut notation for simple register in the desc files

commit f04d3c518a3c26def9a003a108bec254499c7c90
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Mon Nov 25 23:22:28 2013 +0000

    regtools: add shortcut notation for simple register in the desc files

    Change-Id: I2745287844ad0a47dd41ba4dae5e1f7218ae5814
    Reviewed-on: http://gerrit.rockbox.org/679
    Reviewed-by: Amaury Pouly <amaury.pouly <at> gmail.com>

diff --git a/utils/regtools/desc/XML.txt b/utils/regtools/desc/XML.txt
index d4dc73c..15164a4 100644
--- a/utils/regtools/desc/XML.txt
+++ b/utils/regtools/desc/XML.txt
 <at>  <at>  -61,12 +61,25  <at>  <at>  The following properties are defined:
 - "name" (mandatory,string): the mnemonic of the register.
 - "sct" (optional,"yes" or "no"): STMP specific attribute to specify the existence
   of the SCT variants of this register.
+As a shortcut, in the case the register has a single address, one can add one more
+property:
+- "addr" (optional,integer): base address of this instance of the register.

 Example:
 <reg name="TIMCTRLn" sct="yes">
 <!-- reg desc -->
 </reg>

+The address shortcut has the following standard translation:
+<reg name="GPIO_PADR" addr="0x00">
+<!-- bla -->
(Continue reading)

gerrit | 25 Nov 23:54 2013

regtools/qeditor: fix url

commit ef2b6db066dc1b25863887eec0b65dadc8e54bb3
Author: Amaury Pouly <amaury.pouly <at> gmail.com>
Date:   Mon Nov 25 22:51:05 2013 +0000

    regtools/qeditor: fix url

    Change-Id: I9783ff809c69bb5617b2048d1e11374cd8f680ab

diff --git a/utils/regtools/qeditor/main.cpp b/utils/regtools/qeditor/main.cpp
index cc3ea16..0e4e67b 100644
--- a/utils/regtools/qeditor/main.cpp
+++ b/utils/regtools/qeditor/main.cpp
 <at>  <at>  -23,7 +23,7  <at>  <at>  int main(int argc, char *argv[])

     QCoreApplication::setOrganizationName("Rockbox");
     QCoreApplication::setApplicationName("Register Editor");
-    QCoreApplication::setOrganizationDomain("rockbox.com");
+    QCoreApplication::setOrganizationDomain("rockbox.org");
     MainWindow win(backend);
     win.show();
     return app.exec();
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs <at> cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs

gerrit | 25 Nov 20:17 2013

imx233: add the possibility to choose audio output coupling mode via target-defined option

commit 75c791dabff8e48be18cec8915f79626ae2d0073
Author: Lorenzo Miori <memorys60 <at> gmail.com>
Date:   Mon Nov 25 18:59:57 2013 +0100

    imx233: add the possibility to choose audio output coupling mode
    via target-defined option

    Change-Id: I1bffbc7f17a11cf690a771057c2e4a7ba6a5faaa
    Reviewed-on: http://gerrit.rockbox.org/678
    Reviewed-by: Amaury Pouly <amaury.pouly <at> gmail.com>

diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c
index b27f7b3..26a480d 100644
--- a/firmware/target/arm/imx233/audioout-imx233.c
+++ b/firmware/target/arm/imx233/audioout-imx233.c
 <at>  <at>  -23,6 +23,15  <at>  <at> 
 #include "rtc-imx233.h"
 #include "pcm_sampr.h"
 #include "string.h"
+#include "audio-target.h"
+
+#ifndef IMX233_AUDIO_COUPLING_MODE
+#error You must define IMX233_AUDIO_COUPLING_MODE
+#endif
+
+#if IMX233_AUDIO_COUPLING_MODE != ACM_CAP && IMX233_AUDIO_COUPLING_MODE != ACM_CAPLESS
+#error Invalid value for IMX233_AUDIO_COUPLING_MODE
+#endif

 static int hp_vol_l, hp_vol_r;
(Continue reading)


Gmane