Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 1 | |
| 2 | U-Boot MARUBUN MR-SHPC-01 PCMCIA controller driver |
| 3 | Last update 21/11/2007 by Nobuhiro Iwamatsu |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 4 | |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 5 | ======================================================================================== |
| 6 | |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 7 | 0. What's this? |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 8 | This driver supports MARUBUN MR-SHPC-01. |
| 9 | url: http://www.marubun.co.jp/product/semicon/devices/qgc18e0000002n2z.html |
| 10 | (Sorry Japanese only.) |
| 11 | |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 12 | This chip is used with SuperH well, and adopted by the |
| 13 | reference board. |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 14 | ex. * MS7750SE01 |
| 15 | * MS7722SE01 |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 16 | * other |
| 17 | |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 18 | This chip doesn't support CardBus. |
| 19 | |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 20 | 1. base source code |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 21 | The code is based on sources from the Linux kernel |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 22 | ( arch/sh/kernel/cf-enabler.c ). |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 23 | |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 24 | 2. How to use |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 25 | The options you have to specify in the config file are (with the |
| 26 | value for my board as an example): |
| 27 | |
| 28 | * CONFIG_MARUBUN_PCCARD |
| 29 | If you want to use this device driver, should define CONFIG_MARUBUN_PCCARD. |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 30 | ex. #define CONFIG_MARUBUN_PCCARD |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 31 | |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 32 | * CONFIG_PCMCIA_SLOT_A |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 33 | Most devices have only one slot. You should define CONFIG_PCMCIA_SLOT_A . |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 34 | ex. #define CONFIG_PCMCIA_SLOT_A 1 |
| 35 | |
| 36 | * CFG_MARUBUN_MRSHPC |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 37 | This is MR-SHPC-01 PCMCIA controler base address. |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 38 | You should do the setting matched to your environment. |
| 39 | ex. #define CFG_MARUBUN_MRSHPC 0xb03fffe0 |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 40 | ( for MS7722SE01 environment ) |
| 41 | |
| 42 | * CFG_MARUBUN_MW1 |
| 43 | This is MR-SHPC-01 memory window base address. |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 44 | You should do the setting matched to your environment. |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 45 | ex. #define CFG_MARUBUN_MW1 0xb0400000 |
| 46 | ( for MS7722SE01 environment ) |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 47 | |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 48 | * CFG_MARUBUN_MW1 |
| 49 | This is MR-SHPC-01 attribute window base address. |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 50 | You should do the setting matched to your environment. |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 51 | ex. #define CFG_MARUBUN_MW2 0xb0500000 |
| 52 | ( for MS7722SE01 environment ) |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 53 | |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 54 | * CFG_MARUBUN_MW1 |
| 55 | This is MR-SHPC-01 I/O window base address. |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 56 | You should do the setting matched to your environment. |
Nobuhiro Iwamatsu | 33ecdc2 | 2007-11-25 02:39:31 +0900 | [diff] [blame] | 57 | ex. #define CFG_MARUBUN_IO 0xb0600000 |
| 58 | ( for MS7722SE01 environment ) |
| 59 | |
| 60 | 3. Other |
| 61 | * Check Compact Flash only. |
| 62 | * Maybe, NE2000 compatible NIC is sure to move. |
| 63 | |
| 64 | Copyright (c) 2007 |
| 65 | Nobuhiro Iwamatsu <iwamatsu@nigaur.org> |