Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Miscellany
Saturday, December 29th, 2007 at 3:01:59pm UTC 

  1. Index: firmware/export/config-ipodcolor.h
  2. ===================================================================
  3. --- firmware/export/config-ipodcolor.h  (revision 15975)
  4. +++ firmware/export/config-ipodcolor.h  (working copy)
  5. @@ -89,8 +89,8 @@
  6.  #define BATTERY_CAPACITY_INC 10   /* capacity increment */
  7.  #define BATTERY_TYPES_COUNT  1    /* only one type */
  8.  
  9. -/* Hardware controlled charging? FIXME */
  10. -//#define CONFIG_CHARGING CHARGING_SIMPLE
  11. +/* Hardware controlled charging? */
  12. +#define CONFIG_CHARGING CHARGING_MONITOR
  13.  
  14.  /* define this if the unit can be powered or charged via USB */
  15.  #define HAVE_USB_POWER
  16. Index: firmware/export/config-ipodmini.h
  17. ===================================================================
  18. --- firmware/export/config-ipodmini.h   (revision 15975)
  19. +++ firmware/export/config-ipodmini.h   (working copy)
  20. @@ -92,8 +92,8 @@
  21.  #define BATTERY_CAPACITY_INC 10  /* capacity increment */
  22.  #define BATTERY_TYPES_COUNT  1   /* only one type */
  23.  
  24. -/* Hardware controlled charging? FIXME */
  25. -//#define CONFIG_CHARGING CHARGING_SIMPLE
  26. +/* Hardware controlled charging? */
  27. +#define CONFIG_CHARGING CHARGING_MONITOR
  28.  
  29.  /* define this if the unit can be powered or charged via USB */
  30.  #define HAVE_USB_POWER
  31. Index: firmware/export/config-ipodmini2g.h
  32. ===================================================================
  33. --- firmware/export/config-ipodmini2g.h (revision 15975)
  34. +++ firmware/export/config-ipodmini2g.h (working copy)
  35. @@ -99,8 +99,8 @@
  36.  #define BATTERY_CAPACITY_INC 50  /* capacity increment */
  37.  #define BATTERY_TYPES_COUNT  1   /* only one type */
  38.  
  39. -/* Hardware controlled charging? FIXME */
  40. -//#define CONFIG_CHARGING CHARGING_SIMPLE
  41. +/* Hardware controlled charging? */
  42. +#define CONFIG_CHARGING CHARGING_MONITOR
  43.  
  44.  /* define this if the unit can be powered or charged via USB */
  45.  #define HAVE_USB_POWER
  46. Index: firmware/export/config-ipod4g.h
  47. ===================================================================
  48. --- firmware/export/config-ipod4g.h     (revision 15975)
  49. +++ firmware/export/config-ipod4g.h     (working copy)
  50. @@ -102,8 +102,8 @@
  51.  #define BATTERY_CAPACITY_INC 10   /* capacity increment */
  52.  #define BATTERY_TYPES_COUNT  1    /* only one type */
  53.  
  54. -/* Hardware controlled charging? FIXME */
  55. -//#define CONFIG_CHARGING CHARGING_SIMPLE
  56. +/* Hardware controlled charging? */
  57. +#define CONFIG_CHARGING CHARGING_MONITOR
  58.  
  59.  /* define this if the unit can be powered or charged via USB */
  60.  #define HAVE_USB_POWER
  61. Index: firmware/target/arm/ipod/power-ipod.c
  62. ===================================================================
  63. --- firmware/target/arm/ipod/power-ipod.c       (revision 15975)
  64. +++ firmware/target/arm/ipod/power-ipod.c       (working copy)
  65. @@ -42,8 +42,12 @@
  66.  
  67.  bool charger_inserted(void)
  68.  {
  69. -#ifdef IPOD_VIDEO
  70. +#if defined(IPOD_VIDEO)
  71.      return (GPIOL_INPUT_VAL & 0x08)?false:true;
  72. +#elif defined(IPOD_4G) || defined(IPOD_COLOR) \
  73. +       || defined(IPOD_MINI) || defined(IPOD_MINI2G)
  74. +    /* C2 is firewire power */
  75. +    return (GPIOC_INPUT_VAL & 0x04)?false:true;
  76.  #else
  77.      /* This needs filling in for other ipods. */
  78.      return false;

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right