Skip to content

Commit

Permalink
[ARM] pxa/spitz: Rework spitz
Browse files Browse the repository at this point in the history
This huge patch mostly shuffles code. The spitz.c file contained terrible mess
and needed a cleanup, here it is:

1) Made every part modular, components are not built in if not selected.
2) Removed loads of preprocessor goo, mostly "#ifdef MACH_AKITA .... #endif" and
   similar code. The kernel size will grow by a few kb now, but the file is much
   more readable.
3) Reworked SD/CF power setting function and made it reentrant.
4) Add ISL6271A regulator support
5) Correctly register WM8750

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
  • Loading branch information
Marek Vasut authored and Eric Miao committed Aug 5, 2010
1 parent 31620e2 commit 2d67982
Show file tree
Hide file tree
Showing 2 changed files with 311 additions and 169 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-pxa/include/mach/spitz.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,9 @@
#define SPITZ_IRQ_GPIO_CF2_IRQ IRQ_GPIO(SPITZ_GPIO_CF2_IRQ)
#define SPITZ_IRQ_GPIO_nSD_INT IRQ_GPIO(SPITZ_GPIO_nSD_INT)
#define SPITZ_IRQ_GPIO_nSD_DETECT IRQ_GPIO(SPITZ_GPIO_nSD_DETECT)

/*
* Shared data structures
*/
extern struct platform_device spitzssp_device;
extern struct sharpsl_charger_machinfo spitz_pm_machinfo;
Loading

0 comments on commit 2d67982

Please sign in to comment.