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
11/*
22 * f32x/gpio-s3c24xx.c - Really primitive S3C244x GPIO access. Ports B-H only.
33 *
4 * Written 2008 by Werner Almesberger
5 * Copyright 2008 Werner Almesberger
4 * Written 2008, 2011 by Werner Almesberger
5 * Copyright 2008, 2011 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
2929{
3030    int fd;
3131
32    fd = open("/dev/mem", O_RDWR);
32    fd = open("/dev/mem", O_RDWR | O_SYNC);
3333        if (fd < 0) {
3434        perror("/dev/mem");
3535        exit(1);
f32x/gpio-xburst.c
11/*
22 * f32x/gpio-xburst.c - Really primitive XBurst GPIO access
33 *
4 * Written 2010 by Werner Almesberger
5 * Copyright 2010 Werner Almesberger
4 * Written 2010-2011 by Werner Almesberger
5 * Copyright 2010-2011 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
2929{
3030    int fd;
3131
32    fd = open("/dev/mem", O_RDWR);
32    fd = open("/dev/mem", O_RDWR | O_SYNC);
3333        if (fd < 0) {
3434        perror("/dev/mem");
3535        exit(1);

Archive Download the corresponding diff file

Branches:
master



interactive