dev-flash.c (aaf3fedb56c95b419eda4c5392e03ad9b82c4847) dev-flash.c (e5766aea5b9b7519654261c27b639f567b5415b4)
1/*
2 * Broadcom BCM63xx flash registration
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>

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

55 },
56};
57
58static int __init bcm63xx_detect_flash_type(void)
59{
60 u32 val;
61
62 switch (bcm63xx_get_cpu_id()) {
1/*
2 * Broadcom BCM63xx flash registration
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>

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

55 },
56};
57
58static int __init bcm63xx_detect_flash_type(void)
59{
60 u32 val;
61
62 switch (bcm63xx_get_cpu_id()) {
63 case BCM6328_CPU_ID:
64 val = bcm_misc_readl(MISC_STRAPBUS_6328_REG);
65 if (val & STRAPBUS_6328_BOOT_SEL_SERIAL)
66 return BCM63XX_FLASH_TYPE_SERIAL;
67 else
68 return BCM63XX_FLASH_TYPE_NAND;
63 case BCM6338_CPU_ID:
64 case BCM6345_CPU_ID:
65 case BCM6348_CPU_ID:
66 /* no way to auto detect so assume parallel */
67 return BCM63XX_FLASH_TYPE_PARALLEL;
68 case BCM6358_CPU_ID:
69 val = bcm_gpio_readl(GPIO_STRAPBUS_REG);
70 if (val & STRAPBUS_6358_BOOT_SEL_PARALLEL)

--- 47 unchanged lines hidden ---
69 case BCM6338_CPU_ID:
70 case BCM6345_CPU_ID:
71 case BCM6348_CPU_ID:
72 /* no way to auto detect so assume parallel */
73 return BCM63XX_FLASH_TYPE_PARALLEL;
74 case BCM6358_CPU_ID:
75 val = bcm_gpio_readl(GPIO_STRAPBUS_REG);
76 if (val & STRAPBUS_6358_BOOT_SEL_PARALLEL)

--- 47 unchanged lines hidden ---