Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173351
b: refs/heads/master
c: b5ebe4e
h: refs/heads/master
i:
  173349: 55d3ee9
  173347: 4c36980
  173343: 7dfbbc5
v: v3
  • Loading branch information
Sekhar Nori authored and Kevin Hilman committed Nov 25, 2009
1 parent 1e98d17 commit 78a8593
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77316f0575264c56fb0c8f241b946a91e3a00602
refs/heads/master: b5ebe4e198e595cad412a9de2d7b253693545d30
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-davinci/board-da830-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ static const short da830_evm_emif25_pins[] = {
-1
};

#if defined(CONFIG_MMC_DAVINCI) || defined(CONFIG_MMC_DAVINCI_MODULE)
#define HAS_MMC 1
#else
#define HAS_MMC 0
#endif

#ifdef CONFIG_DA830_UI_NAND
static struct mtd_partition da830_evm_nand_partitions[] = {
/* bootloader (U-Boot, etc) in first sector */
Expand Down Expand Up @@ -377,6 +383,13 @@ static inline void da830_evm_init_nand(int mux_mode)
{
int ret;

if (HAS_MMC) {
pr_warning("WARNING: both MMC/SD and NAND are "
"enabled, but they share AEMIF pins.\n"
"\tDisable MMC/SD for NAND support.\n");
return;
}

ret = da8xx_pinmux_setup(da830_evm_emif25_pins);
if (ret)
pr_warning("da830_evm_init: emif25 mux setup failed: %d\n",
Expand Down Expand Up @@ -425,6 +438,9 @@ static int da830_evm_ui_expander_setup(struct i2c_client *client, int gpio,
{
gpio_request(gpio + 6, "UI MUX_MODE");

/* Drive mux mode low to match the default without UI card */
gpio_direction_output(gpio + 6, 0);

da830_evm_init_lcdc(gpio + 6);

da830_evm_init_nand(gpio + 6);
Expand Down

0 comments on commit 78a8593

Please sign in to comment.