C8051F32x firmware infrastructure
Sign in or create your account | Project List | Help
C8051F32x firmware infrastructure Commit Details
Date: | 2011-01-03 22:33:56 (12 years 8 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 6dbd844d0fdae259bfb2475ffe2e1c6a98676fa8 |
Message: | f32x: open /dev/mem with O_SYNC to disable caching - f32x/gpio-s3c24xx.c (gpio_init), f32x/gpio-xburst.c (gpio_init): open /dev/mem with O_SYNC to disable caching |
Files: |
f32x/gpio-s3c24xx.c (2 diffs) f32x/gpio-xburst.c (2 diffs) |
Change Details
f32x/gpio-s3c24xx.c | ||
---|---|---|
1 | 1 | /* |
2 | 2 | * f32x/gpio-s3c24xx.c - Really primitive S3C244x GPIO access. Ports B-H only. |
3 | 3 | * |
4 | * Written 2008 by Werner Almesberger | |
5 | * Copyright 2008 Werner Almesberger | |
4 | * Written 2008, 2011 by Werner Almesberger | |
5 | * Copyright 2008, 2011 Werner Almesberger | |
6 | 6 | * |
7 | 7 | * This program is free software; you can redistribute it and/or modify |
8 | 8 | * it under the terms of the GNU General Public License as published by |
... | ... | |
29 | 29 | { |
30 | 30 | int fd; |
31 | 31 | |
32 | fd = open("/dev/mem", O_RDWR); | |
32 | fd = open("/dev/mem", O_RDWR | O_SYNC); | |
33 | 33 | if (fd < 0) { |
34 | 34 | perror("/dev/mem"); |
35 | 35 | exit(1); |
f32x/gpio-xburst.c | ||
---|---|---|
1 | 1 | /* |
2 | 2 | * f32x/gpio-xburst.c - Really primitive XBurst GPIO access |
3 | 3 | * |
4 | * Written 2010 by Werner Almesberger | |
5 | * Copyright 2010 Werner Almesberger | |
4 | * Written 2010-2011 by Werner Almesberger | |
5 | * Copyright 2010-2011 Werner Almesberger | |
6 | 6 | * |
7 | 7 | * This program is free software; you can redistribute it and/or modify |
8 | 8 | * it under the terms of the GNU General Public License as published by |
... | ... | |
29 | 29 | { |
30 | 30 | int fd; |
31 | 31 | |
32 | fd = open("/dev/mem", O_RDWR); | |
32 | fd = open("/dev/mem", O_RDWR | O_SYNC); | |
33 | 33 | if (fd < 0) { |
34 | 34 | perror("/dev/mem"); |
35 | 35 | exit(1); |
Branches:
master