summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-29 11:35:50 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-08-01 16:33:09 +0800
commitc71a77ab878c3d9d14e91ea4fa5bd4ff8fe1c421 (patch)
treebaa9253468338c34d06d8ebdfc56aa1e7abae4ba /include
parent3f59bab47cc40bb0b6076143cc2e6b96be396771 (diff)
downloadbarebox-c71a77ab878c3d9d14e91ea4fa5bd4ff8fe1c421.tar.gz
barebox-c71a77ab878c3d9d14e91ea4fa5bd4ff8fe1c421.tar.xz
ns16550: switch to resource
use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/driver.h4
-rw-r--r--include/ns16550.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h
index baf8d8810f..b6985776ad 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -229,10 +229,10 @@ static inline struct device_d *add_cfi_flash_device(int id, resource_size_t star
struct NS16550_plat;
static inline struct device_d *add_ns16550_device(int id, resource_size_t start,
- resource_size_t size, struct NS16550_plat *pdata)
+ resource_size_t size, int flags, struct NS16550_plat *pdata)
{
return add_generic_device("serial_ns16550", id, NULL, start, size,
- IORESOURCE_MEM, pdata);
+ IORESOURCE_MEM | flags, pdata);
}
#ifdef CONFIG_DRIVER_NET_DM9000
diff --git a/include/ns16550.h b/include/ns16550.h
index b40d1fa5ae..5fd52fa744 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -50,6 +50,8 @@ struct NS16550_plat {
*/
void (*reg_write) (unsigned int val, unsigned long base,
unsigned char reg_offset);
+
+ int shift;
};
#endif /* __NS16650_PLATFORM_H_ */