diff options
Diffstat (limited to 'arch/mips/txx9/rbtx4938/setup.c')
-rw-r--r-- | arch/mips/txx9/rbtx4938/setup.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/mips/txx9/rbtx4938/setup.c b/arch/mips/txx9/rbtx4938/setup.c index e7bc5b8c7db8..7aba92a12399 100644 --- a/arch/mips/txx9/rbtx4938/setup.c +++ b/arch/mips/txx9/rbtx4938/setup.c | |||
@@ -174,23 +174,30 @@ static void __init rbtx4938_mem_setup(void) | |||
174 | #endif | 174 | #endif |
175 | 175 | ||
176 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_PIO58_61 | 176 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_PIO58_61 |
177 | printk(KERN_INFO "PIOSEL: disabling both ata and nand selection\n"); | 177 | pr_info("PIOSEL: disabling both ATA and NAND selection\n"); |
178 | txx9_clear64(&tx4938_ccfgptr->pcfg, | 178 | txx9_clear64(&tx4938_ccfgptr->pcfg, |
179 | TX4938_PCFG_NDF_SEL | TX4938_PCFG_ATA_SEL); | 179 | TX4938_PCFG_NDF_SEL | TX4938_PCFG_ATA_SEL); |
180 | #endif | 180 | #endif |
181 | 181 | ||
182 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_NAND | 182 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_NAND |
183 | printk(KERN_INFO "PIOSEL: enabling nand selection\n"); | 183 | pr_info("PIOSEL: enabling NAND selection\n"); |
184 | txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_NDF_SEL); | 184 | txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_NDF_SEL); |
185 | txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_ATA_SEL); | 185 | txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_ATA_SEL); |
186 | #endif | 186 | #endif |
187 | 187 | ||
188 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_ATA | 188 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_ATA |
189 | printk(KERN_INFO "PIOSEL: enabling ata selection\n"); | 189 | pr_info("PIOSEL: enabling ATA selection\n"); |
190 | txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_ATA_SEL); | 190 | txx9_set64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_ATA_SEL); |
191 | txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_NDF_SEL); | 191 | txx9_clear64(&tx4938_ccfgptr->pcfg, TX4938_PCFG_NDF_SEL); |
192 | #endif | 192 | #endif |
193 | 193 | ||
194 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_KEEP | ||
195 | pcfg = ____raw_readq(&tx4938_ccfgptr->pcfg); | ||
196 | pr_info("PIOSEL: NAND %s, ATA %s\n", | ||
197 | (pcfg & TX4938_PCFG_NDF_SEL) ? "enabled" : "disabled", | ||
198 | (pcfg & TX4938_PCFG_ATA_SEL) ? "enabled" : "disabled"); | ||
199 | #endif | ||
200 | |||
194 | rbtx4938_spi_setup(); | 201 | rbtx4938_spi_setup(); |
195 | pcfg = ____raw_readq(&tx4938_ccfgptr->pcfg); /* updated */ | 202 | pcfg = ____raw_readq(&tx4938_ccfgptr->pcfg); /* updated */ |
196 | /* fixup piosel */ | 203 | /* fixup piosel */ |