Lines Matching +full:rc +full:- +full:map +full:- +full:name
1 // SPDX-License-Identifier: GPL-2.0-only
5 * nettel.c -- mappings for NETtel/SecureEdge/SnapGear (x86) boards.
7 * (C) Copyright 2000-2001, Greg Ungerer (gerg@snapgear.com)
8 * (C) Copyright 2001-2002, SnapGear (www.snapgear.com)
18 #include <linux/mtd/map.h>
48 ((((size)-(64*1024)) >> SC520_PAR_SIZE_SHIFT) & SC520_PAR_SIZE_MASK) | \
68 .name = "SnapGear Intel",
75 .name = "SnapGear kernel",
80 .name = "SnapGear filesystem",
84 .name = "SnapGear config",
89 .name = "SnapGear Intel",
93 .name = "SnapGear BIOS Config",
98 .name = "SnapGear BIOS",
106 .name = "SnapGear AMD",
113 .name = "SnapGear BIOS config",
118 .name = "SnapGear BIOS",
123 .name = "SnapGear AMD",
127 .name = "SnapGear high BIOS",
151 cfi->device_type, NULL); in nettel_reboot_notifier()
177 int rc = 0; in nettel_init() local
182 return(-EIO); in nettel_init()
199 * otherwise they might clash with where we try to map BOOTCS. in nettel_init()
224 return(-EIO); in nettel_init()
230 (int)(amd_mtd->size>>10)); in nettel_init()
232 amd_mtd->owner = THIS_MODULE; in nettel_init()
236 if (amd_mtd->size < AMD_WINDOW_MAXSIZE) in nettel_init()
237 num_amd_partitions--; in nettel_init()
242 * Map the Intel flash into memory after the AMD in nettel_init()
284 rc = -ENXIO; in nettel_init()
309 rc = -EIO; in nettel_init()
316 rc = -ENXIO; in nettel_init()
321 intel0size = intel_mtd->size; in nettel_init()
325 * Map second Intel FLASH right after first. Set its size to the in nettel_init()
334 /* Delete the old map and probe again to do both chips */ in nettel_init()
343 rc = -EIO; in nettel_init()
349 rc = -ENXIO; in nettel_init()
353 intel1size = intel_mtd->size - intel0size; in nettel_init()
362 (unsigned long long)(intel_mtd->size >> 10)); in nettel_init()
364 intel_mtd->owner = THIS_MODULE; in nettel_init()
373 nettel_intel_partitions[1].size = (intel0size + intel1size) - in nettel_init()
374 (1024*1024 + intel_mtd->erasesize); in nettel_init()
377 (intel0size + intel1size) - intel_mtd->erasesize; in nettel_init()
378 nettel_intel_partitions[4].size = intel_mtd->erasesize; in nettel_init()
385 num_intel_partitions -= 2; in nettel_init()
387 rc = mtd_device_register(intel_mtd, nettel_intel_partitions, in nettel_init()
389 if (rc) in nettel_init()
394 rc = mtd_device_register(amd_mtd, nettel_amd_partitions, in nettel_init()
396 if (rc) in nettel_init()
404 return rc; in nettel_init()
419 return rc; in nettel_init()