db1200.c (6f23fc47c1b2ac226704fb7294f43ed3b0965e51) db1200.c (ef8f8f04a0b25e8f294b24350e8463a8d6a9ba0b)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * DBAu1200/PBAu1200 board platform device registration
4 *
5 * Copyright (C) 2008-2011 Manuel Lauss
6 */
7
8#include <linux/clk.h>

--- 312 unchanged lines hidden (view full) ---

321 .platform_data = &db1200_ide_info,
322 },
323 .num_resources = ARRAY_SIZE(db1200_ide_res),
324 .resource = db1200_ide_res,
325};
326
327/**********************************************************************/
328
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * DBAu1200/PBAu1200 board platform device registration
4 *
5 * Copyright (C) 2008-2011 Manuel Lauss
6 */
7
8#include <linux/clk.h>

--- 312 unchanged lines hidden (view full) ---

321 .platform_data = &db1200_ide_info,
322 },
323 .num_resources = ARRAY_SIZE(db1200_ide_res),
324 .resource = db1200_ide_res,
325};
326
327/**********************************************************************/
328
329#ifdef CONFIG_MMC_AU1X
329/* SD carddetects: they're supposed to be edge-triggered, but ack
330 * doesn't seem to work (CPLD Rev 2). Instead, the screaming one
331 * is disabled and its counterpart enabled. The 200ms timeout is
332 * because the carddetect usually triggers twice, after debounce.
333 */
334static irqreturn_t db1200_mmc_cd(int irq, void *ptr)
335{
336 disable_irq_nosync(irq);

--- 242 unchanged lines hidden (view full) ---

579 .dev = {
580 .dma_mask = &au1200_all_dmamask,
581 .coherent_dma_mask = DMA_BIT_MASK(32),
582 .platform_data = &db1200_mmc_platdata[1],
583 },
584 .num_resources = ARRAY_SIZE(au1200_mmc1_res),
585 .resource = au1200_mmc1_res,
586};
330/* SD carddetects: they're supposed to be edge-triggered, but ack
331 * doesn't seem to work (CPLD Rev 2). Instead, the screaming one
332 * is disabled and its counterpart enabled. The 200ms timeout is
333 * because the carddetect usually triggers twice, after debounce.
334 */
335static irqreturn_t db1200_mmc_cd(int irq, void *ptr)
336{
337 disable_irq_nosync(irq);

--- 242 unchanged lines hidden (view full) ---

580 .dev = {
581 .dma_mask = &au1200_all_dmamask,
582 .coherent_dma_mask = DMA_BIT_MASK(32),
583 .platform_data = &db1200_mmc_platdata[1],
584 },
585 .num_resources = ARRAY_SIZE(au1200_mmc1_res),
586 .resource = au1200_mmc1_res,
587};
588#endif /* CONFIG_MMC_AU1X */
587
588/**********************************************************************/
589
590static int db1200fb_panel_index(void)
591{
592 return (bcsr_read(BCSR_SWITCHES) >> 8) & 0x0f;
593}
594

--- 151 unchanged lines hidden (view full) ---

746static struct platform_device db1200_audiodma_dev = {
747 .name = "au1xpsc-pcm",
748 .id = 1, /* PSC ID */
749};
750
751static struct platform_device *db1200_devs[] __initdata = {
752 NULL, /* PSC0, selected by S6.8 */
753 &db1200_ide_dev,
589
590/**********************************************************************/
591
592static int db1200fb_panel_index(void)
593{
594 return (bcsr_read(BCSR_SWITCHES) >> 8) & 0x0f;
595}
596

--- 151 unchanged lines hidden (view full) ---

748static struct platform_device db1200_audiodma_dev = {
749 .name = "au1xpsc-pcm",
750 .id = 1, /* PSC ID */
751};
752
753static struct platform_device *db1200_devs[] __initdata = {
754 NULL, /* PSC0, selected by S6.8 */
755 &db1200_ide_dev,
756#ifdef CONFIG_MMC_AU1X
754 &db1200_mmc0_dev,
757 &db1200_mmc0_dev,
758#endif
755 &au1200_lcd_dev,
756 &db1200_eth_dev,
757 &db1200_nand_dev,
758 &db1200_audiodma_dev,
759 &db1200_audio_dev,
760 &db1200_stac_dev,
761 &db1200_sound_dev,
762};
763
764static struct platform_device *pb1200_devs[] __initdata = {
759 &au1200_lcd_dev,
760 &db1200_eth_dev,
761 &db1200_nand_dev,
762 &db1200_audiodma_dev,
763 &db1200_audio_dev,
764 &db1200_stac_dev,
765 &db1200_sound_dev,
766};
767
768static struct platform_device *pb1200_devs[] __initdata = {
769#ifdef CONFIG_MMC_AU1X
765 &pb1200_mmc1_dev,
770 &pb1200_mmc1_dev,
771#endif
766};
767
768/* Some peripheral base addresses differ on the PB1200 */
769static int __init pb1200_res_fixup(void)
770{
771 /* CPLD Revs earlier than 4 cause problems */
772 if (BCSR_WHOAMI_CPLD(bcsr_read(BCSR_WHOAMI)) <= 3) {
773 printk(KERN_ERR "WARNING!!!\n");

--- 164 unchanged lines hidden ---
772};
773
774/* Some peripheral base addresses differ on the PB1200 */
775static int __init pb1200_res_fixup(void)
776{
777 /* CPLD Revs earlier than 4 cause problems */
778 if (BCSR_WHOAMI_CPLD(bcsr_read(BCSR_WHOAMI)) <= 3) {
779 printk(KERN_ERR "WARNING!!!\n");

--- 164 unchanged lines hidden ---