Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b26fed8e
Commit
b26fed8e
authored
Nov 10, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add Assabet flash device partitioning and location data.
parent
ad25fa35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
4 deletions
+71
-4
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/assabet.c
+71
-4
No files found.
arch/arm/mach-sa1100/assabet.c
View file @
b26fed8e
...
...
@@ -9,16 +9,17 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/tty.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/serial_core.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <asm/hardware.h>
#include <asm/mach-types.h>
...
...
@@ -29,6 +30,7 @@
#include <asm/tlbflush.h>
#include <asm/mach/arch.h>
#include <asm/mach/flash.h>
#include <asm/mach/map.h>
#include <asm/mach/serial_sa1100.h>
#include <asm/arch/assabet.h>
...
...
@@ -92,6 +94,68 @@ static void assabet_lcd_power(int on)
ASSABET_BCR_clear
(
ASSABET_BCR_LCD_ON
);
}
#ifdef ASSABET_REV_4
/*
* Phase 4 Assabet has two 28F160B3 flash parts in bank 0:
*/
static
struct
mtd_partition
assabet_partitions
[]
=
{
{
.
name
=
"bootloader"
,
.
size
=
0x00020000
,
.
offset
=
0
,
.
mask_flags
=
MTD_WRITEABLE
,
},
{
.
name
=
"bootloader params"
,
.
size
=
0x00020000
,
.
offset
=
MTDPART_OFS_APPEND
,
.
mask_flags
=
MTD_WRITEABLE
,
},
{
.
name
=
"jffs"
,
.
size
=
MTDPART_SIZ_FULL
,
.
offset
=
MTDPART_OFS_APPEND
,
}
};
#else
/*
* Phase 5 Assabet has two 28F128J3A flash parts in bank 0:
*/
static
struct
mtd_partition
assabet_partitions
[]
=
{
{
.
name
=
"bootloader"
,
.
size
=
0x00040000
,
.
offset
=
0
,
.
mask_flags
=
MTD_WRITEABLE
,
},
{
.
name
=
"bootloader params"
,
.
size
=
0x00040000
,
.
offset
=
MTDPART_OFS_APPEND
,
.
mask_flags
=
MTD_WRITEABLE
,
},
{
.
name
=
"jffs"
,
.
size
=
MTDPART_SIZ_FULL
,
.
offset
=
MTDPART_OFS_APPEND
,
}
};
#endif
static
struct
flash_platform_data
assabet_flash_data
=
{
.
map_name
=
"cfi_probe"
,
.
parts
=
assabet_partitions
,
.
nr_parts
=
ARRAY_SIZE
(
assabet_partitions
),
};
static
struct
resource
assabet_flash_resources
[]
=
{
{
.
start
=
SA1100_CS0_PHYS
,
.
end
=
SA1100_CS0_PHYS
+
SZ_32M
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
SA1100_CS1_PHYS
,
.
end
=
SA1100_CS1_PHYS
+
SZ_32M
-
1
,
.
flags
=
IORESOURCE_MEM
,
}
};
static
void
__init
assabet_init
(
void
)
{
/*
...
...
@@ -136,6 +200,9 @@ static void __init assabet_init(void)
"hasn't been configured in the kernel
\n
"
);
#endif
}
sa11x0_set_flash_data
(
&
assabet_flash_data
,
assabet_flash_resources
,
ARRAY_SIZE
(
assabet_flash_resources
));
}
/*
...
...
@@ -325,5 +392,5 @@ MACHINE_START(ASSABET, "Intel-Assabet")
MAPIO
(
assabet_map_io
)
INITIRQ
(
sa1100_init_irq
)
.
timer
=
&
sa1100_timer
,
INIT_MACHINE
(
assabet_init
)
.
init_machine
=
assabet_init
,
MACHINE_END
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment